Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # $OpenBSD: Makefile,v 1.26 2017/05/31 08:08:15 espie Exp $
  2. # XXX check if still needed at next update
  3. CXXFLAGS += -std=c++11
  4. ONLY_FOR_ARCHS = amd64 i386 powerpc
  5. COMMENT = digital audio workstation
  6. DISTNAME = ardour-2.8.16
  7. REVISION = 5
  8. CATEGORIES = audio
  9. HOMEPAGE = http://ardour.org
  10. # GPLv2+
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
  13. WANTLIB += Xi Xinerama Xrandr Xrender art_lgpl_2 atk-1.0 atkmm-1.6
  14. WANTLIB += aubio boost_system-mt c cairo cairomm-1.0 curl execinfo
  15. WANTLIB += fftw3 fftw3f fontconfig freetype gailutil gdk-x11-2.0
  16. WANTLIB += gdk_pixbuf-2.0 gdkmm-2.4 gio-2.0 giomm-2.4 glib-2.0
  17. WANTLIB += glibmm-2.4 gmodule-2.0 gnomecanvas-2 gnomecanvasmm-2.6
  18. WANTLIB += gobject-2.0 gthread-2.0 gtk-x11-2.0 gtkmm-2.4 harfbuzz
  19. WANTLIB += jack lo lrdf m pango-1.0 pangocairo-1.0 pangoft2-1.0
  20. WANTLIB += pangomm-1.4 pcre pixman-1 png pthread pthread-stubs
  21. WANTLIB += samplerate sigc-2.0 sndfile sndio xcb xcb-render
  22. WANTLIB += xcb-shm xml2 xslt z expat graphite2 usb lzma
  23. # Use mirrors as official site has click-through donation-request download.
  24. MASTER_SITES = http://pkgs.fedoraproject.org/repo/pkgs/ardour/${DISTNAME}${EXTRACT_SUFX}/5bafe41df00d25e7a357baaa1038f16d/
  25. EXTRACT_SUFX = .tar.bz2
  26. # Fix build with libsigc++ >= 2.6
  27. MASTER_SITES0 = https://distfiles.bsdfrog.org/
  28. PATCHFILES = ardour-sigc26.diff:0
  29. MODULES = devel/gettext \
  30. devel/scons
  31. # c++11
  32. COMPILER = gcc
  33. CXXFLAGS += -Wno-c++11-narrowing
  34. # XXX so that it gets in *after* -Wall
  35. CFLAGS += -Wno-mismatched-tags
  36. NO_TEST= Yes
  37. MODSCONS_ENV= CC="${CC}" \
  38. CXX="${CXX}" \
  39. CCFLAGS="${CFLAGS}" \
  40. CXXFLAGS="${CXXFLAGS}" \
  41. LINKFLAGS="${LDFLAGS}" \
  42. CPPPATH="${LOCALBASE}/include:${X11BASE}/include" \
  43. LIBPATH="${LOCALBASE}/lib:${X11BASE}/lib" \
  44. PREFIX="${TRUEPREFIX}" \
  45. debug=0 \
  46. DIST_LIBDIR=lib \
  47. LIBLO=1 \
  48. FREEDESKTOP=1 \
  49. SYSLIBS=1
  50. BUILD_DEPENDS= audio/vamp-plugin-sdk
  51. # the fd.or utilities are needed at build time (FREEDESKTOP=1)
  52. BUILD_DEPENDS += devel/desktop-file-utils \
  53. x11/gtk+3,-guic \
  54. misc/shared-mime-info
  55. RUN_DEPENDS = devel/desktop-file-utils \
  56. x11/gtk+3,-guic \
  57. misc/shared-mime-info
  58. LIB_DEPENDS = audio/aubio \
  59. audio/liblo \
  60. devel/boost \
  61. devel/libexecinfo \
  62. devel/libusb-compat \
  63. math/fftw3 \
  64. textproc/liblrdf \
  65. x11/gnome/libgnomecanvasmm
  66. SUBST_VARS = CFLAGS CXXFLAGS LOCALBASE
  67. post-extract:
  68. cp ${FILESDIR}/sndio_midiport.h ${WRKSRC}/libs/midi++2/midi++/
  69. cp ${FILESDIR}/sndio_midiport.cc ${WRKSRC}/libs/midi++2/
  70. pre-configure:
  71. ${SUBST_CMD} ${WRKSRC}/SConstruct
  72. sed -i "s,/usr/local,${LOCALBASE},g" \
  73. ${WRKSRC}/libs/vamp-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp
  74. post-install:
  75. mv ${WRKINST}/etc/ardour2 ${PREFIX}/share/examples/
  76. .include <bsd.port.mk>