aboutsummaryrefslogtreecommitdiffstats
path: root/print/cups-base
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-11-15 14:30:40 +0800
committerdinoex <dinoex@FreeBSD.org>2010-11-15 14:30:40 +0800
commitcae50cb10b163c27290100f6fad60a502d983375 (patch)
tree5ecc514db5bd6370810dc796e65f4cf11a797e76 /print/cups-base
parent1af07feb36016ef5a30d24719c8d43f088a92c6b (diff)
downloadfreebsd-ports-gnome-cae50cb10b163c27290100f6fad60a502d983375.tar.gz
freebsd-ports-gnome-cae50cb10b163c27290100f6fad60a502d983375.tar.zst
freebsd-ports-gnome-cae50cb10b163c27290100f6fad60a502d983375.zip
- fix options by forcing UNIQUENAME
PR: 150309 Submitted by: Marcin Wisnicki
Diffstat (limited to 'print/cups-base')
-rw-r--r--print/cups-base/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile
index 93f1ad4f48b2..8802ef887d8d 100644
--- a/print/cups-base/Makefile
+++ b/print/cups-base/Makefile
@@ -12,6 +12,7 @@ PORTREVISION= 0
CATEGORIES= print
MASTER_SITES= EASYSW/${PORTNAME}/${DISTVERSION}
PKGNAMESUFFIX= ${CUPS_SUFFIX}${PKGNAMESUFFIX2}
+UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Common UNIX Printing System: ${COMMENT2}
@@ -65,10 +66,18 @@ CUPSSYSGRP= wheel
#GROUPS= cups
#USERS= cups
+# UNIQUENAME must be set before bsd.port.pre.mk so OPTIONSFILE can be included
+.if defined(CUPS_CLIENT)
+CUPS_SUFFIX= -client
+.elif defined(CUPS_IMAGE)
+CUPS_SUFFIX= -image
+.else
+CUPS_SUFFIX= -base
+.endif
+
.include <bsd.port.pre.mk>
.if defined(CUPS_CLIENT)
-CUPS_SUFFIX= -client
COMMENT2= Library cups
INSTALL_WRKSRC= ${WRKSRC}/cups
PLIST= ${MASTERDIR}/pkg-plist.client
@@ -76,7 +85,6 @@ USE_LDCONFIG= yes
PKGMESSAGE= ${NONEXISTENT}
DESCR= ${MASTERDIR}/pkg-descr.client
.elif defined(CUPS_IMAGE)
-CUPS_SUFFIX= -image
LIB_DEPENDS+= cups.2:${PORTSDIR}/${PKGCATEGORY}/cups-client \
jpeg.11:${PORTSDIR}/graphics/jpeg \
png.6:${PORTSDIR}/graphics/png \
@@ -90,7 +98,6 @@ PKGMESSAGE= ${NONEXISTENT}
DESCR= ${MASTERDIR}/pkg-descr.image
.else
CONFLICTS+= cupsddk-*
-CUPS_SUFFIX= -base
LIB_DEPENDS+= cups.2:${PORTSDIR}/${PKGCATEGORY}/cups-client \
cupsimage.2:${PORTSDIR}/${PKGCATEGORY}/cups-image
# force build if old cups is installed.