about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-26 09:35:22 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-26 09:36:06 -0800
commitb493ed32b81ea9bbb880e5d50026082ac44ecfb8 (patch)
treef8b367d3a8a94570772f2b7a5381cad02b5ec648
parentcbe85a18c7e433e1d937eba7e994329e4d81e9cc (diff)
downloadteliva-b493ed32b81ea9bbb880e5d50026082ac44ecfb8.tar.gz
get Teliva working on FreeBSD
-rw-r--r--README.md5
-rw-r--r--src/Makefile4
2 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 69aa97d..e4c02bf 100644
--- a/README.md
+++ b/README.md
@@ -49,8 +49,9 @@ OS and package manager of choice:
 * `sudo apt install libncursesw6-dev openssl`
 * `brew install ncurses openssl`
 
-So far I've tested Teliva on Linux, Mac OS X, OpenBSD and NetBSD; it should work
-on other flavors of BSD, WSL on Windows, etc. with only minor modifications.
+So far I've tested Teliva on Linux, Mac OS X, OpenBSD, NetBSD and FreeBSD; it
+should work on other flavors of BSD, WSL on Windows, etc. with only minor
+modifications.
 
 ## What else can it do?
 
diff --git a/src/Makefile b/src/Makefile
index 8843669..65dea6d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -85,7 +85,9 @@ ansi:
 	$(MAKE) all MYCFLAGS=-DLUA_ANSI
 
 freebsd:
-	$(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E"
+	$(MAKE) -C luasocket bsd
+	$(MAKE) -C luasec bsd
+	$(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lncursesw"
 
 generic:
 	$(MAKE) all MYCFLAGS=
id='n141' href='#n141'>141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216