aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2012-05-21 00:48:35 +0800
committermezz <mezz@FreeBSD.org>2012-05-21 00:48:35 +0800
commit5605aebc05028abe65255bd69077b53d089b5a32 (patch)
tree5a0894c907e9bc0b269eb587823da9c9107ac110 /print
parentd676c919154d3b65f50dba10a7a84e415e62bcf2 (diff)
downloadfreebsd-ports-gnome-5605aebc05028abe65255bd69077b53d089b5a32.tar.gz
freebsd-ports-gnome-5605aebc05028abe65255bd69077b53d089b5a32.tar.zst
freebsd-ports-gnome-5605aebc05028abe65255bd69077b53d089b5a32.zip
Remove the auto-check dependency and able to use OPTIONS now.
PR: ports/163807 Submitted by: A.J. Kehoe IV (Nanoman) <aE7qL1CN@nanoman.ca>
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>|'