aboutsummaryrefslogtreecommitdiff
path: root/graphics/gtkam
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-01-17 16:56:53 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-01-17 16:56:53 +0000
commit5035f7a270776137932b7a3de582f58ca5c00330 (patch)
treec76b4bfabcd0b3b1e614372e7615ab028395460f /graphics/gtkam
parent8d5f87c53766e3000c2447524afd4f0450e64160 (diff)
downloadports-5035f7a270776137932b7a3de582f58ca5c00330.tar.gz
ports-5035f7a270776137932b7a3de582f58ca5c00330.zip
Notes
Diffstat (limited to 'graphics/gtkam')
-rw-r--r--graphics/gtkam/Makefile69
-rw-r--r--graphics/gtkam/distinfo4
-rw-r--r--graphics/gtkam/files/patch-Makefile.in23
-rw-r--r--graphics/gtkam/pkg-plist61
4 files changed, 65 insertions, 92 deletions
diff --git a/graphics/gtkam/Makefile b/graphics/gtkam/Makefile
index 3da3491cec14..b2a131e0d33f 100644
--- a/graphics/gtkam/Makefile
+++ b/graphics/gtkam/Makefile
@@ -2,77 +2,48 @@
# $FreeBSD$
PORTNAME= gtkam
-PORTVERSION= 0.1.18
-PORTREVISION= 3
+PORTVERSION= 0.2.0
CATEGORIES= graphics
MASTER_SITES= SF/gphoto/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Download and view files from various digital cameras
-LIB_DEPENDS= exif-gtk:${PORTSDIR}/graphics/libexif-gtk \
- gphoto2.2:${PORTSDIR}/graphics/libgphoto2
+LICENSE= GPLv2 # (or later)
-WANT_GNOME= yes
-USES= pathfix pkgconfig
+LIB_DEPENDS= libexif-gtk.so:${PORTSDIR}/graphics/libexif-gtk \
+ libgphoto2.so:${PORTSDIR}/graphics/libgphoto2
+
+USES= gmake pathfix pkgconfig
USE_GNOME= gnomehier gtk20
-USE_GMAKE= yes
GNU_CONFIGURE= yes
+
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-MAN1= gtkam.1
+OPTIONS_DEFINE= DOCS GIMP GNOME
+OPTIONS_SUB= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+GIMP_DESC= GIMP plugin support
+GIMP_LIB_DEPENDS= libgimp-2.0.so:${PORTSDIR}/graphics/gimp
+GIMP_CONFIGURE_WITH= gimp
-.if exists(${LOCALBASE}/lib/libgimp-2.0.so) && !defined(WITHOUT_GIMP)
-WITH_GIMP= yes
-.endif
+GNOME_USE= GNOME=gnomeprefix,libgnomeui
+GNOME_CONFIGURE_OFF= --without-bonobo --without-gnome
+GNOME_MAKE_ENV= GNOME_SUBDIRS="help omf-install"
-.if defined(WITH_GIMP)
-LIB_DEPENDS+= gimp-2.0:${PORTSDIR}/graphics/gimp
-PLIST_SUB+= GIMP=""
-.else
-CONFIGURE_ARGS+= --without-gimp
-PLIST_SUB+= GIMP="@comment "
-.endif
+.include <bsd.port.options.mk>
-.if ${HAVE_GNOME:Mlibgnomeui}!=""
-PKGNAMESUFFIX= -gnome
-USE_GNOME+= gnomeprefix libgnomeui
+.if ${PORT_OPTIONS:MGNOME}
INSTALLS_OMF= yes
-MAKE_ENV+= GNOME_SUBDIRS="help omf-install"
-.else
-CONFIGURE_ARGS+= --without-bonobo --without-gnome
-MAKE_ENV+= GNOME_SUBDIRS=""
-.endif
-
-pre-everything::
-.if !defined(WITH_GIMP)
- @${ECHO_MSG}
- @${ECHO_MSG} "If you want to compile with plugin for The GIMP,"
- @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_GIMP=yes\""
- @${ECHO_MSG}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|GIMP_VERSION="2.0"|GIMP_VERSION="2.2"|g ; \
- s|images/gtkam|gtkam/images|g' ${WRKSRC}/configure
+ s|images/gtkam|gtkam/images|g ; \
+ s|FLAGS -g|FLAGS|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|images/gtkam|gtkam/images|g ; \
s|$$(libdir)/gimp/|$$(libexecdir)/gimp/|g'
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/gtkam.desktop \
- ${PREFIX}/share/applications
- ${INSTALL_DATA} ${WRKSRC}/gtkam.png \
- ${PREFIX}/share/pixmaps
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in AUTHORS NEWS README
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/gtkam/distinfo b/graphics/gtkam/distinfo
index 3421a97e2b88..89821efdfde4 100644
--- a/graphics/gtkam/distinfo
+++ b/graphics/gtkam/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gtkam-0.1.18.tar.gz) = 5221649c52ace24f28278b1a4dad7b4d3730a9a4e8dbcafe964a583e9e176ef5
-SIZE (gtkam-0.1.18.tar.gz) = 1443404
+SHA256 (gtkam-0.2.0.tar.gz) = ff5128d3988e37cca59853647fcab12be21d7b2de79aaad0b7c71cb0594053fd
+SIZE (gtkam-0.2.0.tar.gz) = 1443593
diff --git a/graphics/gtkam/files/patch-Makefile.in b/graphics/gtkam/files/patch-Makefile.in
index e85481d76fc2..89ba6635e0dc 100644
--- a/graphics/gtkam/files/patch-Makefile.in
+++ b/graphics/gtkam/files/patch-Makefile.in
@@ -1,7 +1,7 @@
--- Makefile.in.orig 2008-04-23 22:55:02.000000000 +0200
+++ Makefile.in 2008-04-23 22:56:37.000000000 +0200
-@@ -253,7 +253,7 @@
- target_alias = @target_alias@
+@@ -333,7 +333,7 @@
+ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-SUBDIRS = m4m art doc help omf-install packaging pixmaps po src test
@@ -9,13 +9,12 @@
ACLOCAL_AMFLAGS = -I m4m
# disable scrollkeeper for distcheck
-@@ -714,8 +714,7 @@
-
- info-am:
-
--install-data-am: install-ApplicationsDATA install-gtkamdocDATA \
-- install-iconDATA
-+install-data-am:
-
- install-dvi: install-dvi-recursive
-
+@@ -342,7 +342,7 @@
+ ########################################################################
+ # Install a few support and doc files
+ gtkamdocdir = $(datadir)/doc/gtkam
+-gtkamdoc_DATA = AUTHORS COPYING NEWS README TODO CHANGES
++gtkamdoc_DATA = AUTHORS NEWS README TODO CHANGES
+ icondir = $(datadir)/pixmaps
+ icon_DATA = gtkam.png
+ DESKTOP_IN_FILES = gtkam.desktop.in
diff --git a/graphics/gtkam/pkg-plist b/graphics/gtkam/pkg-plist
index ef9e825be6af..0cc681bf06ca 100644
--- a/graphics/gtkam/pkg-plist
+++ b/graphics/gtkam/pkg-plist
@@ -1,30 +1,30 @@
bin/gtkam
%%GIMP%%libexec/gimp/2.2/plug-ins/gtkam-gimp
+man/man1/gtkam.1.gz
+share/applications/gtkam.desktop
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
-share/applications/gtkam.desktop
-%%GNOME:%%share/gnome/help/gtkam/C/figures/gtkam_add_camera_enhanced_window.png
-%%GNOME:%%share/gnome/help/gtkam/C/figures/gtkam_add_camera_window.png
-%%GNOME:%%share/gnome/help/gtkam/C/figures/gtkam_fileinfo.png
-%%GNOME:%%share/gnome/help/gtkam/C/figures/gtkam_makedir.png
-%%GNOME:%%share/gnome/help/gtkam/C/figures/gtkam_save.png
-%%GNOME:%%share/gnome/help/gtkam/C/figures/gtkam_save_all.png
-%%GNOME:%%share/gnome/help/gtkam/C/figures/gtkam_start_window.png
-%%GNOME:%%share/gnome/help/gtkam/C/gtkam.xml
-%%GNOME:%%share/gnome/help/gtkam/C/legal.xml
-%%GNOME:%%share/gnome/help/gtkam/ru/figures/gtkam_add_camera_enhanced_window.png
-%%GNOME:%%share/gnome/help/gtkam/ru/figures/gtkam_add_camera_window.png
-%%GNOME:%%share/gnome/help/gtkam/ru/figures/gtkam_fileinfo.png
-%%GNOME:%%share/gnome/help/gtkam/ru/figures/gtkam_makedir.png
-%%GNOME:%%share/gnome/help/gtkam/ru/figures/gtkam_save.png
-%%GNOME:%%share/gnome/help/gtkam/ru/figures/gtkam_save_all.png
-%%GNOME:%%share/gnome/help/gtkam/ru/figures/gtkam_start_window.png
-%%GNOME:%%share/gnome/help/gtkam/ru/gtkam.xml
-%%GNOME:%%share/gnome/help/gtkam/ru/legal.xml
-%%GNOME:%%share/omf/gtkam/gtkam-C.omf
-%%GNOME:%%share/omf/gtkam/gtkam-ru.omf
-share/pixmaps/gtkam.png
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%GNOME%%share/gnome/help/gtkam/C/figures/gtkam_add_camera_enhanced_window.png
+%%GNOME%%share/gnome/help/gtkam/C/figures/gtkam_add_camera_window.png
+%%GNOME%%share/gnome/help/gtkam/C/figures/gtkam_fileinfo.png
+%%GNOME%%share/gnome/help/gtkam/C/figures/gtkam_makedir.png
+%%GNOME%%share/gnome/help/gtkam/C/figures/gtkam_save.png
+%%GNOME%%share/gnome/help/gtkam/C/figures/gtkam_save_all.png
+%%GNOME%%share/gnome/help/gtkam/C/figures/gtkam_start_window.png
+%%GNOME%%share/gnome/help/gtkam/C/gtkam.xml
+%%GNOME%%share/gnome/help/gtkam/C/legal.xml
+%%GNOME%%share/gnome/help/gtkam/ru/figures/gtkam_add_camera_enhanced_window.png
+%%GNOME%%share/gnome/help/gtkam/ru/figures/gtkam_add_camera_window.png
+%%GNOME%%share/gnome/help/gtkam/ru/figures/gtkam_fileinfo.png
+%%GNOME%%share/gnome/help/gtkam/ru/figures/gtkam_makedir.png
+%%GNOME%%share/gnome/help/gtkam/ru/figures/gtkam_save.png
+%%GNOME%%share/gnome/help/gtkam/ru/figures/gtkam_save_all.png
+%%GNOME%%share/gnome/help/gtkam/ru/figures/gtkam_start_window.png
+%%GNOME%%share/gnome/help/gtkam/ru/gtkam.xml
+%%GNOME%%share/gnome/help/gtkam/ru/legal.xml
%%DATADIR%%/images/gtkam-audio.png
%%DATADIR%%/images/gtkam-camera.png
%%DATADIR%%/images/gtkam-folder-camera.png
@@ -59,17 +59,20 @@ share/locale/ru/LC_MESSAGES/gtkam.mo
share/locale/sk/LC_MESSAGES/gtkam.mo
share/locale/sl/LC_MESSAGES/gtkam.mo
share/locale/sv/LC_MESSAGES/gtkam.mo
-share/locale/vi/LC_MESSAGES/gtkam.mo
share/locale/uk/LC_MESSAGES/gtkam.mo
+share/locale/vi/LC_MESSAGES/gtkam.mo
share/locale/zh_CN/LC_MESSAGES/gtkam.mo
+%%GNOME%%share/omf/gtkam/gtkam-C.omf
+%%GNOME%%share/omf/gtkam/gtkam-ru.omf
+share/pixmaps/gtkam.png
share/pixmaps/gtkam-camera.png
@dirrm %%DATADIR%%/pixmaps
@dirrm %%DATADIR%%/images
@dirrm %%DATADIR%%
-%%GNOME:%%@dirrm share/omf/gtkam
-%%GNOME:%%@dirrm share/gnome/help/gtkam/ru/figures
-%%GNOME:%%@dirrm share/gnome/help/gtkam/ru
-%%GNOME:%%@dirrm share/gnome/help/gtkam/C/figures
-%%GNOME:%%@dirrm share/gnome/help/gtkam/C
-%%GNOME:%%@dirrm share/gnome/help/gtkam
+%%GNOME%%@dirrm share/omf/gtkam
+%%GNOME%%@dirrm share/gnome/help/gtkam/ru/figures
+%%GNOME%%@dirrm share/gnome/help/gtkam/ru
+%%GNOME%%@dirrm share/gnome/help/gtkam/C/figures
+%%GNOME%%@dirrm share/gnome/help/gtkam/C
+%%GNOME%%@dirrm share/gnome/help/gtkam
%%PORTDOCS%%@dirrm %%DOCSDIR%%