1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/converters/lua-iconv/Makefile

36 lines
861 B
Makefile
Raw Normal View History

PORTNAME= iconv
2024-08-27 04:57:12 +00:00
PORTVERSION= 7.1.0
DISTVERSIONPREFIX= v
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
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= pkgconfig iconv lua:module
2024-08-27 04:57:12 +00:00
USE_GITHUB= yes
GH_ACCOUNT= lunarmodules
GH_PROJECT= lua-iconv
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_aarch64= -fPIC
CFLAGS_amd64= -fPIC
CFLAGS_armv6= -fPIC
CFLAGS_armv7= -fPIC
CFLAGS_i386= -fPIC
CFLAGS_powerpc= -fPIC
CFLAGS_riscv64= -fPIC
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
${INSTALL_LIB} ${WRKSRC}/iconv.so ${STAGEDIR}${LUA_MODLIBDIR}
.include <bsd.port.mk>