1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/devel/lua-sysctl/Makefile
Mathieu Arnold 4a3bebcae1 Add EXAMPLES options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:15:47 +00:00

36 lines
885 B
Makefile

# $FreeBSD$
PORTNAME= sysctl
PORTVERSION= 2.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= uzsolt@uzsolt.hu
COMMENT= Small sysctl(3) interface for lua
LICENSE= BSD2CLAUSE
BROKEN_FreeBSD_10= does not build (error: use of undeclared identifier 'CTLTYPE_S8')
USES= pkgconfig lua
USE_GITHUB= yes
GH_ACCOUNT= kAworu
GH_PROJECT= lua-${PORTNAME}
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e "s/5.1/${LUA_VER}/g" ${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} \
${STAGEDIR}${EXAMPLESDIR} \
${STAGEDIR}${DOCSDIR}/${PKGNAMEPREFIX}${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/misc/*.lua ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/${PKGNAMEPREFIX}${PORTNAME}
${INSTALL_LIB} ${WRKSRC}/build/sysctl.so ${STAGEDIR}${LUA_MODLIBDIR}/sysctl.so
.include <bsd.port.mk>