freebsd-ports/converters/lua-iconv/Makefile
Ed Maste c460a0dbeb converters/lua*-iconv: enable -fPIC on arm64 and i386, for lld
Shared objects should be built as PIC, and lld enforces this by default.
Add aarch64 and i386 cases to the existing set of per-arch CFLAGS, and
remove the BROKEN_aarch64.

Approved by:	portmgr (lld blanket)
Sponsored by:	The FreeBSD Foundation
2018-09-18 19:53:46 +00:00

36 lines
809 B
Makefile

# Created by: vanilla@
# $FreeBSD$
PORTNAME= iconv
PORTVERSION= 7
PORTREVISION= 3
CATEGORIES= converters
MASTER_SITES= GHC
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTNAME= lua-${PORTNAME}-${PORTVERSION}
MAINTAINER= vanilla@FreeBSD.org
COMMENT= Iconv binding for Lua 5
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
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_aarch64= -fPIC
CFLAGS_amd64= -fPIC
CFLAGS_i386= -fPIC
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
${INSTALL_LIB} ${WRKSRC}/iconv.so ${STAGEDIR}${LUA_MODLIBDIR}
.include <bsd.port.mk>