blob: 9644a728b35eb6e48420bd75beb1df3130caa1c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: libgpod
# Date created: Wed Jan 1 00:48:58 EST 2006
# Whom: Devon Ryan <dpryan@dpryan.com>
#
# $FreeBSD$
#
PORTNAME= libgpod
PORTVERSION= 0.7.2
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= danfe@FreeBSD.org
COMMENT= A library for direct access of iPod contents
USE_GNOME= gtk20
USE_GETTEXT= yes
USE_GMAKE= yes
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
.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
# 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
.include <bsd.port.mk>
|