Date: 09 Apr 2000 13:55:20 -0700 From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) To: "Akinori -Aki- MUSHA" <knu@idaemons.org> Cc: reg@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: proposal: PRENAME variable Message-ID: <vqcsnwvq9jb.fsf@silvia.hip.berkeley.edu> In-Reply-To: "Akinori -Aki- MUSHA"'s message of "Mon, 10 Apr 2000 04:27:54 %2B0900" References: <200004090812.BAA04016@silvia.hip.berkeley.edu> <20000409113434.B32928@shale.csir.co.za> <86hfdbkrb9.wl@archon.local.idaemons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* From: "Akinori -Aki- MUSHA" <knu@idaemons.org> * At Sun, 9 Apr 2000 11:34:34 -0700, * Jeremy Lea <reg@FreeBSD.ORG> wrote: * > On Sun, Apr 09, 2000 at 01:12:18AM -0700, Satoshi Asami wrote: * > > +PKGNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} * > * > ${PKGNAMEPREFIX:S/$/-/:N-} ;-) * > * > How about just PKGPREFIX? and also a PKGSUFFIX which can be used for * > ports which have options (like the ispell ports, or the letter/a4 style * > ports)? * * `PKGPREFIX' must be confusing as PKG_PREFIX is already used around * pkg_add. Anyway PKGNAMESUFFIX is a cool idea! Yes, that's exactly why I used the longer PKGNAMEPREFIX. As for the suffix part, I agree, how about the following then? Since the suffix sometimes doesn't have a "-", I think we should make the dash included in the PKGNAME*IX rather than have bsd.port.mk supply it automatically for symmetry. Satoshi ------- Index: bsd.port.mk =================================================================== RCS file: /usr/cvs/ports/Mk/bsd.port.mk,v retrieving revision 1.333 diff -u -r1.333 bsd.port.mk --- bsd.port.mk 2000/04/04 07:05:36 1.333 +++ bsd.port.mk 2000/04/09 20:52:58 @@ -43,8 +43,11 @@ # # 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 @@ @${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} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vqcsnwvq9jb.fsf>