Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # $OpenBSD: Makefile,v 1.44 2017/04/10 11:45:22 sthen Exp $
  2. COMMENT= advanced music player
  3. VERSION= 1.0
  4. DISTNAME= aqualung-${VERSION}
  5. REVISION= 1
  6. EPOCH= 0
  7. CATEGORIES= audio
  8. HOMEPAGE= https://github.com/jeremyevans/aqualung
  9. MAINTAINER= Jeremy Evans <jeremy@openbsd.org>
  10. # GPLv2
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  13. WANTLIB += Xrandr Xrender atk-1.0 bz2 c cairo fontconfig
  14. WANTLIB += freetype gio-2.0 glib-2.0 gobject-2.0
  15. WANTLIB += gthread-2.0 m mp3lame ogg pango-1.0 pangocairo-1.0
  16. WANTLIB += pangoft2-1.0 pthread samplerate sndfile sndio ${LIBCXX}
  17. WANTLIB += vorbis vorbisenc vorbisfile z gtk-x11-2.0 gdk-x11-2.0
  18. WANTLIB += gdk_pixbuf-2.0 xml2 mac mad mpcdec FLAC avcodec
  19. WANTLIB += avformat avutil wavpack lrdf oggz speex cddb cdio
  20. WANTLIB += cdio_cdda cdio_paranoia modplug ${MODLUA_WANTLIB}
  21. MASTER_SITES= https://github.com/jeremyevans/aqualung/releases/download/${VERSION}/
  22. MODULES= devel/gettext \
  23. lang/lua
  24. MODLUA_SA= Yes
  25. LIB_DEPENDS= audio/flac \
  26. audio/lame \
  27. audio/libcdio \
  28. audio/libcddb \
  29. audio/libmad \
  30. audio/libmodplug \
  31. audio/libsamplerate \
  32. audio/libsndfile \
  33. audio/libvorbis \
  34. audio/mac \
  35. audio/musepack \
  36. audio/speex \
  37. audio/wavpack \
  38. graphics/ffmpeg \
  39. multimedia/oggz \
  40. textproc/liblrdf \
  41. textproc/libxml \
  42. x11/gtk+2 \
  43. ${MODLUA_LIB_DEPENDS}
  44. RUN_DEPENDS= devel/desktop-file-utils
  45. CFLAGS+= -DPTHREAD_MIN_PRIORITY=0 -DPTHREAD_MAX_PRIORITY=31 \
  46. -I${LOCALBASE}/include -I${MODLUA_INCL_DIR}
  47. CONFIGURE_STYLE= gnu
  48. CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib " \
  49. lua_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \
  50. lua_LIBS="`pkg-config --libs ${MODLUA_DEP}`"
  51. # ifp (requires libifp) - no package
  52. CONFIGURE_ARGS= --with-cdda \
  53. --with-cddb \
  54. --with-flac \
  55. --with-ladspa \
  56. --with-lame \
  57. --with-lavc \
  58. --with-lua \
  59. --with-mac \
  60. --with-mod \
  61. --with-mpc \
  62. --with-mpeg \
  63. --with-sndfile \
  64. --with-sndio \
  65. --with-speex \
  66. --with-src \
  67. --with-vorbis \
  68. --with-vorbisenc \
  69. --with-wavpack \
  70. --without-alsa \
  71. --without-ifp \
  72. --without-jack \
  73. --without-oss \
  74. --without-pulse \
  75. --without-winmm
  76. post-install:
  77. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  78. @${SUBST_CMD} -m 0644 -c ${FILESDIR}/aqualung.desktop \
  79. ${PREFIX}/share/applications/aqualung.desktop
  80. @chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/applications/aqualung.desktop
  81. .include <bsd.port.mk>