Date: Wed, 13 Feb 2013 10:10:29 -0500 (EST) From: Lowell Gilbert <freebsd-bugs-local@be-well.ilk.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/176113: new port: gmtp Message-ID: <20130213151029.7BDD339843@lowell-desk.lan> Resent-Message-ID: <201302131520.r1DFK0xE076815@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 176113 >Category: ports >Synopsis: new port: gmtp >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 13 15:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Lowell Gilbert >Release: FreeBSD 9.1-STABLE amd64 >Organization: The Ilk >Environment: System: FreeBSD lowell-desk.lan 9.1-STABLE FreeBSD 9.1-STABLE #15 r246406M: Wed Feb 6 11:55:50 EST 2013 root@lowell-desk.lan:/usr/obj/usr/src/sys/LOWELL64 amd64 >Description: I have developed a port for gmtp, a small GUI for libmtp. This makes transfer to MTP (Microsoft's Music Transfer Protocol) devices more convenient. Many smartphones are starting to use MTP instead of umass for their storage, as it is much better about allowing the phone to continue to use the "disk" space while connected to the computer. There are several funny things about this port. The tarball uses Sourceforge, but with non-standard pathnames and a different capitalization for the extract directory than for the tarball. The makefile that comes with the port explicitly calls out gcc in the CC variable, but it works fine with clang, so I just removed that setting. That makefile also renames files after installing them; I left that behaviour unchanged. >How-To-Repeat: N/A >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gmtp # gmtp/Makefile # gmtp/distinfo # gmtp/pkg-descr # gmtp/pkg-plist # gmtp/files # gmtp/files/patch-Makefile # echo c - gmtp mkdir -p gmtp > /dev/null 2>&1 echo x - gmtp/Makefile sed 's/^X//' >gmtp/Makefile << 'bd2ee5cb3eb52ffc4ed574533dce1d2f' X# $FreeBSD: $ X XPORTNAME= gmtp XPORTVERSION= 1.3.4 XCATEGORIES= audio X### Sourceforge directory base is "projects" rather than standard "project" XMASTER_SITES=http://sourceforge.net/projects/${PORTNAME}/files/gMTP-${PORTVERSION}/ XDISTNAME= gMTP XDISTFILES= gmtp-${PORTVERSION}-i386.tar.gz X XMAINTAINER= freebsd-ports-local@be-well.ilk.org XCOMMENT= Media Transfer Protocol (MTP) gui program X XLICENSE= BSD X XWRKSRC=${WRKDIR}/gMTP X X### And Sourceforge doesn't work with -A XFETCH_ARGS= "-m" XCPPFLAGS+= -I${LOCALBASE}/include XLDFLAGS+= -L${LOCALBASE}/lib XUSE_GMAKE= yes XUSE_GETTEXT= yes XUSE_GNOME= gconf2 X X# First one implies usb dependency XLIB_DEPENDS+= mtp:${PORTSDIR}/audio/libmtp XLIB_DEPENDS+= id3tag:${PORTSDIR}/audio/libid3tag XLIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac XLIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis X X# CONFIGURE_ENV+= ac_cv_lib_openusb_openusb_init=no X# .else X# CONFIGURE_ENV+= LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb" LIBS="-lusb" X# .endif X X# post-patch: X# @${REINPLACE_CMD} -e \ X# '/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in X# @${REINPLACE_CMD} -e \ X# '/if test/s|==|=| ; \ X# /LIBUSB_REQUIRES/s|libusb-1.0|| ; \ X# /endian.h/s|machine|sys|' ${WRKSRC}/configure X# @${REINPLACE_CMD} -e \ X# 's|<libusb-1.0/|<|' ${WRKSRC}/src/libusb-glue.h X# @${REINPLACE_CMD} -e \ X# 's|__builtin_bswap|bswap|g' ${WRKSRC}/src/mtpz.c X X.include <bsd.port.mk> bd2ee5cb3eb52ffc4ed574533dce1d2f echo x - gmtp/distinfo sed 's/^X//' >gmtp/distinfo << '6ff8ffcbd03347085836f644ebf8d5c5' XSHA256 (gmtp-1.3.4-i386.tar.gz) = 9bf99c517bb40b8df288243e2b77aebb2c3d62b2baf98f9aa8675d6cf910be41 XSIZE (gmtp-1.3.4-i386.tar.gz) = 878661 6ff8ffcbd03347085836f644ebf8d5c5 echo x - gmtp/pkg-descr sed 's/^X//' >gmtp/pkg-descr << '2f18211829adcea2b614a2880ca31443' Xa basic GUI for Microsoft's Media Transfer Protocol (MTP) Xincluding file transer and some playlist handling X XWWW: http://gmtp.sourceforge.net/ 2f18211829adcea2b614a2880ca31443 echo x - gmtp/pkg-plist sed 's/^X//' >gmtp/pkg-plist << '332a1d9c0d4e750f06568f42b84f6b52' Xbin/gmtp Xshare/gmtp/icon.png Xshare/gmtp/logo.png Xshare/gmtp/icon-16.png Xshare/gmtp/stock-about-16.png Xshare/gmtp/audio-x-mp3-playlist.png Xshare/gmtp/audio-x-mpeg.png Xshare/gmtp/folder.png Xshare/gmtp/image-x-generic.png Xshare/gmtp/media-cdrom-audio.png Xshare/gmtp/text-plain.png Xshare/gmtp/video-x-generic.png Xshare/gmtp/empty.png Xshare/gmtp/view-refresh.png Xshare/applications/gMTP.desktop Xshare/pixmaps/gMTPicon.png Xshare/locale/es/LC_MESSAGES/gmtp.mo Xshare/locale/fr/LC_MESSAGES/gmtp.mo Xshare/locale/it/LC_MESSAGES/gmtp.mo Xshare/locale/da/LC_MESSAGES/gmtp.mo Xshare/locale/de/LC_MESSAGES/gmtp.mo Xshare/gconf/schemas/gmtp.schemas X@dirrm share/gmtp 332a1d9c0d4e750f06568f42b84f6b52 echo c - gmtp/files mkdir -p gmtp/files > /dev/null 2>&1 echo x - gmtp/files/patch-Makefile sed 's/^X//' >gmtp/files/patch-Makefile << '9e299b56b4153afc048d1f4cc5583166' X--- Makefile.ORIG 2012-08-06 07:24:43.000000000 -0400 X+++ Makefile 2013-02-11 16:18:45.000000000 -0500 X@@ -27,7 +27,6 @@ X LDFLAGS += -L/usr/sfw/lib -R/usr/sfw/lib X endif X else X-CC = gcc X CFLAGS += -std=c99 -Wall X INSTALL = install -c X MSGFMT = msgfmt 9e299b56b4153afc048d1f4cc5583166 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130213151029.7BDD339843>