aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-07-16 04:39:32 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-07-16 04:39:32 +0800
commitdc0184a14110fc8953f1e350f07ab73211c3357f (patch)
tree7e067659e6c57537a9261997a97cfaa7fe8c78f8 /net
parent50ade3a8815013a41aacb13e54e4a4c4ac237a04 (diff)
downloadfreebsd-ports-gnome-dc0184a14110fc8953f1e350f07ab73211c3357f.tar.gz
freebsd-ports-gnome-dc0184a14110fc8953f1e350f07ab73211c3357f.tar.zst
freebsd-ports-gnome-dc0184a14110fc8953f1e350f07ab73211c3357f.zip
- Use | as separator in sed regexps to not stumble on ${CC} containing slashes
- Add LICENSE_FILE - Sort USES - Strip libraries - Unsilence INSTALL_* PR: 201269 Submitted by: amdmi3 Approved by: maintainer timeout (lx, 2 weeks)
Diffstat (limited to 'net')
-rw-r--r--net/luasocket/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/luasocket/Makefile b/net/luasocket/Makefile
index 7837bcef5bb3..1003ea5a4d64 100644
--- a/net/luasocket/Makefile
+++ b/net/luasocket/Makefile
@@ -10,13 +10,14 @@ MAINTAINER= lx@FreeBSD.org
COMMENT= IPv4 and IPv6 socket support for the Lua language
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= diegonehab
GH_TAGNAME= v3.0-rc1
MAKE_ARGS= LUA_VER=${LUA_VER}
-USES= lua:51 gmake pkgconfig
+USES= gmake lua:51 pkgconfig
CFLAGS+= `pkgconf --cflags lua-${LUA_VER}`
LDFLAGS+= -shared `pkgconf --libs lua-${LUA_VER}`
@@ -26,13 +27,14 @@ OPTIONS_DEFINE= DOCS
post-extract:
@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
@${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile
- @${REINPLACE_CMD} -e 's/gcc/${CC}/g' ${WRKSRC}/src/Makefile
- @${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS\+=/g' ${WRKSRC}/src/Makefile
- @${REINPLACE_CMD} -e 's/LDFLAGS=/LDFLAGS\+=/g' ${WRKSRC}/src/Makefile
+ @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/src/Makefile
+ @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g' ${WRKSRC}/src/Makefile
+ @${REINPLACE_CMD} -e 's|LDFLAGS=|LDFLAGS\+=|g' ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e 's/prefix/PREFIX/g' ${WRKSRC}/src/Makefile
post-install:
+ ${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR:S|^${LOCALBASE}|${PREFIX}|}/*/*.so
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}/${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>