aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gmtp
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-03-07 06:31:04 +0800
committermadpilot <madpilot@FreeBSD.org>2013-03-07 06:31:04 +0800
commit20b80990919de1d7b94d23a356c01ae2ed9ca61c (patch)
tree7b768a70f6612fc59518447dba3c8d2ca5af3833 /audio/gmtp
parent57f188c122d017c2975744841422831d8b3aa2e1 (diff)
downloadfreebsd-ports-gnome-20b80990919de1d7b94d23a356c01ae2ed9ca61c.tar.gz
freebsd-ports-gnome-20b80990919de1d7b94d23a356c01ae2ed9ca61c.tar.zst
freebsd-ports-gnome-20b80990919de1d7b94d23a356c01ae2ed9ca61c.zip
Basic GUI for Microsoft's Media Transfer Protocol (MTP)
including file transer and some playlist handling. WWW: http://gmtp.sourceforge.net/ PR: ports/176113 Submitted by: Lowell Gilbert <freebsd-bugs-local@be-well.ilk.org>
Diffstat (limited to 'audio/gmtp')
-rw-r--r--audio/gmtp/Makefile55
-rw-r--r--audio/gmtp/distinfo2
-rw-r--r--audio/gmtp/files/patch-Makefile70
-rw-r--r--audio/gmtp/pkg-descr4
-rw-r--r--audio/gmtp/pkg-plist23
5 files changed, 154 insertions, 0 deletions
diff --git a/audio/gmtp/Makefile b/audio/gmtp/Makefile
new file mode 100644
index 000000000000..a05c46b5f9c5
--- /dev/null
+++ b/audio/gmtp/Makefile
@@ -0,0 +1,55 @@
+# $FreeBSD$
+
+PORTNAME= gmtp
+PORTVERSION= 1.3.4
+CATEGORIES= audio
+MASTER_SITES= SF/${PORTNAME}/gMTP-${PORTVERSION}/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-i386
+
+MAINTAINER= freebsd-ports-local@be-well.ilk.org
+COMMENT= Media Transfer Protocol (MTP) GUI client
+
+LICENSE= BSD
+
+LIB_DEPENDS= mtp:${PORTSDIR}/audio/libmtp \
+ id3tag:${PORTSDIR}/audio/libid3tag \
+ FLAC:${PORTSDIR}/audio/flac \
+ vorbis:${PORTSDIR}/audio/libvorbis
+
+WRKSRC= ${WRKDIR}/gMTP
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+USE_GMAKE= yes
+USE_GETTEXT= yes
+USE_GNOME= glib20
+
+PORTDOCS= *
+
+OPTIONS_DEFINE= DOCS
+OPTIONS_RADIO= GTK
+OPTIONS_RADIO_GTK= GTK2 GTK3
+OPTIONS_DEFAULT= GTK2
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGTK2}
+USE_GNOME+= gtk20 gconf2
+GCONF_SCHEMAS= gmtp.schemas
+ALL_TARGET= gtk2
+INSTALL_TARGET= register-gconf-schemas
+.endif
+
+.if ${PORT_OPTIONS:MGTK3}
+USE_GNOME+= gtk30
+GLIB_SCHEMAS= org.gnome.gmtp.gschema.xml
+ALL_TARGET= gtk3
+INSTALL_TARGET= register-gsettings-schemas
+.endif
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ cd ${WRKSRC} && ${GMAKE} install-doc
+.endif
+
+.include <bsd.port.mk>
diff --git a/audio/gmtp/distinfo b/audio/gmtp/distinfo
new file mode 100644
index 000000000000..54b07293e4e9
--- /dev/null
+++ b/audio/gmtp/distinfo
@@ -0,0 +1,2 @@
+SHA256 (gmtp-1.3.4-i386.tar.gz) = 9bf99c517bb40b8df288243e2b77aebb2c3d62b2baf98f9aa8675d6cf910be41
+SIZE (gmtp-1.3.4-i386.tar.gz) = 878661
diff --git a/audio/gmtp/files/patch-Makefile b/audio/gmtp/files/patch-Makefile
new file mode 100644
index 000000000000..5d56cf3be1a9
--- /dev/null
+++ b/audio/gmtp/files/patch-Makefile
@@ -0,0 +1,70 @@
+--- Makefile.orig 2012-08-06 13:24:43.000000000 +0200
++++ Makefile 2013-02-16 17:52:04.062614859 +0100
+@@ -27,7 +27,7 @@
+ LDFLAGS += -L/usr/sfw/lib -R/usr/sfw/lib
+ endif
+ else
+-CC = gcc
++CC ?= gcc
+ CFLAGS += -std=c99 -Wall
+ INSTALL = install -c
+ MSGFMT = msgfmt
+@@ -126,8 +126,8 @@
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/applications
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/pixmaps
+- $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/gconf
+- $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/gconf/schemas
++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/etc/gconf
++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/etc/gconf/schemas
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/locale
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/locale/es
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/locale/it
+@@ -154,18 +154,16 @@
+ $(INSTALL) -m 644 images/empty.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 images/view-refresh.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 misc/gMTP.desktop $(DESTDIR)$(PREFIX)/share/applications
+- $(INSTALL) -m 644 images/icon.png $(DESTDIR)$(PREFIX)/share/pixmaps
+- $(INSTALL) -m 644 misc/gMTP.schemas $(DESTDIR)$(PREFIX)/share/gconf/schemas
+- mv $(DESTDIR)$(PREFIX)/share/pixmaps/icon.png $(DESTDIR)$(PREFIX)/share/pixmaps/gMTPicon.png
++ $(INSTALL) -m 644 images/icon.png $(DESTDIR)$(PREFIX)/share/pixmaps/gMTPicon.png
++ $(INSTALL) -m 644 misc/gMTP.schemas $(DESTDIR)$(PREFIX)/etc/gconf/schemas/gmtp.schemas
+ cp po/es.mo $(DESTDIR)$(PREFIX)/share/locale/es/LC_MESSAGES/gmtp.mo
+ cp po/fr.mo $(DESTDIR)$(PREFIX)/share/locale/fr/LC_MESSAGES/gmtp.mo
+ cp po/it.mo $(DESTDIR)$(PREFIX)/share/locale/it/LC_MESSAGES/gmtp.mo
+ cp po/da.mo $(DESTDIR)$(PREFIX)/share/locale/da/LC_MESSAGES/gmtp.mo
+ cp po/de.mo $(DESTDIR)$(PREFIX)/share/locale/de/LC_MESSAGES/gmtp.mo
+- mv $(DESTDIR)$(PREFIX)/share/gconf/schemas/gMTP.schemas $(DESTDIR)$(PREFIX)/share/gconf/schemas/gmtp.schemas
+
+ register-gconf-schemas: install
+- GCONF_CONFIG_SOURCE=`$(GCONFTOOL) --get-default-source` $(GCONFTOOL) --makefile-install-rule $(DESTDIR)$(PREFIX)/share/gconf/schemas/gmtp.schemas
++ GCONF_CONFIG_SOURCE=`$(GCONFTOOL) --get-default-source` $(GCONFTOOL) --makefile-install-rule $(DESTDIR)$(PREFIX)/etc/gconf/schemas/gmtp.schemas
+
+ install-gtk3: gmtp $(catalogues)
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)
+@@ -193,7 +191,7 @@
+ $(INSTALL) -m 644 images/logo.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 images/stock-about-16.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 misc/gMTP.desktop $(DESTDIR)$(PREFIX)/share/applications
+- $(INSTALL) -m 644 images/icon.png $(DESTDIR)$(PREFIX)/share/pixmaps
++ $(INSTALL) -m 644 images/icon.png $(DESTDIR)$(PREFIX)/share/pixmaps/gMTPicon.png
+ $(INSTALL) -m 644 images/audio-x-mp3-playlist.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 images/audio-x-mpeg.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 images/folder.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+@@ -203,7 +201,6 @@
+ $(INSTALL) -m 644 images/video-x-generic.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 images/empty.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+ $(INSTALL) -m 644 images/view-refresh.png $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)
+- mv $(DESTDIR)$(PREFIX)/share/pixmaps/icon.png $(DESTDIR)$(PREFIX)/share/pixmaps/gMTPicon.png
+ cp po/es.mo $(DESTDIR)$(PREFIX)/share/locale/es/LC_MESSAGES/gmtp.mo
+ cp po/fr.mo $(DESTDIR)$(PREFIX)/share/locale/fr/LC_MESSAGES/gmtp.mo
+ cp po/it.mo $(DESTDIR)$(PREFIX)/share/locale/it/LC_MESSAGES/gmtp.mo
+@@ -227,7 +224,7 @@
+ rm -f $(DESTDIR)$(PREFIX)/share/$(PKG_NAME)/*
+ rm -f $(DESTDIR)$(PREFIX)/share/applications/gMTP.desktop
+ rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/gMTPicon.png
+- rm -f $(DESTDIR)$(PREFIX)/share/gconf/schemas/gmtp.schemas
++ rm -f $(DESTDIR)$(PREFIX)/share/etc/schemas/gmtp.schemas
+ rm -f $(DESTDIR)$(PREFIX)/share/glib-2.0/schemas/org.gnome.gMTP.gschema.xml
+ rm -f $(DESTDIR)$(PREFIX)/share/locale/es/LC_MESSAGES/gmtp.mo
+ rm -f $(DESTDIR)$(PREFIX)/share/locale/fr/LC_MESSAGES/gmtp.mo
diff --git a/audio/gmtp/pkg-descr b/audio/gmtp/pkg-descr
new file mode 100644
index 000000000000..e1ef1574675f
--- /dev/null
+++ b/audio/gmtp/pkg-descr
@@ -0,0 +1,4 @@
+Basic GUI for Microsoft's Media Transfer Protocol (MTP)
+including file transer and some playlist handling.
+
+WWW: http://gmtp.sourceforge.net/
diff --git a/audio/gmtp/pkg-plist b/audio/gmtp/pkg-plist
new file mode 100644
index 000000000000..e5f913f466f7
--- /dev/null
+++ b/audio/gmtp/pkg-plist
@@ -0,0 +1,23 @@
+bin/gmtp
+%%DATADIR%%/audio-x-mp3-playlist.png
+%%DATADIR%%/audio-x-mpeg.png
+%%DATADIR%%/empty.png
+%%DATADIR%%/folder.png
+%%DATADIR%%/icon-16.png
+%%DATADIR%%/icon.png
+%%DATADIR%%/image-x-generic.png
+%%DATADIR%%/logo.png
+%%DATADIR%%/media-cdrom-audio.png
+%%DATADIR%%/stock-about-16.png
+%%DATADIR%%/text-plain.png
+%%DATADIR%%/video-x-generic.png
+%%DATADIR%%/view-refresh.png
+share/applications/gMTP.desktop
+share/locale/da/LC_MESSAGES/gmtp.mo
+share/locale/de/LC_MESSAGES/gmtp.mo
+share/locale/es/LC_MESSAGES/gmtp.mo
+share/locale/fr/LC_MESSAGES/gmtp.mo
+share/locale/it/LC_MESSAGES/gmtp.mo
+share/pixmaps/gMTPicon.png
+@dirrmtry share/applications
+@dirrm share/gmtp