aboutsummaryrefslogtreecommitdiffstats
path: root/lang/libhx
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-04 08:24:35 +0800
committeradamw <adamw@FreeBSD.org>2014-07-04 08:24:35 +0800
commit6dc78950e0c80495bfd57af06cfff20ee2bbc55e (patch)
tree7783ff0f0257a62f380e3b38e870e71e9f194186 /lang/libhx
parentd93a96c3cc6bac03a611ffb3c80f89ee09e58d63 (diff)
downloadfreebsd-ports-gnome-6dc78950e0c80495bfd57af06cfff20ee2bbc55e.tar.gz
freebsd-ports-gnome-6dc78950e0c80495bfd57af06cfff20ee2bbc55e.tar.zst
freebsd-ports-gnome-6dc78950e0c80495bfd57af06cfff20ee2bbc55e.zip
Remove NOPORTDOCS and NOPORTEXAMPLES.
Diffstat (limited to 'lang/libhx')
-rw-r--r--lang/libhx/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/libhx/Makefile b/lang/libhx/Makefile
index 6de4104f8ec6..35f62154fef6 100644
--- a/lang/libhx/Makefile
+++ b/lang/libhx/Makefile
@@ -18,14 +18,16 @@ GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS+=--with-pkgconfigdir=${LOCALBASE}/libdata/pkgconfig
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:tl}
-.endif
+
+.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e 's| -lrt||g' ${WRKSRC}/src/Makefile.in
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
${REINPLACE_CMD} -e 's|libHX_Documentation.pdf||' \
${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/Makefile.am
.endif