2012-10-06 16:01:58 +00:00
|
|
|
# Created by: Devon Ryan <dpryan@dpryan.com>
|
2006-01-18 14:45:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libgpod
|
2013-11-13 16:49:00 +00:00
|
|
|
PORTVERSION= 0.8.3
|
2006-01-18 14:45:54 +00:00
|
|
|
CATEGORIES= audio
|
2011-03-15 15:03:00 +00:00
|
|
|
MASTER_SITES= SF/gtkpod/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
|
2006-01-18 14:45:54 +00:00
|
|
|
|
2011-03-15 15:03:00 +00:00
|
|
|
MAINTAINER= avilla@FreeBSD.org
|
2013-05-07 00:41:02 +00:00
|
|
|
COMMENT= Library for direct access to iPod contents
|
2006-01-18 14:45:54 +00:00
|
|
|
|
2011-03-15 15:03:00 +00:00
|
|
|
LICENSE= LGPL20
|
|
|
|
|
2013-11-13 16:49:00 +00:00
|
|
|
LIB_DEPENDS= libplist.so:${PORTSDIR}/devel/libplist \
|
|
|
|
libtag.so:${PORTSDIR}/audio/taglib \
|
|
|
|
libsgutils2.so:${PORTSDIR}/sysutils/sg3_utils
|
2011-03-15 15:03:00 +00:00
|
|
|
|
2013-11-13 16:49:00 +00:00
|
|
|
USE_GNOME= gdkpixbuf2 gtk20
|
2011-03-15 15:03:00 +00:00
|
|
|
USE_SQLITE= 3
|
2013-11-13 16:49:00 +00:00
|
|
|
USES= gettext gmake pathfix pkgconfig
|
2013-05-07 00:41:02 +00:00
|
|
|
USE_BZIP2= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-05-07 00:41:02 +00:00
|
|
|
CONFIGURE_ARGS= --disable-udev --without-hal \
|
|
|
|
--with-html-dir="${DOCSDIR:H}"
|
|
|
|
USE_CSTD= gnu89
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2013-05-07 00:41:02 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2013-11-13 16:49:00 +00:00
|
|
|
OPTIONS_DEFINE= DOCS IMOBILE MONO PYTHON
|
2013-05-07 00:41:02 +00:00
|
|
|
OPTIONS_DEFAULT=IMOBILE
|
2013-11-13 16:49:00 +00:00
|
|
|
OPTIONS_SUB= yes
|
2013-05-07 00:41:02 +00:00
|
|
|
|
2012-10-06 16:01:58 +00:00
|
|
|
IMOBILE_DESC= Apple iPhone/iPod Touch support
|
2011-03-15 15:03:00 +00:00
|
|
|
|
2013-11-13 16:49:00 +00:00
|
|
|
MONO_USE= GNOME=gtksharp20
|
|
|
|
MONO_CONFIGURE_WITH= mono
|
2009-08-23 18:30:41 +00:00
|
|
|
|
2013-11-13 16:49:00 +00:00
|
|
|
PYTHON_BUILD_DEPENDS= swig2.0:${PORTSDIR}/devel/swig20 \
|
|
|
|
${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen
|
|
|
|
PYTHON_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen
|
|
|
|
PYTHON_USE= GNOME=pygobject PYTHON=yes
|
|
|
|
PYTHON_CONFIGURE_ENV= SWIG="${LOCALBASE}/bin/swig2.0"
|
|
|
|
PYTHON_CONFIGURE_WITH= python
|
2009-08-23 18:30:41 +00:00
|
|
|
|
2013-11-13 16:49:00 +00:00
|
|
|
PORTDOCS= ChangeLog NEWS README*
|
2013-05-07 00:41:02 +00:00
|
|
|
|
2011-03-15 15:03:00 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-10-06 16:01:58 +00:00
|
|
|
.if ${PORT_OPTIONS:MIMOBILE} && (${OSVERSION} > 900002 || \
|
2013-05-07 00:41:02 +00:00
|
|
|
${OSVERSION} < 900000 && ${OSVERSION} > 800107)
|
2011-07-29 18:38:12 +00:00
|
|
|
COMMENT:= ${COMMENT:S,iPod,&/iPhone,}
|
2013-11-13 16:49:00 +00:00
|
|
|
LIB_DEPENDS+= libimobiledevice.so:${PORTSDIR}/comms/libimobiledevice
|
2011-03-15 15:03:00 +00:00
|
|
|
CONFIGURE_ENV+= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
|
|
|
|
.else
|
2013-05-07 00:41:02 +00:00
|
|
|
CONFIGURE_ARGS+=--without-libimobiledevice
|
2006-10-10 11:13:42 +00:00
|
|
|
.endif
|
2006-01-18 14:45:54 +00:00
|
|
|
|
2011-03-15 15:03:00 +00:00
|
|
|
post-patch:
|
2009-08-23 18:30:41 +00:00
|
|
|
# Allow to build tools without HAL
|
2013-05-07 00:41:02 +00:00
|
|
|
@${REINPLACE_CMD} -e '/noinst_PROGRAMS =/ s,^,@HAVE_HAL_TRUE@,' \
|
|
|
|
${WRKSRC}/tools/Makefile.in
|
2011-03-15 15:03:00 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-11-13 16:49:00 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2006-01-18 14:45:54 +00:00
|
|
|
|
2011-03-15 15:03:00 +00:00
|
|
|
.include <bsd.port.post.mk>
|