From 599191f91e9df51285f4f08da36c5cdcfaf90241 Mon Sep 17 00:00:00 2001 From: asami Date: Mon, 10 Apr 2000 12:31:02 +0000 Subject: 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 --- Mk/bsd.port.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Mk/bsd.port.mk') diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 24337731b686..7c8ee50a7bd4 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -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} -- cgit