# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= luabind PORTVERSION= 0.9.1 PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Library that helps you create bindings between C++ and Lua LIB_DEPENDS= boost_python:${PORTSDIR}/devel/boost-python-libs USE_LUA= 5.1+ USE_LDCONFIG= yes CPPFLAGS+= -I.. -I${LUA_INCDIR} -I${LOCALBASE}/include LDFLAGS+= -L${LUA_LIBDIR} CXXFLAGS+= -fPIC PORTDOCS= * OPTIONS_DEFINE= DOCS .include post-patch: @${FIND} ${WRKSRC} -name "*.orig" -delete # If you manage to make boost_build build luabind with correct # includes/libraries/compiler/flags, please send a patch; # until then, custom build is used do-build: @cd ${WRKSRC}/src && ${ECHO_CMD} *.cpp | \ ${XARGS} -n1 -t ${_MAKE_JOBS:C/j/P/} \ ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c cd ${WRKSRC}/src && ${CXX} -shared ${LDFLAGS} -llua -o libluabind.so *.o cd ${WRKSRC}/src && ${AR} -rcs libluabind.a *.o do-install: ${INSTALL_DATA} ${WRKSRC}/src/libluabind.a ${STAGEDIR}${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/src/libluabind.so ${STAGEDIR}${PREFIX}/lib cd ${WRKSRC} && ${COPYTREE_SHARE} luabind ${STAGEDIR}${PREFIX}/include ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} .include