Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2000 01:12:18 -0700 (PDT)
From:      asami@freebsd.org (Satoshi Asami)
To:        ports@freebsd.org
Subject:   Re: proposal: PRENAME variable
Message-ID:  <200004090812.BAA04016@silvia.hip.berkeley.edu>

next in thread | raw e-mail | index | archive | help
Hi ports,

Michael came up with the following idea.  What do you guys think?
Basically we set PKGNAMEPREFIX to "ja-" or "p5-" or whatever when the
package name has a language-specifier as noted in the handbook.

It will help for ports that have their PKGNAME and DISTNAME only
differ by that part (most of "p5-" ports and a lot of natural language
ports).

We can even put "PKGNAMEPREFIX=ja-" in ports/japanese/Makefile.inc and
let the bsd.port.mk inclusion rule take care of most of the ports
(except for those use MASTERDIR in another category).

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 08:08:19
@@ -43,8 +43,9 @@
 #
 # 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.
+# PKGNAME		- Always defined as ${PKGNAMEPREFIX}${PORTNAME}-${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 +1114,8 @@
 	@${ECHO} "${PKGNAME}: You need to define PORTNAME and PORTVERSION instead of PKGNAME."
 	@${FALSE}
 .endif
-PKGNAME=	${PORTNAME}-${PORTVERSION}
-DISTNAME?=	${PKGNAME}
+PKGNAME=	${PKGNAMEPREFIX}${PORTNAME}-${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?200004090812.BAA04016>