Makefile 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # $OpenBSD: Makefile,v 1.44 2017/04/10 11:45:22 sthen Exp $
  2. COMMENT= free audio editor
  3. V= 1.3.9
  4. DISTNAME= audacity-minsrc-${V}
  5. PKGNAME= audacity-${V}
  6. REVISION= 8
  7. CATEGORIES= audio
  8. EXTRACT_SUFX= .tar.bz2
  9. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=audacity/}
  10. HOMEPAGE= http://audacity.sourceforge.net/
  11. # GPLv2
  12. PERMIT_PACKAGE_CDROM= Yes
  13. WANTLIB += c expat glib-2.0 gobject-2.0 gtk-x11-2.0 m ogg pthread
  14. WANTLIB += sndfile sndio ${LIBCXX} wx_base_xml wx_base_odbc wx_gtk2_aui
  15. WANTLIB += wx_gtk2_html wx_gtk2_adv wx_gtk2_xrc wx_base_net wx_gtk2_dbgrid
  16. WANTLIB += wx_gtk2_qa wx_base wx_gtk2_core wx_gtk2_richtext samplerate>=1
  17. WANTLIB += FLAC>=8 FLAC++>=7 vorbis>=5 vorbisfile>=4 vorbisenc>=2
  18. WANTLIB += id3tag>=2 mad>=2 portaudio>=1 SoundTouch vamp-hostsdk>=1
  19. WANTLIB += tag
  20. BUILD_DEPENDS= archivers/zip \
  21. devel/gettext-tools
  22. LIB_DEPENDS= x11/wxWidgets>=2.8.6 \
  23. audio/libsamplerate \
  24. audio/flac \
  25. audio/libvorbis \
  26. audio/libid3tag \
  27. audio/libmad \
  28. audio/portaudio-svn>=1406p1 \
  29. audio/soundtouch \
  30. audio/vamp-plugin-sdk>=2.2.1p0 \
  31. audio/taglib
  32. RUN_DEPENDS= devel/desktop-file-utils \
  33. misc/shared-mime-info
  34. USE_GMAKE= Yes
  35. CONFIGURE_STYLE= gnu
  36. CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  37. CFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  38. LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
  39. gl_cv_cc_visibility=no
  40. MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} \
  41. ${WRKSRC}/lib-src/lib-widget-extra \
  42. ${WRKSRC}/lib-src/portsmf \
  43. ${WRKSRC}/lib-src/FileDialog \
  44. ${WRKSRC}/lib-src/sbsms \
  45. ${WRKSRC}/lib-src/libnyquist
  46. CONFIGURE_ARGS= --enable-unicode \
  47. --enable-ladspa \
  48. --enable-nyquist \
  49. --with-lib-preferences=system \
  50. --with-libsndfile=system \
  51. --with-expat=system \
  52. --with-libsamplerate=system \
  53. --without-libresample \
  54. --with-libvorbis=system \
  55. --with-libmad=system \
  56. --with-libflac=system \
  57. --with-libid3tag=system \
  58. --with-soundtouch=system \
  59. --with-libvamp=system \
  60. --without-libtwolame \
  61. --without-ffmpeg \
  62. --without-redland \
  63. --without-slv2 \
  64. --without-liblrdf \
  65. --with-portmixer=no
  66. MAKE_FLAGS= CC="${CC}"
  67. WRKDIST= ${WRKDIR}/audacity-src-${V}
  68. # Regression tests are in the source tarball but as of 2007, they have
  69. # not been updated for 3 years ; as they're completely out-of-sync with
  70. # the ongoing development, there's no point in running them
  71. NO_TEST= Yes
  72. post-install:
  73. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
  74. ${INSTALL_DATA} ${WRKSRC}/images/AudacityLogo.xpm \
  75. ${PREFIX}/share/pixmaps/audacity.xpm
  76. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  77. ${INSTALL_DATA} ${WRKSRC}/src/audacity.desktop \
  78. ${PREFIX}/share/applications/
  79. ${INSTALL_DATA_DIR} ${PREFIX}/share/mime/packages
  80. ${INSTALL_DATA} ${WRKSRC}/src/audacity.xml \
  81. ${PREFIX}/share/mime/packages/
  82. .include <bsd.port.mk>