Index: head/graphics/gimp-beautify-plugin/Makefile =================================================================== --- head/graphics/gimp-beautify-plugin/Makefile (revision 501004) +++ head/graphics/gimp-beautify-plugin/Makefile (revision 501005) @@ -1,56 +1,56 @@ # Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= beautify PORTVERSION= 2012.08.12.00 PORTREVISION= 8 CATEGORIES= graphics PKGNAMEPREFIX= gimp- PKGNAMESUFFIX= -plugin MAINTAINER= ports@FreeBSD.org COMMENT= GIMP plug-ins to both quickly and easily beautify photo LICENSE= GPLv3+ BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:x11-fonts/fontconfig \ ${LOCALBASE}/libdata/pkgconfig/freetype2.pc:print/freetype2 \ ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:x11-fonts/fontconfig \ ${LOCALBASE}/libdata/pkgconfig/freetype2.pc:print/freetype2 \ ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app USE_GITHUB= yes GH_ACCOUNT= hejiann GH_TAGNAME= e209c8d -USES= gettext gmake pkgconfig +USES= gettext gmake gnome pkgconfig USE_GCC= yes USE_GNOME= atk cairo gdkpixbuf2 gtk20 USE_XORG= x11 xcomposite xcursor xdamage xext xfixes xi xinerama xrandr xrender TMPDIR= ${WRKDIR} PLUGIN_DIR?= libexec/gimp/2.2/plug-ins PLUGINS= beautify \ border \ simple-border \ skin-whitening # installed files .for plugin in ${PLUGINS} PLIST_FILES+= ${PLUGIN_DIR}/${plugin} .endfor post-patch: @${REINPLACE_CMD} \ -e 's|gimptool-2.0|${LOCALBASE}/bin/gimptool-2.0|' \ -e 's|gdk-pixbuf-csource|${LOCALBASE}/bin/gdk-pixbuf-csource|' \ ${WRKSRC}/Makefile do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .for plugin in ${PLUGINS} ${INSTALL_PROGRAM} ${WRKSRC}/${plugin} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .endfor .include Index: head/graphics/gimp-beautify-plugin/files/patch-Makefile =================================================================== --- head/graphics/gimp-beautify-plugin/files/patch-Makefile (revision 501004) +++ head/graphics/gimp-beautify-plugin/files/patch-Makefile (revision 501005) @@ -1,10 +1,59 @@ --- Makefile.orig 2012-08-12 09:23:45 UTC +++ Makefile -@@ -13,7 +13,6 @@ +@@ -13,17 +13,16 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -CC = gcc - GIMPTOOL = gimptool-2.0 +-GIMPTOOL = gimptool-2.0 ++GIMPTOOL = /usr/local/bin/gimptool-2.0 + GIMP_LIBS = `$(GIMPTOOL) --libs` + GIMP_CFLAGS = `$(GIMPTOOL) --cflags` + + LIBS = $(GIMP_LIBS) -lm +-CFLAGS = $(GIMP_CFLAGS) ++CFLAGS += $(GIMP_CFLAGS) + +-GDK_PIXBUF_CSOURCE = gdk-pixbuf-csource ++GDK_PIXBUF_CSOURCE = /usr/local/bin/gdk-pixbuf-csource + + all: beautify skin-whitening simple-border border + +@@ -71,7 +70,7 @@ useruninstall: + $(GIMPTOOL) --uninstall-bin texture-border + + beautify: beautify.o beautify-effect.o +- $(CC) -o $@ $^ $(LIBS) ++ $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) + + beautify.o: beautify.c + $(CC) $(CFLAGS) -c beautify.c -o beautify.o +@@ -83,7 +82,7 @@ beautify-textures.h: beautify-textures.list + $(GDK_PIXBUF_CSOURCE) --raw --build-list `cat beautify-textures.list` > $(@F) + + skin-whitening: skin-whitening.o skin-whitening-effect.o +- $(CC) -o $@ $^ $(LIBS) ++ $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) + + skin-whitening.o: skin-whitening.c skin-whitening-images.h + $(CC) $(CFLAGS) -c skin-whitening.c -o skin-whitening.o +@@ -95,7 +94,7 @@ skin-whitening-effect.o: skin-whitening-effect.c skin- + $(CC) $(CFLAGS) -c skin-whitening-effect.c -o skin-whitening-effect.o + + simple-border: simple-border.o +- $(CC) -o $@ $^ $(LIBS) ++ $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) + + simple-border.o: simple-border.c simple-border-textures.h + $(CC) $(CFLAGS) -c simple-border.c -o simple-border.o +@@ -104,7 +103,7 @@ simple-border-textures.h: simple-border-textures.list + $(GDK_PIXBUF_CSOURCE) --raw --build-list `cat simple-border-textures.list` > $(@F) + + border: border.o +- $(CC) -o $@ $^ $(LIBS) ++ $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) + + border.o: border.c border-textures.h + $(CC) $(CFLAGS) -c border.c -o border.o