Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2016 06:51:28 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r411331 - in head/audio/audacity: . files
Message-ID:  <201603180651.u2I6pSti014666@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Fri Mar 18 06:51:28 2016
New Revision: 411331
URL: https://svnweb.freebsd.org/changeset/ports/411331

Log:
  Add autoreconf libtool to USES; install headers to include, not DATADIR
  
  This changeset brings in the necessary fixes in audacity's build system
  to use autoreconf and libtool in USES. (206914)
  First use case of this is to have audacity install its headers in the
  standard include path rather than DATADIR (207074).
  Bump PORTREVISION.
  
  PR:		206914, 207074
  Submitted by:	tatsuki_makino@hotmail.com
  Approved by:	xxjack12xx@gmail.com (maintainer)

Added:
  head/audio/audacity/files/patch-Makefile.am   (contents, props changed)
  head/audio/audacity/files/patch-configure.ac   (contents, props changed)
  head/audio/audacity/files/patch-include_Makefile.am   (contents, props changed)
  head/audio/audacity/files/patch-lib-src_FileDialog_Makefile.am   (contents, props changed)
  head/audio/audacity/files/patch-lib-src_FileDialog_configure.ac   (contents, props changed)
  head/audio/audacity/files/patch-lib-src_FileDialog_gtk_Makefile.am   (contents, props changed)
  head/audio/audacity/files/patch-lib-src_FileDialog_mac_Makefile.am   (contents, props changed)
  head/audio/audacity/files/patch-lib-src_FileDialog_win_Makefile.am   (contents, props changed)
  head/audio/audacity/files/patch-lib-src_libmad_configure.ac   (contents, props changed)
  head/audio/audacity/files/patch-lib-src_portaudio-v19_bindings_cpp_configure.ac   (contents, props changed)
  head/audio/audacity/files/patch-src_Makefile.am   (contents, props changed)
Deleted:
  head/audio/audacity/files/patch-lib-src_FileDialog_Makefile.in
  head/audio/audacity/files/patch-lib-src__libmad__configure
  head/audio/audacity/files/patch-lib-src__soundtouch__source__SoundTouch__Makefile.in
  head/audio/audacity/files/patch-lib-src_libnyquist_Makefile.in
  head/audio/audacity/files/patch-lib-src_portmixer_configure
  head/audio/audacity/files/patch-src__Makefile.in
Modified:
  head/audio/audacity/Makefile
  head/audio/audacity/pkg-plist

Modified: head/audio/audacity/Makefile
==============================================================================
--- head/audio/audacity/Makefile	Fri Mar 18 06:47:41 2016	(r411330)
+++ head/audio/audacity/Makefile	Fri Mar 18 06:51:28 2016	(r411331)
@@ -3,7 +3,7 @@
 
 PORTNAME=	audacity
 PORTVERSION=	2.1.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	audio
 MASTER_SITES=	https://github.com/audacity/audacity/archive/
 DISTNAME=	Audacity-${PORTVERSION}
@@ -25,8 +25,8 @@ BROKEN_powerpc64=	Does not build
 WRKSRC=		${WRKDIR}/${PORTNAME}-Audacity-${PORTVERSION}
 
 GNU_CONFIGURE=	yes
-USES=		compiler:c++11-lib cpe desktop-file-utils gmake iconv pkgconfig shared-mime-info shebangfix dos2unix
-NLS_USES=	gettext
+USES=		autoreconf compiler:c++11-lib cpe desktop-file-utils gettext-tools gmake iconv libtool pkgconfig shared-mime-info shebangfix dos2unix
+NLS_USES=	gettext-runtime
 NLS_CONFIGURE_ENABLE=	nls
 NLS_CONFIGURE_WITH=	libintl-prefix="${LOCALBASE}"
 OPTIONS_SUB=	yes
@@ -135,10 +135,6 @@ VST_CONFIGURE_ENABLE=	vst
 CXXFLAGS+=	-std=c++11
 .endif
 
-post-configure:
-	${REINPLACE_CMD} -e '/SNDFILE_CFLAGS/s,%%LOCALBASE%%,${LOCALBASE},'\
-		${WRKSRC}/lib-src/libnyquist/Makefile
-
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

Added: head/audio/audacity/files/patch-Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-Makefile.am	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,23 @@
+--- Makefile.am.orig	2016-01-08 22:05:48 UTC
++++ Makefile.am
+@@ -1,4 +1,4 @@
+-SUBDIRS = help images lib-src po src tests
++SUBDIRS = help images include lib-src po src tests
+ 
+ ACLOCAL_AMFLAGS = -I m4
+ 
+@@ -8,14 +8,6 @@ dist_doc_DATA = LICENSE.txt README.txt
+ dist_pkgdata_DATA = presets/EQDefaultCurves.xml
+ 
+ nobase_dist_pkgdata_DATA = \
+-   include/audacity/ConfigInterface.h \
+-   include/audacity/EffectAutomationParameters.h \
+-   include/audacity/EffectInterface.h \
+-   include/audacity/IdentInterface.h \
+-   include/audacity/ImporterInterface.h \
+-   include/audacity/ModuleInterface.h \
+-   include/audacity/PluginInterface.h \
+-   include/audacity/Types.h \
+    nyquist/dspprims.lsp \
+    nyquist/envelopes.lsp \
+    nyquist/equalizer.lsp \

Added: head/audio/audacity/files/patch-configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-configure.ac	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,18 @@
+--- configure.ac.orig	2016-01-08 22:05:48 UTC
++++ configure.ac
+@@ -43,6 +43,7 @@ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AM_INIT_AUTOMAKE([1.9 dist-xz foreign no-dist-gzip subdir-objects -Wall -Wno-override tar-ustar])
+ AM_MAINTAINER_MODE([disable])
++AM_SILENT_RULES([yes])
+ 
+ AM_GNU_GETTEXT_VERSION([0.18])
+ AM_GNU_GETTEXT([external])
+@@ -690,6 +690,7 @@ AC_CONFIG_FILES([
+    Makefile
+    help/Makefile
+    images/Makefile
++   include/Makefile
+    lib-src/Makefile
+    po/Makefile.in
+    src/audacity.desktop

Added: head/audio/audacity/files/patch-include_Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-include_Makefile.am	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,24 @@
+--- include/Makefile.am.orig	1970-01-01 00:00:00 UTC
++++ include/Makefile.am
+@@ -0,0 +1,21 @@
++ACLOCAL_AMFLAGS=	-I m4
++
++pkginclude_HEADERS= \
++	audacity/ConfigInterface.h \
++	audacity/EffectAutomationParameters.h \
++	audacity/EffectInterface.h \
++	audacity/IdentInterface.h \
++	audacity/ImporterInterface.h \
++	audacity/ModuleInterface.h \
++	audacity/PluginInterface.h \
++	audacity/Types.h \
++	$(NULL)
++
++pkgdataincludedir=	$(pkgdatadir)/include
++
++install-data-local: install-data-include
++install-data-include:
++	$(MKDIR_P) "$(DESTDIR)$(pkgdataincludedir)"
++	$(LN_S) "$(pkgincludedir)" "$(DESTDIR)$(pkgdataincludedir)/"
++
++.PHONY: install-data-include

Added: head/audio/audacity/files/patch-lib-src_FileDialog_Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-lib-src_FileDialog_Makefile.am	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,52 @@
+--- lib-src/FileDialog/Makefile.am.orig	2016-01-08 22:05:48 UTC
++++ lib-src/FileDialog/Makefile.am
+@@ -1,5 +1,7 @@
+ ACLOCAL_AMFLAGS = -I m4
+ 
++SUBDIRS=	$(GTK_SUBDIR) $(MAC_SUBDIR) $(WINDOWS_SUBDIR)
++DIST_SUBDIRS=	gtk mac win
+ lib_LTLIBRARIES = libFileDialog.la
+ 
+ libFileDialog_la_CPPFLAGS = $(WX_CXXFLAGS) -Wno-deprecated-declarations
+@@ -7,22 +9,32 @@ libFileDialog_la_LIBADD = $(WX_LIBS)
+ libFileDialog_la_SOURCES = FileDialog.cpp FileDialog.h
+ 
+ if GTK
+-libFileDialog_la_CPPFLAGS += $(GTK_CFLAGS)
+-libFileDialog_la_LIBADD += $(GTK_LIBS)
++GTK_SUBDIR=	gtk
++libFileDialog_la_LIBADD += \
++	gtk/libFileDialog.la \
++	$(NULL)
+ libFileDialog_la_SOURCES += \
+-	gtk/FileDialogPrivate.cpp \
+ 	gtk/FileDialogPrivate.h \
+ 	$(NULL)
+ endif
+ 
+ if MAC
+-libFileDialog_la_SOURCES += mac/FileDialogPrivate.mm \
+-									 mac/FileDialogPrivate.h \
+-									 $(NULL)
++MAC_SUBDIR=	mac
++libFileDialog_la_LIBADD+= \
++	mac/libFileDialog.la \
++	$(NULL)
++libFileDialog_la_SOURCES += \
++	mac/FileDialogPrivate.h \
++	$(NULL)
++#nodist_EXTRA_libFileDialog_la_SOURCES = dummy.mm
+ endif
+ 
+ if WINDOWS
+-libFileDialog_la_SOURCES += win/FileDialogPrivate.cpp \
+-									 win/FileDialogPrivate.h \
+-									 $(NULL)
++WINDOWS_SUBDIR=	win
++libFileDialog_la_LIBADD+= \
++	win/libFileDialog.la \
++	$(NULL)
++libFileDialog_la_SOURCES += \
++	win/FileDialogPrivate.h \
++	$(NULL)
+ endif

Added: head/audio/audacity/files/patch-lib-src_FileDialog_configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-lib-src_FileDialog_configure.ac	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,11 @@
+--- lib-src/FileDialog/configure.ac.orig	2016-01-08 22:05:48 UTC
++++ lib-src/FileDialog/configure.ac
+@@ -124,7 +124,7 @@ AM_CONDITIONAL([WINDOWS], test "$IMPLEME
+ 
+ echo "Implementation to use: $IMPLEMENTATION"
+ 
+-AC_CONFIG_FILES([Makefile])
++AC_CONFIG_FILES([Makefile gtk/Makefile mac/Makefile win/Makefile])
+ 
+ #
+ # Write it all out

Added: head/audio/audacity/files/patch-lib-src_FileDialog_gtk_Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-lib-src_FileDialog_gtk_Makefile.am	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,15 @@
+--- lib-src/FileDialog/gtk/Makefile.am.orig	1970-01-01 00:00:00 UTC
++++ lib-src/FileDialog/gtk/Makefile.am
+@@ -0,0 +1,12 @@
++ACLOCAL_AMFLAGS=	-I m4
++noinst_LTLIBRARIES=	libFileDialog.la
++libFileDialog_la_CPPFLAGS= \
++	$(WX_CXXFLAGS) -Wno-deprecated-declarations \
++	$(GTK_CFLAGS)
++libFileDialog_la_LIBADD= \
++	$(WX_LIBS) \
++	$(GTK_LIBS)
++libFileDialog_la_SOURCES= \
++	FileDialogPrivate.cpp \
++	FileDialogPrivate.h \
++	$(NULL)

Added: head/audio/audacity/files/patch-lib-src_FileDialog_mac_Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-lib-src_FileDialog_mac_Makefile.am	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,13 @@
+--- lib-src/FileDialog/mac/Makefile.am.orig	1970-01-01 00:00:00 UTC
++++ lib-src/FileDialog/mac/Makefile.am
+@@ -0,0 +1,10 @@
++ACLOCAL_AMFLAGS=	-I m4
++noinst_LTLIBRARIES=	libFileDialog.la
++libFileDialog_la_CPPFLAGS= \
++	$(WX_CXXFLAGS) -Wno-deprecated-declarations
++libFileDialog_la_LIBADD= \
++	$(WX_LIBS)
++libFileDialog_la_SOURCES= \
++	FileDialogPrivate.mm \
++	FileDialogPrivate.h \
++	$(NULL)

Added: head/audio/audacity/files/patch-lib-src_FileDialog_win_Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-lib-src_FileDialog_win_Makefile.am	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,13 @@
+--- lib-src/FileDialog/win/Makefile.am.orig	1970-01-01 00:00:00 UTC
++++ lib-src/FileDialog/win/Makefile.am
+@@ -0,0 +1,10 @@
++ACLOCAL_AMFLAGS=	-I m4
++noinst_LTLIBRARIES=	libFileDialog.la
++libFileDialog_la_CPPFLAGS= \
++	$(WX_CXXFLAGS) -Wno-deprecated-declarations
++libFileDialog_la_LIBADD= \
++	$(WX_LIBS)
++libFileDialog_la_SOURCES= \
++	FileDialogPrivate.cpp \
++	FileDialogPrivate.h \
++	$(NULL)

Added: head/audio/audacity/files/patch-lib-src_libmad_configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-lib-src_libmad_configure.ac	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,33 @@
+--- lib-src/libmad/configure.ac.orig	2016-01-08 22:05:48 UTC
++++ lib-src/libmad/configure.ac
+@@ -141,22 +141,25 @@ then
+ 
+     case "$optimize" in
+ 	-O|"-O "*)
++dnl (using audio/libmad/files/patch-configure as reference)
++AC_PROG_GREP
++AS_IF([$CC -v 2>&1 | $GREP -q clang], [CLANG=yes], [CLANG=])
+ 	    optimize="-O"
+ 	    : #x optimize="$optimize -fforce-mem"
+ 	    : #x optimize="$optimize -fforce-addr"
+ 	    : #x optimize="$optimize -finline-functions"
+ 	    : #- optimize="$optimize -fstrength-reduce"
+-	    optimize="$optimize -fthread-jumps"
+-	    optimize="$optimize -fcse-follow-jumps"
+-	    optimize="$optimize -fcse-skip-blocks"
++	    if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fthread-jumps" ; fi
++	    if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fcse-follow-jumps" ; fi
++	    if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fcse-skip-blocks" ; fi
+ 	    : #x optimize="$optimize -frerun-cse-after-loop"
+ 	    : #x optimize="$optimize -frerun-loop-opt"
+ 	    : #x optimize="$optimize -fgcse"
+ 	    optimize="$optimize -fexpensive-optimizations"
+-	    optimize="$optimize -fregmove"
++	    if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fregmove" ; fi
+ 	    : #* optimize="$optimize -fdelayed-branch"
+ 	    : #x optimize="$optimize -fschedule-insns"
+-	    optimize="$optimize -fschedule-insns2"
++	    if @<:@ x$CLANG != xyes @:>@ ; then optimize="$optimize -fschedule-insns2" ; fi
+ 	    : #? optimize="$optimize -ffunction-sections"
+ 	    : #? optimize="$optimize -fcaller-saves"
+ 	    : #> optimize="$optimize -funroll-loops"

Added: head/audio/audacity/files/patch-lib-src_portaudio-v19_bindings_cpp_configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-lib-src_portaudio-v19_bindings_cpp_configure.ac	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,11 @@
+--- lib-src/portaudio-v19/bindings/cpp/configure.ac.orig	2016-01-08 22:05:48 UTC
++++ lib-src/portaudio-v19/bindings/cpp/configure.ac
+@@ -14,7 +14,7 @@ m4_define([lt_age], [0])
+ 
+ AC_INIT([PortAudioCpp], [12])
+ AC_CONFIG_SRCDIR([include/portaudiocpp/PortAudioCpp.hxx])
+-AM_INIT_AUTOMAKE
++AM_INIT_AUTOMAKE([subdir-objects])
+ AM_MAINTAINER_MODE
+ 
+ ###### Top-level directory of pacpp

Added: head/audio/audacity/files/patch-src_Makefile.am
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/audacity/files/patch-src_Makefile.am	Fri Mar 18 06:51:28 2016	(r411331)
@@ -0,0 +1,12 @@
+--- src/Makefile.am.orig	2016-01-08 22:05:48 UTC
++++ src/Makefile.am
+@@ -75,8 +75,7 @@ audacity_CPPFLAGS = \
+ #  /usr/local/include/wx-2.8/wx/buffer.h:289:9: note: in expansion of macro 'wxCHECK_RET'
+ #           wxCHECK_RET( m_bufdata->m_data, wxT("invalid wxMemoryBuffer") );
+ #           ^
+-audacity_CXXFLAGS = \
+-   -Wno-unused-local-typedefs
++audacity_CXXFLAGS =
+ 
+ audacity_LDFLAGS = -rdynamic
+ audacity_LDADD = \

Modified: head/audio/audacity/pkg-plist
==============================================================================
--- head/audio/audacity/pkg-plist	Fri Mar 18 06:47:41 2016	(r411330)
+++ head/audio/audacity/pkg-plist	Fri Mar 18 06:51:28 2016	(r411331)
@@ -1,16 +1,17 @@
 bin/audacity
+include/audacity/ConfigInterface.h
+include/audacity/EffectAutomationParameters.h
+include/audacity/EffectInterface.h
+include/audacity/IdentInterface.h
+include/audacity/ImporterInterface.h
+include/audacity/ModuleInterface.h
+include/audacity/PluginInterface.h
+include/audacity/Types.h
 man/man1/audacity.1.gz
 share/appdata/audacity.appdata.xml
 share/applications/audacity.desktop
 %%DATADIR%%/EQDefaultCurves.xml
-%%DATADIR%%/include/audacity/ConfigInterface.h
-%%DATADIR%%/include/audacity/EffectAutomationParameters.h
-%%DATADIR%%/include/audacity/EffectInterface.h
-%%DATADIR%%/include/audacity/IdentInterface.h
-%%DATADIR%%/include/audacity/ImporterInterface.h
-%%DATADIR%%/include/audacity/ModuleInterface.h
-%%DATADIR%%/include/audacity/PluginInterface.h
-%%DATADIR%%/include/audacity/Types.h
+%%DATADIR%%/include/audacity
 %%DATADIR%%/nyquist/dspprims.lsp
 %%DATADIR%%/nyquist/envelopes.lsp
 %%DATADIR%%/nyquist/equalizer.lsp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603180651.u2I6pSti014666>