summaryrefslogtreecommitdiffstats
path: root/converters/lua-iconv/Makefile
blob: 7e03055cdcbb78e03ee1e2b6cf65c5ef58a23514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Created by: vanilla@
# $FreeBSD$

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

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 <bsd.port.mk>
OpenPOWER on IntegriCloud