2013-03-21 04:45:11 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2013/03/21 08:45:12 ajacoutot Exp $
|
2006-01-20 01:23:51 -05:00
|
|
|
|
2009-04-24 05:45:48 -04:00
|
|
|
COMMENT-main= library to access the contents of an iPod
|
|
|
|
COMMENT-python= python bindings for libgpod
|
|
|
|
|
2011-11-15 10:47:52 -05:00
|
|
|
VERSION= 0.8.0
|
2009-04-24 05:45:48 -04:00
|
|
|
DISTNAME= libgpod-${VERSION}
|
2010-09-02 04:03:01 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2010-08-30 17:36:14 -04:00
|
|
|
PKGNAME-python= py-gpod-${VERSION}
|
2011-11-15 10:47:52 -05:00
|
|
|
SHARED_LIBS= gpod 721.0 # 7.1
|
2006-01-20 01:23:51 -05:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtkpod/}
|
|
|
|
|
2012-09-01 10:36:56 -04:00
|
|
|
REVISION-main= 3
|
|
|
|
REVISION-python=2
|
2011-12-05 17:59:52 -05:00
|
|
|
|
2009-12-08 10:55:47 -05:00
|
|
|
HOMEPAGE= http://www.gtkpod.org/libgpod/
|
2006-01-20 01:23:51 -05:00
|
|
|
|
2007-03-17 17:54:15 -04:00
|
|
|
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
|
2006-01-20 01:23:51 -05:00
|
|
|
|
2009-04-24 05:45:48 -04:00
|
|
|
# LGPLv2
|
2006-01-20 01:23:51 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2009-04-24 05:45:48 -04:00
|
|
|
MULTI_PACKAGES= -main -python
|
|
|
|
|
2006-10-15 18:43:49 -04:00
|
|
|
USE_GMAKE= Yes
|
2006-01-20 01:23:51 -05:00
|
|
|
|
2008-06-06 05:59:05 -04:00
|
|
|
MODULES= devel/gettext \
|
2009-04-24 05:45:48 -04:00
|
|
|
lang/python \
|
2008-06-06 05:59:05 -04:00
|
|
|
textproc/intltool
|
2006-01-20 01:23:51 -05:00
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
BUILD_DEPENDS= audio/py-mutagen \
|
2012-03-12 03:38:25 -04:00
|
|
|
devel/py-gobject \
|
2010-11-14 19:22:45 -05:00
|
|
|
devel/swig
|
2012-03-12 03:38:25 -04:00
|
|
|
RUN_DEPENDS-python= audio/py-mutagen \
|
|
|
|
devel/py-gobject
|
2011-12-05 17:59:52 -05:00
|
|
|
LIB_DEPENDS-python= ${BUILD_PKGPATH},-main
|
2012-04-23 13:15:17 -04:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
2011-11-15 10:47:52 -05:00
|
|
|
devel/libplist \
|
2010-11-14 19:22:45 -05:00
|
|
|
graphics/gdk-pixbuf2 \
|
2011-12-05 17:59:52 -05:00
|
|
|
textproc/libxml \
|
|
|
|
devel/libusb1
|
2010-09-05 18:00:13 -04:00
|
|
|
|
|
|
|
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 m z pcre
|
2011-11-15 10:47:52 -05:00
|
|
|
WANTLIB += gdk_pixbuf-2.0 xml2 png ffi sqlite3 plist
|
2011-12-05 17:59:52 -05:00
|
|
|
WANTLIB-main += ${WANTLIB} c pthread usb-1.0
|
2011-10-12 08:54:30 -04:00
|
|
|
WANTLIB-python += ${WANTLIB} gpod
|
2006-01-20 01:23:51 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2011-11-15 10:47:52 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-gdk-pixbuf \
|
|
|
|
--enable-pygobject \
|
|
|
|
--without-hal \
|
|
|
|
--without-libimobiledevice \
|
|
|
|
--without-mono \
|
|
|
|
--with-python="${MODPY_BIN}" \
|
|
|
|
--localedir=${TRUEPREFIX}/share/locale
|
2006-01-20 01:23:51 -05:00
|
|
|
|
2009-04-24 05:45:48 -04:00
|
|
|
pre-configure:
|
|
|
|
@find ${WRKDIST} -name \*.py | \
|
|
|
|
xargs perl -pi -e 's,/usr/bin/python,${MODPY_BIN},g'
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-gpod
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bindings/python/examples/*.py \
|
|
|
|
${PREFIX}/share/examples/py-gpod
|
|
|
|
|
2006-01-20 01:23:51 -05:00
|
|
|
.include <bsd.port.mk>
|