aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lasi/Makefile
diff options
context:
space:
mode:
authorlme <lme@FreeBSD.org>2009-11-08 01:11:14 +0800
committerlme <lme@FreeBSD.org>2009-11-08 01:11:14 +0800
commit5d77a55dd50db627406373bfb6b07b9ff74b7b90 (patch)
tree6fd47a8f55dd26ce62f6c2f47620a178feb287f5 /devel/lasi/Makefile
parent5c00a21673e2e700f3d1a882607d090cfbf7a9a5 (diff)
downloadfreebsd-ports-gnome-5d77a55dd50db627406373bfb6b07b9ff74b7b90.tar.gz
freebsd-ports-gnome-5d77a55dd50db627406373bfb6b07b9ff74b7b90.tar.zst
freebsd-ports-gnome-5d77a55dd50db627406373bfb6b07b9ff74b7b90.zip
- Fix install by optionally build documentation (depends on Doxygen)
- Bump PORTREVISION Reviewed by: dinoex
Diffstat (limited to 'devel/lasi/Makefile')
-rw-r--r--devel/lasi/Makefile32
1 files changed, 25 insertions, 7 deletions
diff --git a/devel/lasi/Makefile b/devel/lasi/Makefile
index e3ce6a2006b5..8b07847cb800 100644
--- a/devel/lasi/Makefile
+++ b/devel/lasi/Makefile
@@ -7,7 +7,7 @@
PORTNAME= lasi
PORTVERSION= 1.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20Source
DISTNAME= libLASi-${PORTVERSION}
@@ -27,13 +27,31 @@ CMAKE_ARGS+= ${WRKSRC} \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DCMAKE_INSTALL_DATADIR:PATH=${DATADIR}
-post-install:
- ${MV} ${PREFIX}/lib/libLASi.so.0.0.1 ${PREFIX}/lib/libLASi.so.0
-.ifdef NOPORTEXAMPLES
- ${RM} -rf ${DATADIR}
+.if !defined(NOPORTDOCS)
+BUILD_DEPENDS+= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
.else
- ${MV} ${DATADIR}/examples ${EXAMPLESDIR}
- ${RMDIR} ${DATADIR}
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cmake+modules+lasi.cmake
+.endif
+
+pre-install:
+.if defined(NOPORTEXAMPLES)
+ @${REINPLACE_CMD} 's/^\(add_subdirectory(examples)\)/#\1/' ${WRKSRC}/CMakeLists.txt
.endif
+post-install:
+ @${MV} ${PREFIX}/lib/libLASi.so.0.0.1 ${PREFIX}/lib/libLASi.so.0
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${MV} ${DATADIR}/doc/* ${DOCSDIR}/
+ @${RMDIR} ${DATADIR}/doc
+.endif
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${MV} ${DATADIR}/examples/* ${EXAMPLESDIR}/
+ @${RMDIR} ${DATADIR}/examples
+.endif
+.if !defined(NOPORTEXAMPLES) && !defined(NOPORTDOCS)
+ @${RM} -rf ${DATADIR}/*
+.endif
+ @${TEST} -d ${DATADIR} && ${RMDIR} ${DATADIR} || ${TRUE}
.include <bsd.port.mk>