summaryrefslogtreecommitdiff
path: root/dns/luaunbound/Makefile
blob: a7874e3b7577dc96a5c43edcd74fe5e84685271f (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
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
WWW=		https://github.com/brunoos/luasec

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>