aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libgpod
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2011-03-15 23:03:00 +0800
committerdanfe <danfe@FreeBSD.org>2011-03-15 23:03:00 +0800
commit2f48174528b5c751715dea7d52c0c489e28293ac (patch)
tree556774310f08713f561b961abef13a37f851e8a0 /audio/libgpod
parent5362548b296c8f742cd266e5f7022b308cd1462e (diff)
downloadfreebsd-ports-gnome-2f48174528b5c751715dea7d52c0c489e28293ac.tar.gz
freebsd-ports-gnome-2f48174528b5c751715dea7d52c0c489e28293ac.tar.zst
freebsd-ports-gnome-2f48174528b5c751715dea7d52c0c489e28293ac.zip
- Update to version 0.8.0
- Add LICENSE (LGPL20) - Install some extra documentation files - Transfer maintainership to submitter. Alberto did a good job on porting libgpod dependencies, owns more recent Apple gadgets than me, and kindly agreed to look after this port PR: ports/155161 Submitted by: avilla
Diffstat (limited to 'audio/libgpod')
-rw-r--r--audio/libgpod/Makefile59
-rw-r--r--audio/libgpod/distinfo5
-rw-r--r--audio/libgpod/pkg-descr2
-rw-r--r--audio/libgpod/pkg-plist14
4 files changed, 55 insertions, 25 deletions
diff --git a/audio/libgpod/Makefile b/audio/libgpod/Makefile
index ca29892bf50e..29d81be64257 100644
--- a/audio/libgpod/Makefile
+++ b/audio/libgpod/Makefile
@@ -6,25 +6,33 @@
#
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@FreeBSD.org
+MAINTAINER= avilla@FreeBSD.org
COMMENT= A library for direct access of iPod contents
+LICENSE= LGPL20
+
+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
+
+PORTDOCS= ChangeLog NEWS README*
.include <bsd.port.options.mk>
@@ -40,24 +48,41 @@ CONFIGURE_ARGS+= --without-python
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
+.if defined(WITH_MONO)
+USE_GNOME+= gtksharp20
+CONFIGURE_ARGS+= --with-mono
+PLIST_SUB+= MONO=""
+.else
+CONFIGURE_ARGS+= --without-mono
+PLIST_SUB+= MONO="@comment "
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 800107 && ${OSVERSION} < 900000 || ${OSVERSION} > 900002
+LIB_DEPENDS+= imobiledevice.1:${PORTSDIR}/comms/libimobiledevice
+CONFIGURE_ENV+= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
+.else
+CONFIGURE_ARGS+= --without-libimobiledevice
.endif
-post-patch: .SILENT
+post-patch:
# Adjust pkgconfigdir to the FreeBSD world
- ${REINPLACE_CMD} -e \
+ @${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 \
+ @${REINPLACE_CMD} -e \
'/noinst_PROGRAMS =/s,^,@HAVE_HAL_TRUE@,' \
${WRKSRC}/tools/Makefile.in
.if defined(NOPORTDOCS)
- ${REINPLACE_CMD} -e 's, docs,,' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's, docs,,' ${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/audio/libgpod/distinfo b/audio/libgpod/distinfo
index 42627f573a41..4a036655dcea 100644
--- a/audio/libgpod/distinfo
+++ b/audio/libgpod/distinfo
@@ -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
diff --git a/audio/libgpod/pkg-descr b/audio/libgpod/pkg-descr
index c1b46ee1473b..e490f7737fef 100644
--- a/audio/libgpod/pkg-descr
+++ b/audio/libgpod/pkg-descr
@@ -9,6 +9,6 @@ duplicating code.
libgpod supports playlists, smart playlists, playcounts, ratings, podcasts,
cover art, audio and video. Photo support is implemented as well. Python
-bindings are optionally available too.
+and Mono bindings are optionally available too.
WWW: http://www.gtkpod.org/libgpod.html
diff --git a/audio/libgpod/pkg-plist b/audio/libgpod/pkg-plist
index df95b417f60b..23b720efcd22 100644
--- a/audio/libgpod/pkg-plist
+++ b/audio/libgpod/pkg-plist
@@ -1,15 +1,22 @@
+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
+%%MONO%%lib/libgpod/libgpod-sharp-test.exe
+%%MONO%%lib/libgpod/libgpod-sharp-test.exe.mdb
+%%MONO%%lib/libgpod/libgpod-sharp.dll
+%%MONO%%lib/libgpod/libgpod-sharp.dll.config
+%%MONO%%lib/libgpod/libgpod-sharp.dll.mdb
+%%MONO%%@dirrm lib/libgpod
+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
@@ -51,7 +58,6 @@ share/locale/zh_CN/LC_MESSAGES/libgpod.mo
%%PORTDOCS%%%%DOCSDIR%%/libgpod.devhelp
%%PORTDOCS%%%%DOCSDIR%%/libgpod.devhelp2
%%PORTDOCS%%%%DOCSDIR%%/photodb.html
-%%PORTDOCS%%%%DOCSDIR%%/up.png
%%PORTDOCS%%%%DOCSDIR%%/right.png
%%PORTDOCS%%%%DOCSDIR%%/style.css
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/up.png