ports/155161: [patch] update port: audio/libgpod 0.7.2 -> 0.8.0
Alberto Villa
avilla at FreeBSD.org
Tue Mar 1 15:20:12 UTC 2011
>Number: 155161
>Category: ports
>Synopsis: [patch] update port: audio/libgpod 0.7.2 -> 0.8.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 01 15:20:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Alberto Villa
>Release: FreeBSD 9-CURRENT
>Organization:
>Environment:
FreeBSD echo.hoth 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r219021: Fri Feb 25 11:09:31 CET 2011 root at echo.hoth:/usr/obj/usr/src/sys/HPDV6 amd64
>Description:
this update makes libgpod finally support ipod nano 5g (successfully tested), iphone, ipod touch, and possibly some more stuff i don't even know
some notes:
- mono bindings are not enabled because i'm unable to build mono on my system
- sgutils is not optional anymore because sysinfo extended utility is built even without it, and sgutils is not a heavy port
it obviously requires a shlib bump in dependent ports
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
? work
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/audio/libgpod/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile 31 May 2010 01:57:28 -0000 1.27
+++ Makefile 1 Mar 2011 15:10:00 -0000
@@ -6,28 +6,42 @@
#
PORTNAME= libgpod
-PORTVERSION= 0.7.2
-PORTREVISION= 4
+PORTVERSION= 0.8.0
CATEGORIES= audio
-MASTER_SITES= SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+MASTER_SITES= SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
MAINTAINER= danfe at FreeBSD.org
COMMENT= A library for direct access of iPod contents
+LIB_DEPENDS= plist.1:${PORTSDIR}/devel/libplist \
+ tag.1:${PORTSDIR}/audio/taglib \
+ sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
+
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gtk20
+USE_SQLITE= 3
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --without-hal --with-html-dir="${PREFIX}/share/doc"
-OPTIONS= PYTHON "Enable Python bindings" off \
- TOOLS "Build SysInfo detection utility" off
+OPTIONS= PYTHON "Enable Python bindings" off
+
+#MONO "Enable Mono bindings" off
.include <bsd.port.options.mk>
+#.if defined(WITH_MONO)
+#LIB_DEPENDS+= mono.0:${PORTSDIR}/lang/mono
+#CONFIGURE_ARGS+= --with-mono
+#PLIST_SUB+= MONO=""
+#.else
+CONFIGURE_ARGS+= --without-mono
+#PLIST_SUB+= MONO="@comment "
+#.endif
+
.if defined(WITH_PYTHON)
USE_PYTHON= yes
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/__init__.py:${PORTSDIR}/devel/py-gobject \
@@ -40,18 +54,21 @@
PLIST_SUB+= PYTHON="@comment "
.endif
-# SysInfo detection utility is required in order to support iPod classic
-# and nano 3G
-.if defined(WITH_TOOLS) || exists(${LOCALBASE}/lib/libsgutils2.so)
-LIB_DEPENDS+= sgutils2.2:${PORTSDIR}/sysutils/sg3_utils
-PLIST_FILES+= bin/ipod-read-sysinfo-extended
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 800069
+LIB_DEPENDS+= imobiledevice.1:${PORTSDIR}/comms/libimobiledevice
+CONFIGURE_ENV+= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
+.else
+CONFIGURE_ARGS+= --without-libimobiledevice
.endif
post-patch: .SILENT
# Adjust pkgconfigdir to the FreeBSD world
${REINPLACE_CMD} -e \
's,libdir)/pkgconfig,prefix)/libdata/pkgconfig,' \
- ${WRKSRC}/Makefile.in
+ ${WRKSRC}/Makefile.in \
+ ${WRKSRC}/bindings/mono/libgpod-sharp/Makefile.in
# Allow to build tools without HAL
${REINPLACE_CMD} -e \
'/noinst_PROGRAMS =/s,^, at HAVE_HAL_TRUE@,' \
@@ -60,4 +77,4 @@
${REINPLACE_CMD} -e 's, docs,,' ${WRKSRC}/Makefile.in
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/audio/libgpod/distinfo,v
retrieving revision 1.7
diff -u -r1.7 distinfo
--- distinfo 7 Aug 2009 17:01:29 -0000 1.7
+++ distinfo 1 Mar 2011 15:10:00 -0000
@@ -1,3 +1,2 @@
-MD5 (libgpod-0.7.2.tar.gz) = 1ec69c3a19fb071b1639cdcaf68463c1
-SHA256 (libgpod-0.7.2.tar.gz) = 2e8f31fc37ed0c9c89004097fdb568e8971627e7aedfb57fb229399c0f490777
-SIZE (libgpod-0.7.2.tar.gz) = 959142
+SHA256 (libgpod-0.8.0.tar.gz) = 1b8baef8e5a718f6a11eaaea5619b906198766d999e8d54308f514b522571602
+SIZE (libgpod-0.8.0.tar.gz) = 997674
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/audio/libgpod/pkg-plist,v
retrieving revision 1.9
diff -u -r1.9 pkg-plist
--- pkg-plist 23 Aug 2009 18:30:41 -0000 1.9
+++ pkg-plist 1 Mar 2011 15:10:00 -0000
@@ -1,15 +1,16 @@
+bin/ipod-read-sysinfo-extended
include/gpod-1.0/gpod/itdb.h
@dirrm include/gpod-1.0/gpod
@dirrm include/gpod-1.0
-lib/libgpod.so.5
+lib/libgpod.so.7
lib/libgpod.so
lib/libgpod.la
lib/libgpod.a
libdata/pkgconfig/libgpod-1.0.pc
+libdata/pkgconfig/libgpod-sharp.pc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.py
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/__init__.pyo
-%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.a
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.la
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/_gpod.so
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gpod.py
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list