aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2012-05-20 16:48:35 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2012-05-20 16:48:35 +0000
commit3e4d8ab44df742e2e269fe452dc9e19eb019d7c0 (patch)
treef7449ad43243b06d4f0e11fc253632084882489c /print
parentabcad0b093d03b8cacdde69592df1fc7bfa4c0ea (diff)
downloadports-3e4d8ab44df742e2e269fe452dc9e19eb019d7c0.tar.gz
ports-3e4d8ab44df742e2e269fe452dc9e19eb019d7c0.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/libgnomeprint/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/print/libgnomeprint/Makefile b/print/libgnomeprint/Makefile
index 17c37748b5e7..a98cc37d5b38 100644
--- a/print/libgnomeprint/Makefile
+++ b/print/libgnomeprint/Makefile
@@ -36,9 +36,11 @@ LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB= VERSION=${PORTVERSION} \
LIBVERSION=2.2
+OPTIONS= CUPS "Enable CUPS support" on
+
.include <bsd.port.pre.mk>
-.if (defined(WITH_CUPS) || exists(${LOCALBASE}/lib/libcups.so)) && !defined(WITHOUT_CUPS)
+.if defined(WITH_CUPS) && !defined(WITHOUT_CUPS)
CONFIGURE_ARGS+= --with-cups
LIB_DEPENDS+= gnomecups-1.0:${PORTSDIR}/print/libgnomecups
PLIST_SUB+= CUPS:=""
@@ -47,13 +49,6 @@ CONFIGURE_ARGS+= --without-cups
PLIST_SUB+= CUPS:="@comment "
.endif
-pre-everything::
-.if !defined(WITH_CUPS)
- @${ECHO_MSG} " Enable cups support by defining"
- @${ECHO_MSG} " WITH_CUPS"
- @${ECHO_MSG} ""
-.endif
-
post-patch:
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
's|<malloc[.]h>|<stdlib.h>|'