aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/kdeadmin4/Makefile
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2009-05-16 02:02:22 +0800
committermakc <makc@FreeBSD.org>2009-05-16 02:02:22 +0800
commit701093d6b1b3cfbdc3ce051c8cfd673935099d5b (patch)
treea9b77da2929fc1fc9f6624fbae91a130be22e3bb /sysutils/kdeadmin4/Makefile
parentb2d6b1d9f9a585191a4276cd04bbf7cf105f4a08 (diff)
downloadfreebsd-ports-gnome-701093d6b1b3cfbdc3ce051c8cfd673935099d5b.tar.gz
freebsd-ports-gnome-701093d6b1b3cfbdc3ce051c8cfd673935099d5b.tar.zst
freebsd-ports-gnome-701093d6b1b3cfbdc3ce051c8cfd673935099d5b.zip
Add optional dependency on print/system-config-printer-kde
Diffstat (limited to 'sysutils/kdeadmin4/Makefile')
-rw-r--r--sysutils/kdeadmin4/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysutils/kdeadmin4/Makefile b/sysutils/kdeadmin4/Makefile
index 512306167cb5..ea1016f7999b 100644
--- a/sysutils/kdeadmin4/Makefile
+++ b/sysutils/kdeadmin4/Makefile
@@ -31,6 +31,14 @@ PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CMAKE_ARGS+= -DBUILD_kpackage:BOOL=Off \
-DBUILD_lilo-config:BOOL=Off
+OPTIONS= PRINTER_CONFIG "Install printer configuration utility" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PRINTER_CONFIG)
+RUN_DEPENDS+= ${KDE4_PREFIX}/bin/system-config-printer-kde:${PORTSDIR}/print/system-config-printer-kde
+.endif
+
post-extract:
${MKDIR} ${WRKSRC}
@@ -44,4 +52,5 @@ post-patch:
#disable system-config-printer-kde, it comes with print/kdeadmin4-system-config-printer-kde
${REINPLACE_CMD} -e '/add_subdirectory.*system-config-printer-kde/d' \
${WRKSRC}/../CMakeLists.txt
-.include <bsd.port.mk>
+
+.include <bsd.port.post.mk>