diff options
author | bapt <bapt@FreeBSD.org> | 2014-01-13 15:50:03 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-01-13 15:50:03 +0800 |
commit | 69d06a39d58d406282e1c43a8250690a9098a96a (patch) | |
tree | e10ec95bd7ec6d04711395c057108d0cfeaa0b75 /converters/lua-iconv/Makefile | |
parent | be6a4385922a16e7b1a31e6a4f1c64ee8825ace8 (diff) | |
download | freebsd-ports-gnome-69d06a39d58d406282e1c43a8250690a9098a96a.tar.gz freebsd-ports-gnome-69d06a39d58d406282e1c43a8250690a9098a96a.tar.zst freebsd-ports-gnome-69d06a39d58d406282e1c43a8250690a9098a96a.zip |
Update to version 7 to allow using lua 5.2
While here switch MASTER_SITES to github cloud
Use MAKE_ARGS do avoid patching
With hat: lua@
Diffstat (limited to 'converters/lua-iconv/Makefile')
-rw-r--r-- | converters/lua-iconv/Makefile | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/converters/lua-iconv/Makefile b/converters/lua-iconv/Makefile index 532b7789a1f9..d36e58cb1625 100644 --- a/converters/lua-iconv/Makefile +++ b/converters/lua-iconv/Makefile @@ -2,27 +2,30 @@ # $FreeBSD$ PORTNAME= iconv -PORTVERSION= 6 +PORTVERSION= 7 CATEGORIES= converters -MASTER_SITES= http://luaforge.net/frs/download.php/4181/ +MASTER_SITES= GHC PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} +DISTNAME= lua-${PORTNAME}-${PORTVERSION} MAINTAINER= vanilla@FreeBSD.org COMMENT= Iconv binding for Lua 5 WRKSRC= ${WRKDIR}/lua-${PORTNAME}-${PORTVERSION} -USE_LUA?= 5.1 -USES= pkgconfig iconv +USES= pkgconfig iconv lua -PLIST_FILES= %%LUA_MODLIBDIR%%/iconv.so +USE_GITHUB= yes +GH_ACCOUNT= ittner +GH_PROJECT= lua-${PORTNAME} -post-patch: - @${REINPLACE_CMD} -e 's|%%INCDIR%%|-I${PREFIX}/include| ; \ - s|%%LIBDIR%%|-L${PREFIX}/lib|; \ - s|%%ICONV_LIB%%|${ICONV_LIB}|' ${WRKSRC}/Makefile +PLIST_FILES= %%LUA_MODLIBDIR%%/iconv.so +CFLAGS+= `pkgconf --cflags lua-${LUA_VER}` -I${LOCALBASE}/include +MAKE_ARGS= LUABIN=${LUA_CMD} CFLAGS="${CFLAGS}" +LDFLAGS= -shared ${ICONV_LIB} -L${LOCALBASE}/lib +CFLAGS_amd64= -fPIC do-install: - @if [ ! -d ${STAGEDIR}${LUA_MODLIBDIR} ]; then ${MKDIR} ${STAGEDIR}/${LUA_MODLIBDIR}; fi - @${INSTALL_PROGRAM} ${WRKSRC}/iconv.so ${STAGEDIR}/${LUA_MODLIBDIR} + @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} + ${INSTALL_LIB} ${WRKSRC}/iconv.so ${STAGEDIR}${LUA_MODLIBDIR} .include <bsd.port.mk> |