aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-01-20 22:17:03 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-01-20 22:17:03 +0000
commit5be37c5652dc5c78d8c053ae35a0da08da8d4c7d (patch)
treebe32ea9934c38de1599012678a40836e249dc024 /Mk/bsd.port.mk
parent73d891fa45647c8cf3bf68765dea2db797be5a8b (diff)
downloadports-5be37c5652dc5c78d8c053ae35a0da08da8d4c7d.tar.gz
ports-5be37c5652dc5c78d8c053ae35a0da08da8d4c7d.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 12229173a992..40c2e89b9743 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -69,6 +69,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# Optional.
# PKGNAMESUFFIX - Suffix to specify compilation options. Optional.
# Do not define this in your Makefile.
+# UNIQUENAME - A name for your port that is globally unique. By default,
+# this is set to ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
# DISTNAME - Name of port or distribution used in generating
# WRKSRC and DISTFILES below (default:
# ${PORTNAME}-${PORTVERSION}).
@@ -1017,7 +1019,8 @@ USE_SUBMAKE= yes
# where 'make config' records user configuration options
PORT_DBDIR?= /var/db/ports
-OPTIONSFILE?=${PORT_DBDIR}/${PORTNAME}/options
+UNIQUENAME?=${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
+OPTIONSFILE?=${PORT_DBDIR}/${UNIQUENAME}/options
.if exists(${OPTIONSFILE})
.include "${OPTIONSFILE}"
.endif
@@ -4901,8 +4904,8 @@ config:
.if !defined(OPTIONS)
@${ECHO_MSG} "===> No options to configure"
.else
- @(${MKDIR} ${PORT_DBDIR}/${PORTNAME} 2> /dev/null) || \
- (${ECHO_MSG} "===> Cannot create ${PORT_DBDIR}/${PORTNAME}, check permissions"; exit 1)
+ @(${MKDIR} ${PORT_DBDIR}/${UNIQUENAME} 2> /dev/null) || \
+ (${ECHO_MSG} "===> Cannot create ${PORT_DBDIR}/${UNIQUENAME}, check permissions"; exit 1)
-@if [ -e ${OPTIONSFILE} ]; then \
. ${OPTIONSFILE}; \
fi; \
@@ -4971,7 +4974,7 @@ rmconfig:
.if exists(${OPTIONSFILE})
-@${ECHO_MSG} "===> Removing user-configured options for ${PORTNAME}"; \
${RM} -f ${OPTIONSFILE}; \
- ${RMDIR} ${PORT_DBDIR}/${PORTNAME}
+ ${RMDIR} ${PORT_DBDIR}/${UNIQUENAME}
.else
@${ECHO_MSG} "===> No user-specified options configured for ${PORTNAME}"
.endif