2009-12-05 16:33:14 +00:00
|
|
|
PORTNAME= iconv
|
2024-08-27 04:57:12 +00:00
|
|
|
PORTVERSION= 7.1.0
|
|
|
|
DISTVERSIONPREFIX= v
|
2009-12-05 16:33:14 +00:00
|
|
|
CATEGORIES= converters
|
|
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
|
|
COMMENT= Iconv binding for Lua 5
|
2024-08-27 04:57:12 +00:00
|
|
|
WWW= https://github.com/lunarmodules/lua-iconv
|
2009-12-05 16:33:14 +00:00
|
|
|
|
2018-03-27 13:37:43 +00:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2020-04-14 15:49:36 +00:00
|
|
|
USES= pkgconfig iconv lua:module
|
2009-12-05 16:33:14 +00:00
|
|
|
|
2024-08-27 04:57:12 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= lunarmodules
|
|
|
|
GH_PROJECT= lua-iconv
|
2018-03-27 13:37:43 +00:00
|
|
|
PLIST_FILES= ${LUA_MODLIBDIR}/iconv.so
|
2014-01-13 07:50:03 +00:00
|
|
|
CFLAGS+= `pkgconf --cflags lua-${LUA_VER}` -I${LOCALBASE}/include
|
|
|
|
MAKE_ARGS= LUABIN=${LUA_CMD} CFLAGS="${CFLAGS}"
|
2018-03-27 13:37:43 +00:00
|
|
|
LDFLAGS+= -shared ${ICONV_LIB} -L${LOCALBASE}/lib
|
2018-09-18 19:53:46 +00:00
|
|
|
CFLAGS_aarch64= -fPIC
|
2014-01-13 07:50:03 +00:00
|
|
|
CFLAGS_amd64= -fPIC
|
2019-09-01 17:45:53 +00:00
|
|
|
CFLAGS_armv6= -fPIC
|
|
|
|
CFLAGS_armv7= -fPIC
|
2018-09-18 19:53:46 +00:00
|
|
|
CFLAGS_i386= -fPIC
|
2021-06-06 17:15:10 +00:00
|
|
|
CFLAGS_powerpc= -fPIC
|
2022-01-04 18:11:48 +00:00
|
|
|
CFLAGS_riscv64= -fPIC
|
2009-12-05 16:33:14 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-01-13 07:50:03 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/iconv.so ${STAGEDIR}${LUA_MODLIBDIR}
|
2009-12-05 16:33:14 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|