freebsd-ports/dns/luaunbound/Makefile

29 lines
687 B
Makefile
Raw Normal View History

2022-03-16 01:03:19 +01:00
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
2022-03-16 01:03:19 +01:00
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>