Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # $OpenBSD: Makefile,v 1.45 2016/09/23 09:16:52 sthen Exp $
  2. COMMENT-main= library to access the contents of an iPod
  3. COMMENT-python= python bindings for libgpod
  4. VERSION= 0.8.0
  5. DISTNAME= libgpod-${VERSION}
  6. PKGNAME-main= ${DISTNAME}
  7. PKGNAME-python= py-gpod-${VERSION}
  8. SHARED_LIBS= gpod 721.0 # 7.1
  9. CATEGORIES= audio
  10. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtkpod/}
  11. REVISION-main= 7
  12. REVISION-python= 6
  13. HOMEPAGE= http://www.gtkpod.org/libgpod/
  14. # LGPLv2
  15. PERMIT_PACKAGE_CDROM= Yes
  16. MULTI_PACKAGES= -main -python
  17. USE_GMAKE= Yes
  18. MODULES= devel/gettext \
  19. lang/python \
  20. textproc/intltool
  21. BUILD_DEPENDS= audio/py-mutagen \
  22. devel/py-gobject \
  23. devel/swig
  24. RUN_DEPENDS-python= audio/py-mutagen \
  25. devel/py-gobject
  26. LIB_DEPENDS-python= ${BUILD_PKGPATH},-main
  27. LIB_DEPENDS= databases/sqlite3 \
  28. devel/glib2 \
  29. devel/libplist \
  30. graphics/gdk-pixbuf2 \
  31. textproc/libxml \
  32. devel/libusb1
  33. WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 m z pcre
  34. WANTLIB += gdk_pixbuf-2.0 lzma xml2 png ffi sqlite3 plist
  35. WANTLIB-main += ${WANTLIB} c pthread usb-1.0
  36. WANTLIB-python += ${WANTLIB} gpod pthread
  37. CONFIGURE_STYLE=gnu
  38. CONFIGURE_ARGS+=--enable-gdk-pixbuf \
  39. --enable-pygobject \
  40. --without-hal \
  41. --without-libimobiledevice \
  42. --without-mono \
  43. --with-python="${MODPY_BIN}" \
  44. --localedir=${TRUEPREFIX}/share/locale
  45. pre-configure:
  46. @find ${WRKDIST} -name \*.py | \
  47. xargs sed -i 's,/usr/bin/python,${MODPY_BIN},g'
  48. post-install:
  49. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-gpod
  50. ${INSTALL_DATA} ${WRKSRC}/bindings/python/examples/*.py \
  51. ${PREFIX}/share/examples/py-gpod
  52. .include <bsd.port.mk>