1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Allow to build with Python bindings [1]

- Optionally, build SysInfo detection utility, which is required in order
  to support iPod classic and nano 3G [2]
- Some minor Makefile nits

Since both knobs are disabled by default, do not bump PORTREVISION

PR:		ports/124707 [1], ports/126656 [2]
Submitted by:	edwin [1], ehaupt [2]
This commit is contained in:
Alexey Dokuchaev 2009-08-23 18:30:41 +00:00
parent 1d978d9e43
commit 1282a5f64f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=240217
3 changed files with 47 additions and 7 deletions

View File

@ -11,7 +11,7 @@ CATEGORIES= audio
MASTER_SITES= SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= danfe@FreeBSD.org
COMMENT= A library for direct access of iPod's contents
COMMENT= A library for direct access of iPod contents
USE_GNOME= gtk20
USE_GETTEXT= yes
@ -20,18 +20,41 @@ USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# Disable python bindings for now, something does not work there
CONFIGURE_ARGS= --without-python
CONFIGURE_ARGS= --without-hal --with-html-dir="${PREFIX}/share/doc"
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+= --with-html-dir="${PREFIX}/share/doc"
OPTIONS= PYTHON "Enable Python bindings" off \
TOOLS "Build SysInfo detection utility" off
.include <bsd.port.options.mk>
.if defined(WITH_PYTHON)
USE_PYTHON= yes
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/__init__.py:${PORTSDIR}/devel/py-gobject \
${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen \
swig:${PORTSDIR}/devel/swig13
RUN_DEPENDS:= ${BUILD_DEPENDS}
PLIST_SUB+= PYTHON=""
.else
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/libsgutils.so)
LIB_DEPENDS+= sgutils.1:${PORTSDIR}/sysutils/sg3_utils
PLIST_FILES+= bin/ipod-read-sysinfo-extended
.endif
pre-patch: .SILENT
# Adjust pkgconfigdir to the FreeBSD world
${REINPLACE_CMD} -e \
's,libdir)/pkgconfig,prefix)/libdata/pkgconfig,' \
${WRKSRC}/Makefile.in
${WRKSRC}/Makefile.in
# Allow to build tools without HAL
${REINPLACE_CMD} -e \
'/noinst_PROGRAMS =/s,^,@HAVE_HAL_TRUE@,' \
${WRKSRC}/tools/Makefile.in
.if defined(NOPORTDOCS)
${REINPLACE_CMD} -e 's, docs,,' ${WRKSRC}/Makefile.in
.endif

View File

@ -8,6 +8,7 @@ this code in a separate library so that other projects can benefit from
it without duplicating code.
libgpod supports playlists, smart playlists, playcounts, ratings, podcasts,
cover art, audio and video. Photo support is implemented as well.
cover art, audio and video. Photo support is implemented as well. Python
bindings are optionally available too.
WWW: http://www.gtkpod.org/libgpod.html

View File

@ -6,6 +6,22 @@ lib/libgpod.so
lib/libgpod.la
lib/libgpod.a
libdata/pkgconfig/libgpod-1.0.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
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gpod.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gpod.pyo
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gtkpod.py
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gtkpod.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/gtkpod.pyo
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/ipod.py
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/ipod.pyc
%%PYTHON%%%%PYTHON_SITELIBDIR%%/gpod/ipod.pyo
%%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/gpod
share/locale/de/LC_MESSAGES/libgpod.mo
share/locale/es/LC_MESSAGES/libgpod.mo
share/locale/fr/LC_MESSAGES/libgpod.mo