summaryrefslogtreecommitdiff
path: root/dns/luaunbound/Makefile
blob: 58da91aac3c6aa1188c92a75f7d7283a806a89d5 (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
PORTNAME=	luaunbound
PORTVERSION=	1.0.0
CATEGORIES=	dns
MASTER_SITES=	https://code.zash.se/dl/luaunbound/
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}

MAINTAINER=	thomas@beingboiled.info
COMMENT=	Lua binding to libunbound

LICENSE=	MIT

LIB_DEPENDS=	libunbound.so:dns/unbound

USES=		lua:module

CFLAGS+=	-fPIC -I${LUA_INCDIR} -I${LOCALBASE}/include
LDFLAGS+=	-shared -L${LUA_LIBDIR} -L${LOCALBASE}/lib -llua-${LUA_VER} -lunbound

do-build:
	cd ${WRKSRC} ;\
	${CC} ${CFLAGS} ${LDFLAGS} -o lunbound.so lunbound.c

do-install:
	${MKDIR} ${STAGEDIR}/${LUA_MODLIBDIR}
	${INSTALL_LIB} ${WRKSRC}/lunbound.so ${STAGEDIR}/${LUA_MODLIBDIR}

.include <bsd.port.mk>