Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # $OpenBSD: Makefile,v 1.29 2016/11/04 11:35:18 sthen Exp $
  2. COMMENT = DeaDBeeF is an audio player
  3. DISTNAME = deadbeef-0.7.2
  4. REVISION = 2
  5. CATEGORIES = audio
  6. HOMEPAGE = http://deadbeef.sourceforge.net/
  7. # GPLv2 & LGPLv2.1
  8. PERMIT_PACKAGE_CDROM = Yes
  9. WANTLIB += FLAC ICE Imlib2 SM X11 Xcomposite Xcursor Xdamage Xext Xfixes
  10. WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 atk-bridge-2.0 atspi
  11. WANTLIB += avcodec avformat avutil c cairo cairo-gobject cddb cdio
  12. WANTLIB += crypto curl dbus-1 epoxy expat faad ffi fontconfig freetype
  13. WANTLIB += gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
  14. WANTLIB += graphite2 gthread-2.0 gtk-3 harfbuzz iconv intl jansson m mad
  15. WANTLIB += mms mp4ff mpcdec nghttp2 ogg pango-1.0 pangocairo-1.0
  16. WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs sndfile
  17. WANTLIB += sndio ssl vorbis vorbisenc vorbisfile wavpack xcb xcb-render
  18. WANTLIB += xcb-shm z zip
  19. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=deadbeef/}
  20. EXTRACT_SUFX = .tar.bz2
  21. MODULES = textproc/intltool
  22. BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
  23. ${MODGNU_AUTOMAKE_DEPENDS}
  24. .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
  25. BUILD_DEPENDS += devel/yasm
  26. .endif
  27. RUN_DEPENDS = devel/desktop-file-utils \
  28. x11/gtk+3,-guic
  29. LIB_DEPENDS = archivers/libzip \
  30. audio/faad \
  31. audio/flac \
  32. audio/libcdio \
  33. audio/libmad \
  34. audio/libogg \
  35. audio/libsndfile \
  36. audio/libvorbis \
  37. audio/musepack \
  38. audio/wavpack \
  39. devel/jansson \
  40. graphics/ffmpeg \
  41. graphics/imlib2 \
  42. multimedia/libmms \
  43. net/curl \
  44. x11/dbus \
  45. x11/gtk+3
  46. USE_GMAKE = Yes
  47. USE_LIBTOOL = gnu
  48. LIBTOOL_FLAGS = --tag=disable-static
  49. NO_TEST = Yes
  50. AUTOCONF_VERSION = 2.69
  51. AUTOMAKE_VERSION = 1.11
  52. CONFIGURE_STYLE = gnu
  53. CONFIGURE_ARGS += --disable-static \
  54. --disable-abstract-socket \
  55. --disable-adplug \
  56. --disable-alsa \
  57. --disable-coreaudio \
  58. --disable-gme \
  59. --disable-gtk2 \
  60. --disable-libmpg123 \
  61. --disable-mono2stereo \
  62. --disable-oss \
  63. --disable-pulse \
  64. --disable-sid \
  65. --disable-src \
  66. --disable-supereq \
  67. --disable-wildmidi \
  68. --disable-wma
  69. CONFIGURE_ENV += CPPFLAGS='-I${LOCALBASE}/lib/libzip/include \
  70. -I${X11BASE}/include \
  71. -I${WRKSRC}/plugins/dumb/dumb-kode54/include' \
  72. LDFLAGS='-L${LOCALBASE}/lib -L${X11BASE}/lib'
  73. post-patch:
  74. @mkdir -p ${WRKSRC}/m4 # XXX need for autoreconf
  75. @mkdir -p ${WRKSRC}/plugins/sndio
  76. @cp ${FILESDIR}/{Makefile.am,sndio.c} ${WRKSRC}/plugins/sndio
  77. pre-configure:
  78. @cd ${WRKSRC}; env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  79. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoreconf
  80. post-install:
  81. @rm ${PREFIX}/lib/deadbeef/*.la
  82. .include <bsd.port.mk>