From 5992f9076ea516576ab85b3bfae9a50ad602d25a Mon Sep 17 00:00:00 2001 From: ahze Date: Fri, 1 Jun 2007 11:19:10 +0000 Subject: Make gtkhtml optional PR: ports/112374 Submitted by: Henrik Brix Andersen --- graphics/gimp-app-devel/Makefile | 14 ++++++++++++-- graphics/gimp-app-devel/pkg-plist | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'graphics/gimp-app-devel') diff --git a/graphics/gimp-app-devel/Makefile b/graphics/gimp-app-devel/Makefile index e2f52ff6fcf5..81942d685278 100644 --- a/graphics/gimp-app-devel/Makefile +++ b/graphics/gimp-app-devel/Makefile @@ -8,7 +8,7 @@ PORTNAME= gimp-app PORTVERSION= 2.3.16 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH?= 1 CATEGORIES?= graphics gnome MASTER_SITES= ftp://ftp.gimp.org/pub/%SUBDIR%/ \ @@ -39,7 +39,7 @@ USE_GETTEXT= yes USE_XPM= yes USE_GMAKE= yes USE_AUTOTOOLS= libtool:15 -USE_GNOME+= gnomehack intltool intlhack gtk20 libartlgpl2 ltverhack desktopfileutils libgtkhtml +USE_GNOME+= gnomehack intltool intlhack gtk20 libartlgpl2 ltverhack desktopfileutils WANT_GNOME= yes USE_GCC= 3.4+ USE_LDCONFIG= yes @@ -58,6 +58,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ .if !defined(GIMP_SLAVE) OPTIONS?= DEBUG "debugging" off \ + HELPBROWSER "internal help browser" on \ MP "multiple processor support" off \ RSVG "SVG format support" on .endif @@ -104,6 +105,15 @@ PLIST_SUB+= GNOME="" PLIST_SUB+= GNOME="@comment " .endif +.if defined(WITH_HELPBROWSER) +USE_GNOME+= libgtkhtml +CONFIGURE_ARGS+= --with-gtkhtml2 +PLIST_SUB+= HELPBROWSER="" +.else +CONFIGURE_ARGS+= --without-gtkhtml2 +PLIST_SUB+= HELPBROWSER="@comment " +.endif + .endif post-patch: diff --git a/graphics/gimp-app-devel/pkg-plist b/graphics/gimp-app-devel/pkg-plist index 86524569d23c..87df782d07ab 100644 --- a/graphics/gimp-app-devel/pkg-plist +++ b/graphics/gimp-app-devel/pkg-plist @@ -356,7 +356,7 @@ libexec/gimp/2.2/plug-ins/gtm libexec/gimp/2.2/plug-ins/guillotine libexec/gimp/2.2/plug-ins/header libexec/gimp/2.2/plug-ins/help -libexec/gimp/2.2/plug-ins/helpbrowser +%%HELPBROWSER%%libexec/gimp/2.2/plug-ins/helpbrowser libexec/gimp/2.2/plug-ins/hot libexec/gimp/2.2/plug-ins/ifscompose libexec/gimp/2.2/plug-ins/illusion -- cgit