diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-10-07 18:46:01 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-10-07 18:46:01 +0800 |
commit | 4a1473d8bf2532393684103c137e7aa417f022ad (patch) | |
tree | 698dbf12742db188840165bcc46486000e874045 | |
parent | 688d90797c3998024f4b8af3c045c1e264bf057f (diff) | |
download | marcuscom-ports-4a1473d8bf2532393684103c137e7aa417f022ad.tar marcuscom-ports-4a1473d8bf2532393684103c137e7aa417f022ad.tar.gz marcuscom-ports-4a1473d8bf2532393684103c137e7aa417f022ad.tar.bz2 marcuscom-ports-4a1473d8bf2532393684103c137e7aa417f022ad.tar.lz marcuscom-ports-4a1473d8bf2532393684103c137e7aa417f022ad.tar.xz marcuscom-ports-4a1473d8bf2532393684103c137e7aa417f022ad.tar.zst marcuscom-ports-4a1473d8bf2532393684103c137e7aa417f022ad.zip |
Fix build of manpage, by borrowing the docbook hack from gnome-power-manager.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16370 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | graphics/colord/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/graphics/colord/Makefile b/graphics/colord/Makefile index a2d89f7bb..2fe4044d6 100644 --- a/graphics/colord/Makefile +++ b/graphics/colord/Makefile @@ -3,7 +3,7 @@ # Whom: Koop Mast <kwm@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/graphics/colord/Makefile,v 1.2 2011/09/16 18:57:16 kwm Exp $ +# $MCom: ports/graphics/colord/Makefile,v 1.3 2011/09/17 17:00:46 kwm Exp $ # PORTNAME= colord @@ -35,9 +35,8 @@ CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ USB_CFLAGS="-I/usr/include" \ USB_LIBS="-L/usr/lib -lusb" -MAN1= cd-create-profile.1 cd-fix-profile.1 colormgr.1 - -OPTIONS= SANE "Build sane colord support" off +OPTIONS= SANE "Build sane colord support" off \ + MANPAGES "Build man pages" on .include <bsd.port.options.mk> @@ -48,6 +47,13 @@ CONFGIURE_ARGS+=--enable-sane=yes LIB_DEPENDS+= sane.1:${PORTSDIR}/graphics/sane-backends .endif +.if defined(WITH_MANPAGES) +BUILD_DEPENDS+= docbook2html:${PORTSDIR}/textproc/docbook-utils \ + ${LOCALBASE}/share/sgml/docbook/4.1/dtd/catalog:${PORTSDIR}/textproc/docbook-410 +MAN1= cd-create-profile.1 cd-fix-profile.1 colormgr.1 +.endif + + post-patch: @${REINPLACE_CMD} -e 's|-Wclobbered||g' \ -e 's|-Wempty-body||g' \ @@ -61,5 +67,9 @@ post-patch: ${WRKSRC}/src/cd-usb.c \ ${WRKSRC}/src/cd-usb.h \ ${WRKSRC}/src/cd-sensor-huey.c +.if defined(WITHOUT_MANPAGES) + @${REINPLACE_CMD} -e "s|2MAN_TRUE=$$|2MAN_TRUE='#'|g ; \ + s|2MAN_FALSE='#'|2MAN_FALSE=|g" ${WRKSRC}/configure +.endif .include <bsd.port.mk> |