summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2012-12-18 07:50:40 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2012-12-18 07:50:40 +0800
commitc0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5 (patch)
treef1541d067109139a6e4d4c3440b6546354f7eae0 /graphics
parent277ef4c0a9db7ddff8a339105787f4d9ee5b6d54 (diff)
downloadmarcuscom-ports-c0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5.tar
marcuscom-ports-c0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5.tar.gz
marcuscom-ports-c0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5.tar.bz2
marcuscom-ports-c0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5.tar.lz
marcuscom-ports-c0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5.tar.xz
marcuscom-ports-c0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5.tar.zst
marcuscom-ports-c0ac5b23bbaa5ed1e450479903c8b4e3e8fd5eb5.zip
trim header, convert to OptionsNG.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@17174 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r--graphics/colord/Makefile22
1 files changed, 6 insertions, 16 deletions
diff --git a/graphics/colord/Makefile b/graphics/colord/Makefile
index 4bff440bf..371129278 100644
--- a/graphics/colord/Makefile
+++ b/graphics/colord/Makefile
@@ -1,10 +1,6 @@
-# New ports collection makefile for: colord
-# Date Created: 16 Sep 2011
-# Whom: Koop Mast <kwm@FreeBSD.org>
-#
+# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
-# $MCom: ports/graphics/colord/Makefile,v 1.8 2012/05/16 18:42:14 kwm Exp $
-#
+# $MCom: ports/graphics/colord/Makefile,v 1.9 2012/08/08 16:56:40 kwm Exp $
PORTNAME= colord
PORTVERSION= 0.1.20
@@ -35,19 +31,18 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= USB_CFLAGS="-I/usr/include" \
USB_LIBS="-L/usr/lib -lusb"
-OPTIONS= SANE "Build sane colord support" off \
- MANPAGES "Build man pages" on
+OPTIONS_DEFINE= SANE MANPAGES
.include <bsd.port.options.mk>
-.if defined(WITHOUT_SANE)
+.if ${PORT_OPTIONS:MSANE}
CONFIGURE_ARGS+=--disable-sane
.else
CONFGIURE_ARGS+=--enable-sane=yes
LIB_DEPENDS+= sane.1:${PORTSDIR}/graphics/sane-backends
.endif
-.if defined(WITH_MANPAGES)
+.if ${PORT_OPTIONS:MMANPAGES}
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
@@ -61,12 +56,7 @@ post-patch:
-e 's|-Wmissing-parameter-type||g' \
-e 's|LIBS="-lusb-1.0|LIBS="-lusb|g' \
${WRKSRC}/configure
-# @${REINPLACE_CMD} -e 's|libusb-1.0/libusb.h|libusb.h|g' \
-# ${WRKSRC}/src/cd-sensor-munki.c \
-# ${WRKSRC}/src/cd-usb.c \
-# ${WRKSRC}/src/cd-usb.h \
-# ${WRKSRC}/src/cd-sensor-huey.c
-.if defined(WITHOUT_MANPAGES)
+.if empty(PORT_OPTIONS:MMANPAGES}
@${REINPLACE_CMD} -e "s|2MAN_TRUE=$$|2MAN_TRUE='#'|g ; \
s|2MAN_FALSE='#'|2MAN_FALSE=|g" ${WRKSRC}/configure
.endif