From owner-freebsd-ports Sun Apr 9 13:56:57 2000 Delivered-To: freebsd-ports@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id 7C3E037B708; Sun, 9 Apr 2000 13:55:29 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca5-83.ix.netcom.com [209.109.234.83]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id QAA14299; Sun, 9 Apr 2000 16:55:25 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id NAA06185; Sun, 9 Apr 2000 13:55:21 -0700 (PDT) To: "Akinori -Aki- MUSHA" Cc: reg@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: proposal: PRENAME variable References: <200004090812.BAA04016@silvia.hip.berkeley.edu> <20000409113434.B32928@shale.csir.co.za> <86hfdbkrb9.wl@archon.local.idaemons.org> From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Date: 09 Apr 2000 13:55:20 -0700 In-Reply-To: "Akinori -Aki- MUSHA"'s message of "Mon, 10 Apr 2000 04:27:54 +0900" Message-ID: Lines: 57 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: "Akinori -Aki- MUSHA" * At Sun, 9 Apr 2000 11:34:34 -0700, * Jeremy Lea 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