summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-26 10:44:18 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-26 10:44:18 +0800
commit0c7ae97a77656189443ea202cfe9cf374f52fc63 (patch)
tree18ce539647c9150e756a9dc1948dd99b4559784f
parent00b3b484e247f091b1edd2fca2120497ef91c7ae (diff)
downloadmarcuscom-ports-0c7ae97a77656189443ea202cfe9cf374f52fc63.tar.gz
marcuscom-ports-0c7ae97a77656189443ea202cfe9cf374f52fc63.tar.zst
marcuscom-ports-0c7ae97a77656189443ea202cfe9cf374f52fc63.zip
-USE_X_PREFIX -> USE_XLIB.
-X11BASE -> LOCALBASE, gimp lives in LOCALBASE. -Bump the PORTREVISION. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6821 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--graphics/gtkam/Makefile82
-rw-r--r--graphics/gtkam/distinfo3
-rw-r--r--graphics/gtkam/files/patch-Makefile.in21
-rw-r--r--graphics/gtkam/pkg-descr9
-rw-r--r--graphics/gtkam/pkg-plist65
5 files changed, 180 insertions, 0 deletions
diff --git a/graphics/gtkam/Makefile b/graphics/gtkam/Makefile
new file mode 100644
index 000000000..7558613d4
--- /dev/null
+++ b/graphics/gtkam/Makefile
@@ -0,0 +1,82 @@
+# New ports collection makefile for: gtkam
+# Date created: 10 June 2002
+# Whom: ports@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtkam
+PORTVERSION= 0.1.13
+PORTREVISION= 2
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= gphoto
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Download and view files from various digital cameras
+
+LIB_DEPENDS= exif-gtk.5:${PORTSDIR}/graphics/libexif-gtk \
+ gphoto2.2:${PORTSDIR}/graphics/libgphoto2
+
+USE_XLIB= yes
+WANT_GNOME= yes
+USE_GNOME= gnomehack gnomehier gnometarget gtk20
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= gtkam.1
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libgimp-2.0.so) && !defined(WITHOUT_GIMP)
+WITH_GIMP= yes
+.endif
+
+.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
+
+.if ${HAVE_GNOME:Mlibgnomeui}!=""
+PKGNAMESUFFIX= -gnome
+USE_GNOME+= gnomeprefix libgnomeui
+INSTALLS_OMF= yes
+MAKE_ENV+= GNOME_SUBDIRS="help omf-install"
+DATADIR= ${PREFIX}/share/gnome/${PORTNAME}
+.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
+ @${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/gnome/applications
+ ${INSTALL_DATA} ${WRKSRC}/gtkam.png \
+ ${PREFIX}/share/gnome/pixmaps
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in AUTHORS NEWS README
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/gtkam/distinfo b/graphics/gtkam/distinfo
new file mode 100644
index 000000000..1b10f99cc
--- /dev/null
+++ b/graphics/gtkam/distinfo
@@ -0,0 +1,3 @@
+MD5 (gtkam-0.1.13.tar.gz) = 439449a29dd841c6c44e309d5bd049a3
+SHA256 (gtkam-0.1.13.tar.gz) = 767920d18ac0aae60cb57171defe6ecbae76b1a6d1243da94c7cd7d3e06eb409
+SIZE (gtkam-0.1.13.tar.gz) = 971304
diff --git a/graphics/gtkam/files/patch-Makefile.in b/graphics/gtkam/files/patch-Makefile.in
new file mode 100644
index 000000000..e1e572f78
--- /dev/null
+++ b/graphics/gtkam/files/patch-Makefile.in
@@ -0,0 +1,21 @@
+--- Makefile.in.orig Sat Dec 31 08:25:57 2005
++++ Makefile.in Fri Jan 6 20:18:02 2006
+@@ -251,7 +251,7 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+-SUBDIRS = m4m art doc help omf-install packaging pixmaps po src test
++SUBDIRS = m4m art doc $(GNOME_SUBDIRS) packaging pixmaps po src test
+ ACLOCAL_AMFLAGS = -I m4m
+
+ ########################################################################
+@@ -705,8 +705,7 @@
+
+ info-am:
+
+-install-data-am: install-desktopDATA install-gtkamdocDATA \
+- install-iconDATA
++install-data-am:
+
+ install-exec-am:
+
diff --git a/graphics/gtkam/pkg-descr b/graphics/gtkam/pkg-descr
new file mode 100644
index 000000000..191bee497
--- /dev/null
+++ b/graphics/gtkam/pkg-descr
@@ -0,0 +1,9 @@
+gtkam is an universal, free GTK+ application that will allow
+downloading, saving, and manipulation of images from several
+different digital camera models, or from the local harddrive.
+
+gtkam supports a wide array of digital camera models.
+Visit http://www.gphoto.org/proj/libgphoto2/support.php for
+an updated list.
+
+WWW: http://www.gphoto.org/proj/gtkam/
diff --git a/graphics/gtkam/pkg-plist b/graphics/gtkam/pkg-plist
new file mode 100644
index 000000000..65e033494
--- /dev/null
+++ b/graphics/gtkam/pkg-plist
@@ -0,0 +1,65 @@
+bin/gtkam
+%%GIMP%%libexec/gimp/2.2/plug-ins/gtkam-gimp
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+share/gnome/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/gnome/omf/gtkam/gtkam-C.omf
+%%GNOME:%%share/gnome/omf/gtkam/gtkam-ru.omf
+share/gnome/pixmaps/gtkam.png
+%%DATADIR%%/images/gtkam-audio.png
+%%DATADIR%%/images/gtkam-camera.png
+%%DATADIR%%/images/gtkam-folder-camera.png
+%%DATADIR%%/images/gtkam-folder.png
+%%DATADIR%%/images/gtkam-lock.png
+%%DATADIR%%/images/gtkam-new.png
+%%DATADIR%%/pixmaps/camera.xpm
+%%DATADIR%%/pixmaps/configure.xpm
+%%DATADIR%%/pixmaps/delete_images.xpm
+%%DATADIR%%/pixmaps/exit.xpm
+%%DATADIR%%/pixmaps/folder.xpm
+%%DATADIR%%/pixmaps/save_current_image.xpm
+share/locale/cs/LC_MESSAGES/gtkam.mo
+share/locale/da/LC_MESSAGES/gtkam.mo
+share/locale/de/LC_MESSAGES/gtkam.mo
+share/locale/es/LC_MESSAGES/gtkam.mo
+share/locale/fr/LC_MESSAGES/gtkam.mo
+share/locale/hu/LC_MESSAGES/gtkam.mo
+share/locale/it/LC_MESSAGES/gtkam.mo
+share/locale/ja/LC_MESSAGES/gtkam.mo
+share/locale/nb/LC_MESSAGES/gtkam.mo
+share/locale/pl/LC_MESSAGES/gtkam.mo
+share/locale/pt_BR/LC_MESSAGES/gtkam.mo
+share/locale/pt_PT/LC_MESSAGES/gtkam.mo
+share/locale/ru/LC_MESSAGES/gtkam.mo
+share/locale/sl/LC_MESSAGES/gtkam.mo
+share/locale/sv/LC_MESSAGES/gtkam.mo
+share/locale/uk/LC_MESSAGES/gtkam.mo
+@dirrm %%DATADIR%%/pixmaps
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%
+%%GNOME:%%@dirrm share/gnome/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%%