# Created by: vanilla@ # $FreeBSD: head/converters/lua-iconv/Makefile 339574 2014-01-13 07:50:03Z bapt $ PORTNAME= iconv PORTVERSION= 7 CATEGORIES= converters 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} USES= pkgconfig iconv lua USE_GITHUB= yes GH_ACCOUNT= ittner GH_PROJECT= lua-${PORTNAME} 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: @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} ${INSTALL_LIB} ${WRKSRC}/iconv.so ${STAGEDIR}${LUA_MODLIBDIR} .include