shrink patch, no package change

This commit is contained in:
jasper 2011-06-21 06:09:34 +00:00
parent 08dfc2c1ce
commit 99feaefe73
3 changed files with 9 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 2011/06/20 21:40:37 jasper Exp $
# $OpenBSD: Makefile,v 1.7 2011/06/21 06:09:34 jasper Exp $
SHARED_ONLY= Yes
@ -20,9 +20,6 @@ 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,7 +1,7 @@
$OpenBSD: patch-lpeg_c,v 1.3 2011/06/20 21:40:37 jasper Exp $
--- lpeg.c.orig Wed Dec 2 12:15:37 2009
+++ lpeg.c Wed Dec 2 12:15:56 2009
@@ -2134,7 +2134,7 @@ static int type_l (lua_State *L) {
$OpenBSD: patch-lpeg_c,v 1.4 2011/06/21 06:09:34 jasper Exp $
--- lpeg.c.orig Wed Feb 16 16:03:25 2011
+++ lpeg.c Mon Jun 20 23:41:43 2011
@@ -2268,7 +2268,7 @@ static int type_l (lua_State *L) {
static void createcat (lua_State *L, const char *catname, int (catf) (int)) {
Instruction *p = newcharset(L);
int i;

View File

@ -1,10 +1,9 @@
$OpenBSD: patch-makefile,v 1.3 2011/06/20 21:40:37 jasper Exp $
--- makefile.orig Mon Jun 20 23:35:56 2011
+++ makefile Mon Jun 20 23:36:51 2011
$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
@@ -1,7 +1,7 @@
LIBNAME = lpeg
-LUADIR = /usr/include/lua5.1/
+LUADIR = ${LOCALBASE}/include/
LUADIR = /usr/include/lua5.1/
-COPT = -O2 -DNDEBUG
+COPT = -O2 -DNDEBUG -fPIC -shared