Date: Thu, 19 Nov 1998 20:36:12 -0800 (PST) From: asami@FreeBSD.ORG (Satoshi Asami) To: ports@FreeBSD.ORG Subject: Re: cvs commit: src/share/mk bsd.port.mk Message-ID: <199811200436.UAA07249@silvia.hip.berkeley.edu> In-Reply-To: <199811200400.UAA27484@freefall.freebsd.org> (message from Satoshi Asami on Thu, 19 Nov 1998 20:00:45 -0800 (PST))
next in thread | previous in thread | raw e-mail | index | archive | help
* asami 1998/11/19 20:00:44 PST * * Modified files: * share/mk bsd.port.mk * Log: * (1) Remove LOOP_VAR and LOOP_OPTIONS. It's a hack and just too many things * break one way or another. With it goes the package-loop and the * describe loop. * * (2) Add new variable MASTERDIR to make it easier to share files between ports. * bsd.port.mk will find things like ${PKGDIR} underneath * ${MASTERDIR} (which defaults to ${.CURDIR}). What this means to you as porters is that it is now officially required to have one subdirectory per package. Use MASTERDIR to save redefining a whole bunch of variables (PKGDIR, FILESDIR, PATCHDIR) to share files. Something like: print/lprps-letter: the master port, with all subdirectries, Makefile contains === : PKGNAME= lprps-${PAPERSIZE}-2.5 : MAKE_FLAGS?= PAPERSIZE=${PS} -f : PAPERSIZE?= letter PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}' : .if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter .BEGIN: @${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\"" @${ECHO} "Possible values are: a4 or letter" @${FALSE} .endif : === print/lprps-a4: the slave port, with only a Makefile that says (besides the comments): === PAPERSIZE= a4 MASTERDIR= ${.CURDIR}/../lprps-letter .include "${MASTERDIR}/Makefile" === Note the "PAPERSIZE?=" in the master port. The "PS" stuff is just to make it all uppercase for the compilation. Please use lowercase for papersizes in package names. (DavidO told me to pick one, so I did.) Satoshi 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?199811200436.UAA07249>