Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2000 17:00:03 +0900
From:      "Akinori -Aki- MUSHA" <knu@idaemons.org>
To:        asami@FreeBSD.org
Cc:        freebsd-ports@FreeBSD.org
Subject:   Better support for multi-level PKGNAMEPREFIX
Message-ID:  <861yzx7dh8.wl@localhost.local.idaemons.org>

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

First of all, please take a look at one of the current japanese/p5-*
ports.  You can see there is kind of an ugly workaround like this:

	.include <bsd.port.pre.mk>

	PKGNAMEPREFIX:=	${PKGNAMEPREFIX}p5-

	[...]

	.include <bsd.port.pre.mk>


It was me who did this during the series of PKGNAME changes, so now I
think I'd like to fix the situation.  The idea is very simple; just
change the following line in each <category>/Makefile.inc:

	PKGNAMEPREFIX?=	xx-

to the following set of lines:

	.if defined(PKGNAMEPREFIX)
	PKGNAMEPREFIX:=	xx-${PKGNAMEPREFIX}
	.else
	PKGNAMEPREFIX=	xx-
	.endif

Then such ports as japanese/p5-* could simply define PKGNAMEPREFIX and
leave the rest to ../Makefile.inc.


I attached a patchset for all {lang-specific}/Makefile.inc and those
ports in the lang-specific categories that define PKGNAMEPREFIX.
Please review and commit it if it's fine.


Thanks,

-- 
                           /
                          /__  __       
                         / )  )  ) )  /
Akinori -Aki- MUSHA aka / (_ /  ( (__(  @ idaemons.org / FreeBSD.org

"We're only at home when we're on the run, on the wing, on the fly"

begin 644 PKGNAMEPREFIX-fix.diff.gz
M'XL(``E=DCD"`^5:^V_B2!+^V?P5K6RTVA7QBU<2WS(30DB6#0$.F-WH=!(R
MT!`'L!G;Y#%9[F^_JK;QBS8#2931Z=`,L=M57S^JOJKJ-G5S1)\T,KPS3.I0
M^4:?TK$QHY)A#C/EMW\RG6J7(*!&Y#MK3F5S^.#("\MV'9G7Y]%#QJ:N;=`'
MPYP0&_XXAF425<IE1L9X3,0E$6VX([&!BJ+(G8&04Q1%5@JRJA*EI!5/-;4D
M(%8VF]VF<"*K"E&.-:6@%7.9LS,BJD<%D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6SCH>CJQA)NN+"0+_.6&;8WR=
M6!9\42CZV07V0F(OF?VWRR(;]^>PZZ"DRF3]1Y&-`N[L\3TS1PO<SCM!C*H%
MC<1_"<U&D5I^^6,\?&EUU^4;^8T4('/F%/+WW^27^*-/95)4\.,=;L24V(,B
M^37A)]E@R+=]5I`B@:'6$F=/BTGA(.$BV;+`%XM,AYVZ!$>=?L7U""%S9GRC
M=N[#ZBS_EZF<GM-_;IF/_]XR'R^S.%#ACRUA^W."/Z`J%@0&A-75-@7_E?J)
MEEN?0ASC*41IX]C>FP>!.B%]0S2WEZ;Q!/L;EU4#0;\R.))HTQF%?+510<QT
M4YPZ$D1(U%F?1^!9/P[4V2@?V.]G(_N9H!<Q)RF*J.9$QQXF=S`0M*?2G#Y3
6^VQDF!9]DISE@.UE_@N_428_>R\``/N9
`
end


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?861yzx7dh8.wl>