1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Rearrange the kdelibs3 and kdelibs3-nocups ports so that it's possible

to build a cups-disabled kdelibs from the get-go by defining WITHOUT_CUPS
or KDE_WITHOUT_CUPS during builds.

Proposed and based on a patch submitted by: mi
This commit is contained in:
Michael Nottebrock 2005-08-28 08:20:53 +00:00
parent bfbbdad412
commit bade40d1c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=141045
3 changed files with 16 additions and 12 deletions

View File

@ -4,15 +4,13 @@
#
# $FreeBSD$
PORTNAME= kdelibs3
PKGNAMESUFFIX= -nocups
PORTNAME?= kdelibs3
PKGNAMESUFFIX?= -nocups
MAINTAINER= kde@FreeBSD.org
MASTERDIR= ${.CURDIR}/../kdelibs3
CONFLICTS+= kdelibs-[0-9]*
CONFIGURE_ARGS+= --disable-cups
PLIST= ${.CURDIR}/pkg-plist
WITHOUT_CUPS= yes
MASTERDIR= ${.CURDIR}/../../x11/kdelibs3
.include "${MASTERDIR}/Makefile"

View File

@ -36,11 +36,14 @@ RUN_DEPENDS= iceauth:${X_CLIENTS_PORT} \
${FONTSCALE}:${X_FONTS_TTF_PORT} \
${FONTENCOD}:${X_FONTS_ENCODINGS_PORT}
.if ${PKGNAMESUFFIX} == -nocups
CONFLICTS+= kdeadmin-3.[0-3].* kdeadmin-3.4.[0-1]* kdeartwork-3.[2-3]* kdebase-3.[0-3]* kdepim-3.2*
.if defined(WITHOUT_CUPS) || defined(KDE_WITHOUT_CUPS)
CONFLICTS+= kdelibs-[0-9]*
PKGNAMESUFFIX= -nocups
CONFIGURE_ARGS+=--disable-cups
.else
CONFLICTS+= kdeadmin-3.[0-3].* kdeadmin-3.4.[0-1]* kdeartwork-3.[2-3]* kdebase-3.[0-3]* kdelibs-nocups-[0-9]* kdepim-3.2*
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
CONFLICTS+= kdelibs-nocups-[0-9]*
LIB_DEPENDS+= cups:${PORTSDIR}/print/cups-base
.endif
USE_GETTEXT= yes

View File

@ -36,11 +36,14 @@ RUN_DEPENDS= iceauth:${X_CLIENTS_PORT} \
${FONTSCALE}:${X_FONTS_TTF_PORT} \
${FONTENCOD}:${X_FONTS_ENCODINGS_PORT}
.if ${PKGNAMESUFFIX} == -nocups
CONFLICTS+= kdeadmin-3.[0-3].* kdeadmin-3.4.[0-1]* kdeartwork-3.[2-3]* kdebase-3.[0-3]* kdepim-3.2*
.if defined(WITHOUT_CUPS) || defined(KDE_WITHOUT_CUPS)
CONFLICTS+= kdelibs-[0-9]*
PKGNAMESUFFIX= -nocups
CONFIGURE_ARGS+=--disable-cups
.else
CONFLICTS+= kdeadmin-3.[0-3].* kdeadmin-3.4.[0-1]* kdeartwork-3.[2-3]* kdebase-3.[0-3]* kdelibs-nocups-[0-9]* kdepim-3.2*
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
CONFLICTS+= kdelibs-nocups-[0-9]*
LIB_DEPENDS+= cups:${PORTSDIR}/print/cups-base
.endif
USE_GETTEXT= yes