Makefile 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # $OpenBSD: Makefile,v 1.41 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT = audio player daemon with library management
  3. BROKEN-sparc64 = waf build goes into an infinite loop
  4. V = 0.8
  5. DISTNAME = xmms2-${V}DrO_o
  6. PKGNAME = xmms2-${V}
  7. REVISION = 6
  8. SHARED_LIBS += xmmsclient++ 2.0 # 4.0.0
  9. SHARED_LIBS += xmmsclient++-glib 1.0 # 1.0.0
  10. SHARED_LIBS += xmmsclient-glib 1.0 # 1.0.0
  11. SHARED_LIBS += xmmsclient 2.0 # 6.0.0
  12. CATEGORIES = audio
  13. HOMEPAGE = https://xmms2.org/
  14. MAINTAINER= Amaury Gauthier <amaury.gauthier@etu.unilim.fr>
  15. # LGPLv2.1
  16. PERMIT_PACKAGE_CDROM = Yes
  17. WANTLIB += FLAC ao avahi-client avahi-common avahi-glib avcodec
  18. WANTLIB += avutil c curl gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
  19. WANTLIB += gthread-2.0 jack m mad ncurses ogg pcre perl pthread readline
  20. WANTLIB += sndfile speex sqlite3 ${LIBCXX} vorbis vorbisfile
  21. WANTLIB += vorbisidec vpx x264 xml2 opus swresample x265 ${MODPY_WANTLIB}
  22. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=xmms2/}
  23. EXTRACT_SUFX = .tar.bz2
  24. MODULES = lang/python \
  25. devel/gettext \
  26. perl
  27. NO_TEST = Yes
  28. BUILD_DEPENDS = devel/pyrex \
  29. devel/boost
  30. LIB_DEPENDS = devel/glib2 \
  31. databases/sqlite3 \
  32. graphics/ffmpeg>=20130319 \
  33. audio/libao \
  34. audio/jack \
  35. textproc/libxml \
  36. net/curl \
  37. audio/libmad \
  38. net/avahi \
  39. audio/libsndfile \
  40. audio/tremor
  41. WSCRIPT_PATCHES = src/clients/lib/xmmsclient++/wscript \
  42. src/clients/lib/xmmsclient++-glib/wscript \
  43. src/clients/lib/xmmsclient-glib/wscript \
  44. src/clients/lib/xmmsclient/wscript
  45. pre-configure:
  46. cd ${WRKSRC} && ${SUBST_CMD} ${WSCRIPT_PATCHES}
  47. # Xmms2 uses its own modified Waf, so we cannot use devel/waf.
  48. # Disable speex and sun because they are broken
  49. # Disable shared memory support for visualization because it requires semtimedop()
  50. do-configure:
  51. cd ${WRKSRC} && PYTHON=${MODPY_BIN} ${MODPY_BIN} ./waf configure \
  52. --prefix=${PREFIX} \
  53. --mandir=${PREFIX}/man \
  54. --conf-prefix=${PREFIX} \
  55. --with-default-output-plugin=ao \
  56. --no-cython \
  57. --disable-shmvis-server \
  58. --without-optionals=medialib-updater,tests,xmmsclient-cf,xmmsclient-ecore,ruby \
  59. --without-plugins=airplay,alsa,cdda,coreaudio,faad,gme,ices,mac,mms,modplug,mpg123,musepack,nms,ofa,oss,pulse,samba,sid,speex,sun,vocoder,waveout,wavpack
  60. post-configure:
  61. # avoid linking to bogus libraries
  62. sed -i "s/SONAME_ST.*/SONAME_ST=''/" ${WRKSRC}/_build_/c4che/_cache.py
  63. do-build:
  64. cd ${WRKSRC} && ${MODPY_BIN} ./waf build
  65. do-install:
  66. cd ${WRKSRC} && ${MODPY_BIN} ./waf install --without-ldconfig
  67. /usr/bin/pod2man ${PREFIX}/${P5ARCH}/Audio/XMMSClient.pod > ${WRKDIR}/Audio::XMMSClient.3p
  68. /usr/bin/pod2man ${PREFIX}/${P5ARCH}/Audio/XMMSClient/Glib.pm > ${WRKDIR}/Audio::XMMSClient::Glib.3p
  69. /usr/bin/pod2man ${PREFIX}/${P5ARCH}/Audio/XMMSClient/Collection.pod > ${WRKDIR}/Audio::XMMSClient::Collection.3p
  70. /usr/bin/pod2man ${PREFIX}/${P5ARCH}/Audio/XMMSClient/Playlist.pod > ${WRKDIR}/Audio::XMMSClient::Playlist.3p
  71. /usr/bin/pod2man ${PREFIX}/${P5ARCH}/Audio/XMMSClient/Result.pod > ${WRKDIR}/Audio::XMMSClient::Result.3p
  72. ${INSTALL_MAN} ${WRKDIR}/*.3p ${PREFIX}/man/man3p/
  73. .include <bsd.port.mk>