1 # Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
3 # $MCom: ports/trunk/graphics/gthumb/Makefile 19823 2014-08-20 09:28:14Z gusi $
12 MAINTAINER= ports@FreeBSD.org
13 COMMENT= Image viewer and browser for the GNOME 3 environment
17 BUILD_DEPENDS= gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas \
18 itstool:textproc/itstool
19 RUN_DEPENDS= gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas
21 USES= bison compiler:c++11-lib desktop-file-utils gettext gmake \
22 libtool pathfix pkgconfig tar:xz
23 USE_GNOME= gtk30 intltool librsvg2
25 CONFIGURE_ENV= ac_cv_lib_jpeg_jpeg_destroy_decompress=yes \
26 ac_cv_lib_tiff_TIFFWriteScanline=yes
27 CONFIGURE_ARGS= --disable-silent-rules \
28 --disable-libchamplain \
29 --enable-compile-warnings=minimum \
31 INSTALL_TARGET= install-strip
35 CPPFLAGS+= -I${LOCALBASE}/include
36 LDFLAGS+= -L${LOCALBASE}/lib
38 PLIST_SUB= GTHUMB_VER="3.4"
40 GLIB_SCHEMAS= org.gnome.gthumb.change-date.gschema.xml \
41 org.gnome.gthumb.comments.gschema.xml \
42 org.gnome.gthumb.contact-sheet.gschema.xml \
43 org.gnome.gthumb.convert-format.gschema.xml \
44 org.gnome.gthumb.crop.gschema.xml \
45 org.gnome.gthumb.enums.xml \
46 org.gnome.gthumb.facebook.gschema.xml \
47 org.gnome.gthumb.file-manager.gschema.xml \
48 org.gnome.gthumb.flickr.gschema.xml \
49 org.gnome.gthumb.gschema.xml \
50 org.gnome.gthumb.gstreamer-tools.gschema.xml \
51 org.gnome.gthumb.image-print.gschema.xml \
52 org.gnome.gthumb.image-viewer.gschema.xml \
53 org.gnome.gthumb.importer.gschema.xml \
54 org.gnome.gthumb.photo-importer.gschema.xml \
55 org.gnome.gthumb.picasaweb.gschema.xml \
56 org.gnome.gthumb.pixbuf-savers.gschema.xml \
57 org.gnome.gthumb.rename-series.gschema.xml \
58 org.gnome.gthumb.resize-images.gschema.xml \
59 org.gnome.gthumb.resize.gschema.xml \
60 org.gnome.gthumb.rotate.gschema.xml \
61 org.gnome.gthumb.slideshow.gschema.xml \
62 org.gnome.gthumb.webalbums.gschema.xml
64 OPTIONS_DEFINE= BRASERO CLUTTER EXIV2 GSTREAMER RAW SECRET \
66 OPTIONS_DEFAULT= BRASERO CLUTTER EXIV2 GSTREAMER RAW SECRET \
70 BRASERO_DESC= Write galleries to CD/DVD (large dependency)
71 BRASERO_LIB_DEPENDS= libbrasero-media3.so:sysutils/brasero
72 BRASERO_CONFIGURE_ENABLE= libbrasero
73 CLUTTER_DESC= Fancy slideshows
74 CLUTTER_LIB_DEPENDS= libclutter-gtk-1.0.so:graphics/clutter-gtk3
75 CLUTTER_CONFIGURE_ENABLE= clutter
76 EXIV2_LIB_DEPENDS= libexiv2.so:graphics/exiv2
77 EXIV2_CONFIGURE_ENABLE= exiv2
78 GSTREAMER_USE= gstreamer1=yes
79 GSTREAMER_CONFIGURE_ENABLE= gstreamer
80 RAW_DESC= Raw image support via libraw
81 RAW_LIB_DEPENDS= libraw.so:graphics/libraw
82 RAW_CONFIGURE_ENABLE= libraw
83 SECRET_DESC= Libsecret support for storing passwords
84 SECRET_LIB_DEPENDS= libsecret-1.so:security/libsecret
85 SECRET_CONFIGURE_ENABLE= libsecret
86 WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
87 WEBP_CONFIGURE_ENABLE= libwebp
88 WEBSERVICES_DESC= Web services
89 WEBSERVICES_LIB_DEPENDS=\
90 libjson-glib-1.0.so:devel/json-glib \
91 libsoup-gnome-2.4.so:devel/libsoup-gnome \
92 libwebkit2gtk-4.0.so:www/webkit2-gtk3
93 WEBSERVICES_CONFIGURE_ENABLE= libjson-glib libsoup webkit2
94 YELP_DESC= Viewer for built-in help system
95 YELP_RUN_DEPENDS= yelp:x11/yelp
98 @${REINPLACE_CMD} -e \
99 's|-Wl,--as-needed|| ; \
100 /^[[:blank:]]zlib/d' ${WRKSRC}/configure
102 .include <bsd.port.mk>