Support of both FC4 and FC6 infrostructure ports

Boris Samorodov bsam at ipt.ru
Fri Mar 23 19:39:30 UTC 2007


Hi!


It'll soon so happen (after compat.linux.osrelease will become 2.6.x
by default at -CURRENT) that we may have two linux_base ports
with the corresponding infrostructure ports. To minimize the influence
of this fact on many linux-based ports I propose some changes to
bsd.linux-rpm.mk. The idea is stolen from bsd.ports.mk:
-----
.if defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} == xorg
X_IMAKE_PORT=           ${PORTSDIR}/devel/imake-6
...
.elif defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} == xfree86-4
X_IMAKE_PORT=           ${PORTSDIR}/devel/imake-4
...
-----

That is what I suggest:
-----
.if ${USE_LINUX:L} == "fc4"
LINUX_TIFF_PORT=        ${PORTSDIR}/graphics/linux-jpeg
...
.elif ${USE_LINUX:L} == "fc6"
LINUX_TIFF_PORT=        ${PORTSDIR}/graphics/linux-fc6-jpeg
...
-----

Then all is needed to those ports depending on libtiff:
-----
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libtiff.so.3:${PORTSDIR}/${LINUX_TIFF_PORT}
-----

Yes, the library version didn't change at FC6 since FC4.

It seems to me that that technique may greatly reduce the amount of
work for maintainers to let their ports make use of both linux_base
ports.

Any comments/suggestions etc. are welcome.
Thanks!


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-emulation mailing list