On Sat, Jan 21, 2012 at 12:47:16AM +0000, Michael Scheidell wrote: > scheidell 2012-01-21 00:47:16 UTC > > FreeBSD ports repository > > Modified files: > astro/merkaartor Makefile > Log: > - Don't use INSTALL_ICONS when Gnome not installed > > PR: ports/164344 > Approved by: gabor(mentor, implicit) > > Revision Changes Path > 1.20 +5 -2 ports/astro/merkaartor/Makefile > http://cvsweb.FreeBSD.org/ports/astro/merkaartor/Makefile.diff?r1=1.19&r2=1.20 > | --- ports/astro/merkaartor/Makefile 2011/07/03 15:49:55 1.19 > | +++ ports/astro/merkaartor/Makefile 2012/01/21 00:47:16 1.20 > | @@ -2,7 +2,7 @@ > | # Date created: 9 January 2009 > | # Whom: sla...@rezic.de > | # > | -# $FreeBSD: > /usr/local/www/cvsroot/FreeBSD/ports/astro/merkaartor/Makefile,v 1.19 > 2011/07/03 15:49:55 jlaffaye Exp $ > | +# $FreeBSD: > /usr/local/www/cvsroot/FreeBSD/ports/astro/merkaartor/Makefile,v 1.20 > 2012/01/21 00:47:16 scheidell Exp $ > | # > | > | PORTNAME= merkaartor > | @@ -14,10 +14,10 @@ MASTER_SITES= http://www.merkaartor.be/a > | MAINTAINER= d...@heesakkers.info > | COMMENT= An openstreetmap mapping program > | > | -BUILD_DEPENDS= > ${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs > | - > | LICENSE= GPLv2 > | > | +BUILD_DEPENDS= > ${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs > | + > | USE_BZIP2= yes > | USE_LDCONFIG= yes > | > | @@ -25,7 +25,10 @@ USE_QT_VER= 4 > | QT_COMPONENTS= qmake_build uic_build moc_build rcc_build \ > | gui network svg webkit xml imageformats script scripttools > | MAKE_JOBS_SAFE= yes > | + > | +.if exists(${LOCALBASE}/bin/gnome-session) > | INSTALLS_ICONS= yes > | +.endif
Isn't there a better way to do this? As it stands now, if I don't have gnome-session then this port will not bring in the gnome stuff for me. What if I want it to bring in gnome? There is no way for this port to conditionally bring in gnome for me. If it sees I already have gnome it will honor that but there is no way for me to say "I don't have gnome, but please bring in the necessary parts and register dependencies for me". Shouldn't we make gnome support an option? Default it to off for the sake of not bloating the dependencies just to get some icons registered. You could even do something like: .if !defined(WITH_GNOME_ICONS) .if exists(${LOCALBASE}/bin/gnome-session) # Gnome is installed, but the user does not have GNOME_ICONS options # turned on, forcibly set this so icons will work. INSTALLS_ICONS= yes .fi .else # User specifically wants gnome icon support. INSTALLS_ICONS=yes .fi _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscr...@freebsd.org"