aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ardour/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-03-19 06:11:38 +0800
committermiwi <miwi@FreeBSD.org>2007-03-19 06:11:38 +0800
commit59b0d083b4b48ccb6c9146ac73cb79c3b2597848 (patch)
tree54907b376e73fcbff0343bc3aedf7ab10b6df475 /audio/ardour/files
parentf4efc9c0f57293a399d1bc619996b48b89757d68 (diff)
downloadfreebsd-ports-gnome-59b0d083b4b48ccb6c9146ac73cb79c3b2597848.tar.gz
freebsd-ports-gnome-59b0d083b4b48ccb6c9146ac73cb79c3b2597848.tar.zst
freebsd-ports-gnome-59b0d083b4b48ccb6c9146ac73cb79c3b2597848.zip
- Update to 2.0.b12
PR: 110473 Submitted by: trasz (maintainer)
Diffstat (limited to 'audio/ardour/files')
-rw-r--r--audio/ardour/files/patch-SConstruct18
-rw-r--r--audio/ardour/files/patch-gtk2_ardour-ardour_ui.cc33
2 files changed, 42 insertions, 9 deletions
diff --git a/audio/ardour/files/patch-SConstruct b/audio/ardour/files/patch-SConstruct
index 0d6e40912e10..6fbc57172bc0 100644
--- a/audio/ardour/files/patch-SConstruct
+++ b/audio/ardour/files/patch-SConstruct
@@ -1,5 +1,5 @@
---- SConstruct.orig Wed Jan 17 22:13:21 2007
-+++ SConstruct Wed Jan 17 22:55:30 2007
+--- SConstruct.orig Fri Mar 16 22:45:44 2007
++++ SConstruct Sun Mar 18 09:53:00 2007
@@ -38,7 +38,7 @@
BoolOption('FPU_OPTIMIZATION', 'Build runtime checked assembler code', 1),
BoolOption('LIBLO', 'Compile with support for liblo library', 1),
@@ -8,8 +8,8 @@
+ PathOption('PREFIX', 'Set the install "prefix"', '/usr/local', PathOption.PathIsDirCreate),
BoolOption('SURFACES', 'Build support for control surfaces', 1),
BoolOption('SYSLIBS', 'USE AT YOUR OWN RISK: CANCELS ALL SUPPORT FROM ARDOUR AUTHORS: Use existing system versions of various libraries instead of internal ones', 0),
- BoolOption('VERSIONED', 'Add revision information to ardour/gtk executable name inside the build directory', 0),
-@@ -655,13 +655,7 @@
+ BoolOption('UNIVERSAL', 'Compile as universal binary. Requires that external libraries are already universal.', 0),
+@@ -660,13 +660,7 @@
# prepend boiler plate optimization flags
#
@@ -18,13 +18,13 @@
- "-fomit-frame-pointer",
- "-ffast-math",
- "-fstrength-reduce",
-- "-fno-strict-aliasing"
+- "-pipe"
- ]
+opt_flags[:0] = [ "%%CFLAGS%%" ];
if env['DEBUG'] == 1:
env.Append(CCFLAGS=" ".join (debug_flags))
-@@ -742,9 +736,9 @@
+@@ -754,9 +748,9 @@
prep_libcheck(env, libraries['lo'])
conf = Configure (libraries['lo'])
@@ -37,7 +37,7 @@
libraries['lo'] = conf.Finish ()
-@@ -784,8 +778,10 @@
+@@ -796,8 +790,10 @@
subst_dict['%MIDITAG%'] = "ardour"
subst_dict['%MIDITYPE%'] = "coremidi"
else:
@@ -50,7 +50,7 @@
env = conf.Finish()
-@@ -1006,33 +1002,33 @@
+@@ -1021,33 +1017,33 @@
# i18n support
#
@@ -111,7 +111,7 @@
if env['NLS'] == 1:
env.Append(CCFLAGS="-DENABLE_NLS")
-@@ -1049,8 +1045,8 @@
+@@ -1064,8 +1060,8 @@
subst_dict['%JACK_INPUT%'] = "coreaudio:Built-in Audio:in"
subst_dict['%JACK_OUTPUT%'] = "coreaudio:Built-in Audio:out"
else:
diff --git a/audio/ardour/files/patch-gtk2_ardour-ardour_ui.cc b/audio/ardour/files/patch-gtk2_ardour-ardour_ui.cc
new file mode 100644
index 000000000000..773d810b8899
--- /dev/null
+++ b/audio/ardour/files/patch-gtk2_ardour-ardour_ui.cc
@@ -0,0 +1,33 @@
+--- gtk2_ardour/ardour_ui.cc.orig Sat Mar 17 02:55:45 2007
++++ gtk2_ardour/ardour_ui.cc Sun Mar 18 14:44:03 2007
+@@ -28,6 +28,8 @@
+ #include <iostream>
+
+ #include <sys/resource.h>
++#include <sys/types.h>
++#include <sys/sysctl.h>
+
+ #include <gtkmm/messagedialog.h>
+ #include <gtkmm/accelmap.h>
+@@ -456,8 +458,11 @@
+ struct rlimit limits;
+ int64_t ram;
+ long pages, page_size;
++ size_t pages_len=sizeof(pages);
++
++ if ((page_size = getpagesize()) < 0 ||
++ sysctlbyname("hw.availpages", &pages, &pages_len, NULL, 0)) {
+
+- if ((page_size = sysconf (_SC_PAGESIZE)) < 0 ||(pages = sysconf (_SC_PHYS_PAGES)) < 0) {
+ ram = 0;
+ } else {
+ ram = (int64_t) pages * (int64_t) page_size;
+@@ -476,7 +481,7 @@
+ "This might cause Ardour to run out of memory before your system "
+ "runs out of memory. \n\n"
+ "You can view the memory limit with 'ulimit -l', "
+- "and it is normally controlled by /etc/security/limits.conf"));
++ "and it is normally controlled by /etc/login.conf"));
+
+ VBox* vbox = msg.get_vbox();
+ HBox hbox;