aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libdvdcss
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2005-11-28 08:56:13 +0800
committerlioux <lioux@FreeBSD.org>2005-11-28 08:56:13 +0800
commitd99154feecaa8bd5613951543877f776e0cf4479 (patch)
treef8815c65a20cb443eb58bdadb6c09ffc5f9b5785 /multimedia/libdvdcss
parent5935176bce9997a9b234ea35aa483afa3539e496 (diff)
downloadfreebsd-ports-gnome-d99154feecaa8bd5613951543877f776e0cf4479.tar.gz
freebsd-ports-gnome-d99154feecaa8bd5613951543877f776e0cf4479.tar.zst
freebsd-ports-gnome-d99154feecaa8bd5613951543877f776e0cf4479.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.
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?