after r254273 - Fix a bunch of ports to properly work after this - Mark converters/libiconv as IGNORE for systems with iconv in libc Reviewed by: bapt Approved by: portmgr (bapt) Discussed with: bapt, bsam (who both contributed ideas and code)
31 lines
720 B
Makefile
31 lines
720 B
Makefile
# New ports collection makefile for: lua-iconv
|
|
# Date created: 04 Dec 2009
|
|
# Whom: vanilla@
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= iconv
|
|
PORTVERSION= 6
|
|
CATEGORIES= converters
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/4181/
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
COMMENT= Iconv binding for Lua 5
|
|
|
|
WRKSRC= ${WRKDIR}/lua-${PORTNAME}-${PORTVERSION}
|
|
USE_LUA?= 5.1
|
|
USES= pkgconfig iconv
|
|
|
|
PLIST_FILES= %%LUA_MODLIBDIR%%/iconv.so
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%INCDIR%%|-I${PREFIX}/include| ; \
|
|
s|%%LIBDIR%%|-L${PREFIX}/lib|; \
|
|
s|%%ICONV_LIB%%|${ICONV_LIB}|' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/iconv.so ${LUA_MODLIBDIR}
|
|
|
|
.include <bsd.port.mk>
|