Add PKGNAMEPREFIX and PKGNAMESUFFIX - these are to be used in case the

package name includes "language specifics" or "compilation options" as
specified in the handbook.  PKGNAME is now defined as
${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}.

Suggested by:	mharo (prefix), reg (suffix)
Reviewed by:	the ports list
This commit is contained in:
Satoshi Asami 2000-04-10 12:31:02 +00:00
parent edd39ece4d
commit 7d2acfd09e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27438

View file

@ -43,8 +43,11 @@ FreeBSD_MAINTAINER= asami@FreeBSD.org
#
# PORTNAME - Name of software.
# PORTVERSION - Version of software.
# PKGNAME - Always defined as ${PORTNAME}-${PORTVERSION}. Do not
# define this in your Makefile.
# PKGNAMEPREFIX - Prefix to specify that port is language-specific, etc.
# PKGNAMESUFFIX - Suffix to specify compilation options.
# PKGNAME - Always defined as
# ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}.
# Do not define this in your Makefile.
# DISTNAME - Name of port or distribution used in generating
# WRKSRC and DISTFILES below (default:
# ${PORTNAME}-${PORTVERSION}).
@ -1113,8 +1116,8 @@ FETCH_BEFORE_ARGS+= -l
@${ECHO} "${PKGNAME}: You need to define PORTNAME and PORTVERSION instead of PKGNAME."
@${FALSE}
.endif
PKGNAME= ${PORTNAME}-${PORTVERSION}
DISTNAME?= ${PKGNAME}
PKGNAME= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
DISTNAME?= ${PORTNAME}-${PORTVERSION}
.else
# old style
PKGNAME?= ${DISTNAME}