6e83422724
With minor cleanups to make things simpler. With hat: portmgr Sponsored by: Absolight
67 lines
1.8 KiB
Makefile
67 lines
1.8 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= osmium
|
|
PORTVERSION= git20130522
|
|
PORTREVISION= 9
|
|
CATEGORIES= astro geography devel
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= C++/Javascript framework for working with OSM files
|
|
|
|
LICENSE= GPLv3 LGPL3
|
|
LICENSE_COMB= dual
|
|
|
|
LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal \
|
|
libboost_regex.so:${PORTSDIR}/devel/boost-libs \
|
|
libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
|
|
libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
libgeos.so:${PORTSDIR}/graphics/geos \
|
|
libprotobuf.so:${PORTSDIR}/devel/protobuf
|
|
BUILD_DEPENDS= google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
|
|
RUN_DEPENDS= google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= joto
|
|
GH_TAGNAME= 1a5bb26
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include \
|
|
-L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= JAVASCRIPT DOXYGEN DOCS
|
|
OPTIONS_DEFAULT=JAVASCRIPT
|
|
JAVASCRIPT_DESC=Enable javascript support
|
|
|
|
JAVASCRIPT_LIB_DEPENDS= libv8.so:${PORTSDIR}/lang/v8 \
|
|
libshp.so:${PORTSDIR}/devel/shapelib \
|
|
libicuuc.so:${PORTSDIR}/devel/icu
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
|
.endif
|
|
|
|
do-build:
|
|
.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKR_ARGS} doc
|
|
.else
|
|
${TRUE}
|
|
.endif
|
|
|
|
regression-test:
|
|
cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${SH} run_tests.sh
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/include && ${COPYTREE_SHARE} '${PORTNAME} ${PORTNAME}.hpp' \
|
|
${STAGEDIR}${PREFIX}/include/
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}/
|
|
.endif
|
|
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/THANKS \
|
|
${WRKSRC}/NOTES_FOR_DEVELOPERS ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|