Add optional dependency on print/system-config-printer-kde

This commit is contained in:
Max Brazhnikov 2009-05-15 18:02:22 +00:00
parent 6d4146817f
commit ea67e6c0ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233953

View File

@ -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>