# $FreeBSD: head/devel/lua-sysctl/Makefile 566833 2021-03-01 07:57:50Z samm $ PORTNAME= sysctl PORTVERSION= 2.0 DISTVERSIONPREFIX= v PORTREVISION= 2 CATEGORIES= devel PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} MAINTAINER= uzsolt@uzsolt.hu COMMENT= Small sysctl(3) interface for lua LICENSE= BSD2CLAUSE USES= lua:52+,module pkgconfig USE_GITHUB= yes GH_ACCOUNT= kAworu GH_PROJECT= lua-${PORTNAME} OPTIONS_DEFINE= DOCS EXAMPLES DOCSDIR= ${LUA_DOCSDIR} EXAMPLESDIR= ${LUA_EXAMPLESDIR} post-patch: @${REINPLACE_CMD} -e "s/5.2/${LUA_VER}/g" ${WRKSRC}/Makefile do-install: @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} ${INSTALL_LIB} ${WRKSRC}/build/sysctl.so ${STAGEDIR}${LUA_MODLIBDIR}/sysctl.so post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/misc/*.lua ${STAGEDIR}${EXAMPLESDIR} .include