# Created by: Alan Somers # $FreeBSD$ PORTNAME= lutok PORTVERSION= 0.2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} MAINTAINER= asomers@freebsd.org COMMENT= Lightweight C++ API for Lua LICENSE= BSD GNU_CONFIGURE= yes USE_LUA= 5.1 USE_LDCONFIG= yes USES= pkgconfig OPTIONS_DEFINE= DOCS EXAMPLES NO_STAGE= yes .include CONFIGURE_ARGS+= --docdir=${DOCSDIR} CONFIGURE_ARGS+= --htmldir=${DOCSDIR}/html # The distfile contains prebuilt doxygen files. Specify --without_doxygen so # we won't rebuild them CONFIGURE_ARGS+= --without-doxygen # TODO: install the tests, once FreeBSD has a system for ports to install tests CONFIGURE_ARGS+= --without-atf MAKE_FLAGS+= examplesdir=${EXAMPLESDIR} .if ! ${PORT_OPTIONS:MDOCS} MAKE_FLAGS+= doc_DATA= .endif .if ! ${PORT_OPTIONS:MEXAMPLES} MAKE_FLAGS+= examples_DATA= .endif PORTDOCS= AUTHORS COPYING NEWS README html PORTEXAMPLES= Makefile bindings.cpp hello.cpp interpreter.cpp raii.cpp PLIST_SUBST+= TESTS="@comment " post-patch: .SILENT @${REINPLACE_CMD} -e 's|@pkgconfigdir@|${PREFIX}/libdata/pkgconfig|' \ ${WRKSRC}/Makefile.in # Eliminate empty directories remove-docsdir: .SILENT ${RMDIR} ${DOCSDIR} remove-examplesdir: .SILENT ${RMDIR} ${EXAMPLESDIR} .if ! ${PORT_OPTIONS:MDOCS} pre-install: .SILENT ${RM} -rf ${WRKSRC}/api-docs post-install: remove-docsdir .endif .if ! ${PORT_OPTIONS:MEXAMPLES} post-install: remove-examplesdir .endif .include