diff options
author | wiz <wiz> | 2008-09-06 23:24:08 +0000 |
---|---|---|
committer | wiz <wiz> | 2008-09-06 23:24:08 +0000 |
commit | 7d1c91ea270c6236325f606b6ddade7a006763bb (patch) | |
tree | d53b3719b909ee00aa334dd4de14fc6922b67f28 /devel | |
parent | 02670c19a128aff7e328b1a13f7e4c71579560f7 (diff) | |
download | pkgsrc-7d1c91ea270c6236325f606b6ddade7a006763bb.tar.gz |
Initial import of libmtp-0.3.1, based on pkgsrc-wip package originally
by neimal, with work by netcap, hoka_adam, bsadewitz and me.
libmtp is an implementation of Microsoft's Media Transfer Protocol
(MTP) in the form of a library suitable primarily for POSIX compliant
operating systems. We implement MTP Basic, the stuff proposed for
standardization.
It is used by:
* XNJB
* Gnomad2
* MTPdude
* AmaroK
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libmtp/DESCR | 10 | ||||
-rw-r--r-- | devel/libmtp/Makefile | 29 | ||||
-rw-r--r-- | devel/libmtp/PLIST | 25 | ||||
-rw-r--r-- | devel/libmtp/buildlink3.mk | 21 | ||||
-rw-r--r-- | devel/libmtp/distinfo | 6 | ||||
-rw-r--r-- | devel/libmtp/patches/patch-aa | 13 |
6 files changed, 104 insertions, 0 deletions
diff --git a/devel/libmtp/DESCR b/devel/libmtp/DESCR new file mode 100644 index 00000000000..0eb3ba27edc --- /dev/null +++ b/devel/libmtp/DESCR @@ -0,0 +1,10 @@ +libmtp is an implementation of Microsoft's Media Transfer Protocol +(MTP) in the form of a library suitable primarily for POSIX compliant +operating systems. We implement MTP Basic, the stuff proposed for +standardization. + +It is used by: + * XNJB + * Gnomad2 + * MTPdude + * AmaroK diff --git a/devel/libmtp/Makefile b/devel/libmtp/Makefile new file mode 100644 index 00000000000..d004a576059 --- /dev/null +++ b/devel/libmtp/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/09/06 23:24:08 wiz Exp $ +# + +DISTNAME= libmtp-0.3.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libmtp/} + +MAINTAINER= ku3@sl.aanet.ru +HOMEPAGE= http://libmtp.sourceforge.net/ +COMMENT= Implementation of Media Transfer Protocol (MTP) + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_PKGLOCALEDIR= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config +GNU_CONFIGURE= yes + +PKGCONFIG_OVERRIDE+= libmtp.pc.in + +REPLACE_SH= hotplug.sh.in +REPLACE_SH+= libmtp.sh.in + +# XXX ? +LDFLAGS.FreeBSD+= -liconv + +.include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/libusb/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/libmtp/PLIST b/devel/libmtp/PLIST new file mode 100644 index 00000000000..8d299161780 --- /dev/null +++ b/devel/libmtp/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/06 23:24:08 wiz Exp $ +bin/mtp-albumart +bin/mtp-albums +bin/mtp-connect +bin/mtp-delfile +bin/mtp-detect +bin/mtp-emptyfolders +bin/mtp-files +bin/mtp-folders +bin/mtp-format +bin/mtp-getfile +bin/mtp-getplaylist +bin/mtp-hotplug +bin/mtp-newfolder +bin/mtp-newplaylist +bin/mtp-playlists +bin/mtp-sendfile +bin/mtp-sendtr +bin/mtp-reset +bin/mtp-thumb +bin/mtp-tracks +bin/mtp-trexist +include/libmtp.h +lib/libmtp.la +lib/pkgconfig/libmtp.pc diff --git a/devel/libmtp/buildlink3.mk b/devel/libmtp/buildlink3.mk new file mode 100644 index 00000000000..9ada2e78487 --- /dev/null +++ b/devel/libmtp/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/09/06 23:24:08 wiz Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBMTP_BUILDLINK3_MK:= ${LIBMTP_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= libmtp +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibmtp} +BUILDLINK_PACKAGES+= libmtp +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libmtp + +.if ${LIBMTP_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.libmtp+= libmtp>=0.3.0 +BUILDLINK_PKGSRCDIR.libmtp?= ../../devel/libmtp +.endif # LIBMTP_BUILDLINK3_MK + +.include "../../devel/libusb/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/libmtp/distinfo b/devel/libmtp/distinfo new file mode 100644 index 00000000000..0ee6422e73f --- /dev/null +++ b/devel/libmtp/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/09/06 23:24:08 wiz Exp $ + +SHA1 (libmtp-0.3.1.tar.gz) = 416510e65018cc50b10883b1fc893e2a05387439 +RMD160 (libmtp-0.3.1.tar.gz) = f9b3eac1b6b69771ef123edf76b8a6242f96c6f5 +Size (libmtp-0.3.1.tar.gz) = 556206 bytes +SHA1 (patch-aa) = 8d962323f099efec2bf2f3ac0ef3109151d5d57d diff --git a/devel/libmtp/patches/patch-aa b/devel/libmtp/patches/patch-aa new file mode 100644 index 00000000000..26e77f151f3 --- /dev/null +++ b/devel/libmtp/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/09/06 23:24:08 wiz Exp $ + +--- hotplug.sh.in.orig 2008-09-07 01:18:04.000000000 +0200 ++++ hotplug.sh.in +@@ -170,7 +170,7 @@ if [ "x${CVSTAG}" != "x" ]; then + fi + fi + fi +-if [ "x${EDITMAP}" == "xyes" ]; then ++if [ "x${EDITMAP}" = "xyes" ]; then + echo "We need to edit the ${HOTPLUGPATH}/usb.usermap if it exists..." + if test -f ${HOTPLUGPATH}/usb.usermap + then |