From ba90b71fb7d2df8d6d7854641a9414ad6cc61979 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Thu, 22 Jul 2004 16:04:44 +0000 Subject: If the gconf2 USE_GNOME component is used, overload the pre-install target to explicitly create ${PREFIX}/etc/gconf/gconf.xml.defaults/. A number of ports don't create this directory automatically. In normal uses, this doesn't cause a problem, but many of us prefer to test out plists by installing into custom prefixes. This prevents those custom prefix installation tests from failing. Inspired by: John Merryweather Cooper --- Mk/bsd.gnome.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index 6520a29c670a..491fb09c3b12 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -609,5 +609,13 @@ PLIST_SUB+= GNOMEDESKTOP:="@comment " NOGNOMEDESKTOP:="" CONFIGURE_FAIL_MESSAGE= "Please direct the output of the failure of the make command to a file, and then feed that file to the gnomelogalyzer, available from "http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the problem and suggest a solution. If - and only if - the gnomelogalyzer cannot solve the problem, report the problem to the FreeBSD GNOME team at ${MAINTAINER}, and attach \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" and the output of the failure of the make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an \`ls ${PKG_DBDIR}\`)." .endif +.if ${_USE_GNOME_ALL:Mgconf2}!="" +pre-install: gnome-pre-install + +gnome-pre-install: + @${MKDIR} ${PREFIX}/etc/gconf/gconf.xml.defaults/ + +.endif + .endif # End of use part. -- cgit v1.2.3