fix previous

This commit is contained in:
jasper 2011-06-22 18:09:51 +00:00
parent 781f6727f1
commit 96b209f1c4
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2011/06/21 06:09:34 jasper Exp $
# $OpenBSD: Makefile,v 1.8 2011/06/22 18:09:51 jasper Exp $
SHARED_ONLY= Yes
@ -20,6 +20,9 @@ MODULES= lang/lua
ALL_TARGET= lpeg.so
MAKE_FILE= makefile
pre-configure:
${SUBST_CMD} ${WRKSRC}/makefile
do-install:
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DATADIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lpeg

View File

@ -1,9 +1,10 @@
$OpenBSD: patch-makefile,v 1.4 2011/06/21 06:09:34 jasper Exp $
--- makefile.orig Wed Feb 16 16:03:25 2011
+++ makefile Mon Jun 20 23:42:11 2011
$OpenBSD: patch-makefile,v 1.5 2011/06/22 18:09:51 jasper Exp $
--- makefile.orig Mon Jun 20 23:35:56 2011
+++ makefile Mon Jun 20 23:36:51 2011
@@ -1,7 +1,7 @@
LIBNAME = lpeg
LUADIR = /usr/include/lua5.1/
-LUADIR = /usr/include/lua5.1/
+LUADIR = ${LOCALBASE}/include/
-COPT = -O2 -DNDEBUG
+COPT = -O2 -DNDEBUG -fPIC -shared