aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libdvdcss
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-11-28 00:56:13 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-11-28 00:56:13 +0000
commit93f54b55bcdb9c66e44743441c5b7f5dd2f91b35 (patch)
tree0ddb4c198d2561bebf62950d432bec49d7f82329 /multimedia/libdvdcss
parenteeb367da164df3325392fd76d23d9a8aa73a16d1 (diff)
downloadports-93f54b55bcdb9c66e44743441c5b7f5dd2f91b35.tar.gz
ports-93f54b55bcdb9c66e44743441c5b7f5dd2f91b35.zip
Only build/install documentation if WITH_DOXYGEN is defined since
the dependency chain is too long. However, do not build under any circumstances if NOPORTDOCS is defined.
Notes
Notes: svn path=/head/; revision=149706
Diffstat (limited to 'multimedia/libdvdcss')
-rw-r--r--multimedia/libdvdcss/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/multimedia/libdvdcss/Makefile b/multimedia/libdvdcss/Makefile
index 66518c205cb6..4c3f7f2197ed 100644
--- a/multimedia/libdvdcss/Makefile
+++ b/multimedia/libdvdcss/Makefile
@@ -24,12 +24,21 @@ USE_AUTOTOOLS= libtool:15
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
+.ifndef(WITH_DOXYGEN)
+NOPORTDOCS= yes
+.endif
+
.ifndef(NOPORTDOCS)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PORTDOCS= *
.endif
+pre-everything::
+.if !defined(WITH_DOXYGEN)
+ @${ECHO_MSG} '==> Define WITH_DOXYGEN to build API documentation'
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/ioctl.c
# should we disable doc building?