lua-users home
lua-l archive

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


On Wed, May 30, 2012 at 09:13:07PM -0400, James Turner wrote:
> On Wed, May 30, 2012 at 09:10:24PM -0400, James Turner wrote:
> > 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
> 
> Of course openbsd should have come after freebsd in Makefile like src/Makfile.
> 
> -- 
> James Turner
> james@calminferno.net
> 

I'm sure I'm the only one who cares but here is a new patch with openbsd
in the correct order. I'm so use to grouping bsd stuff my brain must of
glazed over the fact the whole list is alphabetized.

-- 
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 21:18:44 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 freebsd generic linux macosx mingw openbsd 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 21:18:35 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 generic linux macosx mingw openbsd 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 \
@@ -113,6 +113,9 @@ mingw:
 	"AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
 	"SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
 	$(MAKE) "LUAC_T=luac.exe" luac.exe
+
+openbsd:
+	$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ledit -lcurses"
 
 posix:
 	$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"