diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-07-15 22:54:33 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-07-15 22:54:33 +0000 |
commit | 7215ba5a5ae2dc0fe85ded4729e9f2f800e650bc (patch) | |
tree | 63c77be5504d000a1691191948de8374747e9fc3 /textproc/luaexpat | |
parent | a251132ad7be84bea24ae7cb24e155829460aadd (diff) | |
download | ports-7215ba5a5ae2dc0fe85ded4729e9f2f800e650bc.tar.gz ports-7215ba5a5ae2dc0fe85ded4729e9f2f800e650bc.zip |
Notes
Diffstat (limited to 'textproc/luaexpat')
-rw-r--r-- | textproc/luaexpat/Makefile | 9 | ||||
-rw-r--r-- | textproc/luaexpat/files/patch-config | 13 |
2 files changed, 16 insertions, 6 deletions
diff --git a/textproc/luaexpat/Makefile b/textproc/luaexpat/Makefile index ec07fb100ce3..2e103ad9d30e 100644 --- a/textproc/luaexpat/Makefile +++ b/textproc/luaexpat/Makefile @@ -16,17 +16,18 @@ COMMENT= LuaExpat is a SAX XML parser based on the Expat library LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 -ONLY_FOR_ARCHS= i386 - MAKEFILE= makefile ALL_TARGET= lib USE_LUA= 5.0-5.1 +LUA_PREMK= yes WANT_LUA_VER= 5.1 CFLAGS+= -fPIC -.if ${USE_LUA} == 5.0 +.include <bsd.port.pre.mk> + +.if ${LUA_VER} == 5.0 BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:build .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/textproc/luaexpat/files/patch-config b/textproc/luaexpat/files/patch-config index 5202efab4a23..54f48eec42c0 100644 --- a/textproc/luaexpat/files/patch-config +++ b/textproc/luaexpat/files/patch-config @@ -1,5 +1,5 @@ ---- config.orig 2006-06-08 20:41:48.000000000 +0000 -+++ config 2009-07-03 03:00:20.000000000 +0000 +--- config.orig 2006-06-09 00:41:48.000000000 +0400 ++++ config 2009-07-15 22:46:59.000000000 +0400 @@ -1,15 +1,15 @@ # Installation directories # System's libraries directory (where binary libraries are installed) @@ -30,3 +30,12 @@ # Compilation parameters CWARNS = -Wall -pedantic \ +@@ -31,6 +31,6 @@ + -Wshadow \ + -Wwrite-strings + +-CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \ ++CFLAGS += $(CWARNS) -ansi -O2 -I$(LUA_INC) \ + -I$(COMPAT_DIR) -I$(EXPAT_INC) +-CC = gcc ++CC? = gcc |