lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I looked through the archives so hopefully this hasn't been previously
suggested and rejected. The attached patch adds a new convenience
platform for OpenBSD. Right now the OpenBSD ports system includes a
similar patch but I figured it might be nice to have it as one of the
default platforms like FreeBSD. Thanks.

-- 
James Turner
james@calminferno.net
diff -u -p -r lua-5.2.1/Makefile lua-5.2.1-patched/Makefile
--- lua-5.2.1/Makefile	Thu May 17 10:05:54 2012
+++ lua-5.2.1-patched/Makefile	Wed May 30 20:41:10 2012
@@ -36,7 +36,7 @@ RM= rm -f
 # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
 
 # Convenience platforms targets.
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+PLATS= aix ansi bsd openbsd freebsd generic linux macosx mingw posix solaris
 
 # What to install.
 TO_BIN= lua luac
diff -u -p -r lua-5.2.1/src/Makefile lua-5.2.1-patched/src/Makefile
--- lua-5.2.1/src/Makefile	Fri Mar  9 11:32:16 2012
+++ lua-5.2.1-patched/src/Makefile	Wed May 30 20:40:47 2012
@@ -26,7 +26,7 @@ MYOBJS=
 
 # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
 
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+PLATS= aix ansi bsd freebsd openbsd generic linux macosx mingw posix solaris
 
 LUA_A=	liblua.a
 CORE_O=	lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
@@ -99,6 +99,9 @@ bsd:
 
 freebsd:
 	$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline"
+
+openbsd:
+	$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ledit -lcurses"
 
 generic: $(ALL)