summaryrefslogtreecommitdiff
path: root/devel/lua-lpeg
diff options
context:
space:
mode:
authoralnsn <alnsn>2014-11-08 20:08:11 +0000
committeralnsn <alnsn>2014-11-08 20:08:11 +0000
commit546ed5324011cf0e3ab236b48a7482c9465ac3a0 (patch)
treedac7a6bbfdaf5f8df8c932374922b38606162190 /devel/lua-lpeg
parentaf22feb9fb926791261ad2c748a1c11895c7cad4 (diff)
downloadpkgsrc-546ed5324011cf0e3ab236b48a7482c9465ac3a0.tar.gz
Fix Darwin build. Patch from Jonathan Buschmann via pkg/49377.
Diffstat (limited to 'devel/lua-lpeg')
-rw-r--r--devel/lua-lpeg/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/lua-lpeg/Makefile b/devel/lua-lpeg/Makefile
index e1135062d71..e94803ed87e 100644
--- a/devel/lua-lpeg/Makefile
+++ b/devel/lua-lpeg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2014/10/19 22:27:44 alnsn Exp $
+# $NetBSD: Makefile,v 1.7 2014/11/08 20:08:11 alnsn Exp $
#
DISTNAME= lpeg-0.12
@@ -12,12 +12,19 @@ HOMEPAGE= http://www.inf.puc-rio.br/~roberto/lpeg/
COMMENT= Parsing Expression Grammars (PEGs) library for Lua
LICENSE= mit
+.include "../../mk/bsd.prefs.mk"
+
NO_CONFIGURE= yes
USE_TOOLS+= gmake
MAKE_FILE= makefile
-BUILD_TARGET= linux
TEST_TARGET= test
+.if ${OPSYS} == "Darwin"
+BUILD_TARGET= macosx
+.else
+BUILD_TARGET= linux
+.endif
+
REPLACE_LUA+= test.lua
INSTALLATION_DIRS+= ${LUA_CDIR} ${LUA_LDIR} ${LUA_DOCDIR}