1 |
radhermit 12/11/27 07:35:52 |
2 |
|
3 |
Added: rtaudio-4.0.11-cflags.patch |
4 |
rtaudio-4.0.11-makefile.patch |
5 |
rtaudio-4.0.11-configure.patch |
6 |
Log: |
7 |
Initial import, ebuild by me. |
8 |
|
9 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 media-libs/rtaudio/files/rtaudio-4.0.11-cflags.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/rtaudio/files/rtaudio-4.0.11-cflags.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/rtaudio/files/rtaudio-4.0.11-cflags.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: rtaudio-4.0.11-cflags.patch |
18 |
=================================================================== |
19 |
--- rtaudio-4.0.11/configure.ac |
20 |
+++ rtaudio-4.0.11/configure.ac |
21 |
@@ -23,8 +23,8 @@ |
22 |
AC_MSG_CHECKING(whether to compile debug version) |
23 |
AC_ARG_ENABLE(debug, |
24 |
[ --enable-debug = enable various debug output], |
25 |
- [AC_SUBST( cppflag, [-D__RTAUDIO_DEBUG__] ) AC_SUBST( cxxflag, [-g] ) AC_SUBST( object_path, [Debug] ) AC_MSG_RESULT(yes)], |
26 |
- [AC_SUBST( cppflag, [] ) AC_SUBST( cxxflag, [-O2] ) AC_SUBST( object_path, [Release] ) AC_MSG_RESULT(no)]) |
27 |
+ [AC_SUBST( cppflag, [-D__RTAUDIO_DEBUG__] ) AC_SUBST( object_path, [Debug] ) AC_MSG_RESULT(yes)], |
28 |
+ [AC_SUBST( cppflag, [] ) AC_SUBST( object_path, [Release] ) AC_MSG_RESULT(no)]) |
29 |
|
30 |
|
31 |
# Checks for functions |
32 |
@@ -33,10 +33,6 @@ |
33 |
# For -I and -D flags |
34 |
CPPFLAGS="$CPPFLAGS $cppflag" |
35 |
|
36 |
-# For debugging and optimization ... overwrite default because it has both -g and -O2 |
37 |
-#CXXFLAGS="$CXXFLAGS $cxxflag" |
38 |
-CXXFLAGS="$cxxflag" |
39 |
- |
40 |
# Check compiler and use -Wall if gnu. |
41 |
if [test $GXX = "yes" ;] then |
42 |
AC_SUBST( cxxflag, [-Wall] ) |
43 |
|
44 |
|
45 |
|
46 |
1.1 media-libs/rtaudio/files/rtaudio-4.0.11-makefile.patch |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/rtaudio/files/rtaudio-4.0.11-makefile.patch?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/rtaudio/files/rtaudio-4.0.11-makefile.patch?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: rtaudio-4.0.11-makefile.patch |
52 |
=================================================================== |
53 |
--- rtaudio-4.0.11/Makefile.in |
54 |
+++ rtaudio-4.0.11/Makefile.in |
55 |
@@ -24,13 +24,14 @@ |
56 |
tests: |
57 |
cd tests && $(MAKE) all |
58 |
|
59 |
-$(LIBRARIES): $(OBJECTS) |
60 |
+$(STATIC): $(OBJECTS) |
61 |
$(AR) ruv $(STATIC) $(OBJECTS) |
62 |
- ranlib $(STATIC) |
63 |
+ $(RANLIB) $(STATIC) |
64 |
+ |
65 |
+$(SHARED): $(OBJECTS) |
66 |
$(CC) -fPIC @libflags@ $(OBJECTS) @LIBS@ |
67 |
$(LN) -s @sharedname@ $(SHARED) |
68 |
- |
69 |
-# $(CC) -shared $(OBJECTS) -o $(SHARED) @LIBS@ |
70 |
+ $(LN) -s @sharedname@ $(SHARED).$(MAJOR) |
71 |
|
72 |
%.o : %.cpp |
73 |
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $@ |
74 |
|
75 |
|
76 |
|
77 |
1.1 media-libs/rtaudio/files/rtaudio-4.0.11-configure.patch |
78 |
|
79 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/rtaudio/files/rtaudio-4.0.11-configure.patch?rev=1.1&view=markup |
80 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/rtaudio/files/rtaudio-4.0.11-configure.patch?rev=1.1&content-type=text/plain |
81 |
|
82 |
Index: rtaudio-4.0.11-configure.patch |
83 |
=================================================================== |
84 |
--- rtaudio-4.0.11/configure.ac |
85 |
+++ rtaudio-4.0.11/configure.ac |
86 |
@@ -68,28 +68,40 @@ |
87 |
;; |
88 |
|
89 |
*-*-linux*) |
90 |
- AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (mac and linux only)], [ |
91 |
+ AC_ARG_WITH([jack], AS_HELP_STRING([--with-jack], [choose JACK server support (mac and linux only)])) |
92 |
+ |
93 |
+ AS_IF([test "x$with_jack" != "xno"], [ |
94 |
api="$api -D__UNIX_JACK__" |
95 |
AC_MSG_RESULT(using JACK) |
96 |
AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!)) |
97 |
- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(Jack support also requires the asound library!))], ) |
98 |
+ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(Jack support also requires the asound library!)) |
99 |
+ ]) |
100 |
|
101 |
# Look for ALSA flag |
102 |
- AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)], [ |
103 |
+ AC_ARG_WITH([alsa], AS_HELP_STRING([--with-alsa], [choose native ALSA API support (linux only)])) |
104 |
+ |
105 |
+ AS_IF([test "x$with_alsa" != "xno"], [ |
106 |
api="$api -D__LINUX_ALSA__" |
107 |
AC_MSG_RESULT(using ALSA) |
108 |
- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))], ) |
109 |
+ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!)) |
110 |
+ ]) |
111 |
|
112 |
# Look for PULSE flag |
113 |
- AC_ARG_WITH(pulse, [ --with-pulse = choose PulseAudio API support (linux only)], [ |
114 |
+ AC_ARG_WITH([pulse], AS_HELP_STRING([--with-pulse], [choose PulseAudio API support (linux only)])) |
115 |
+ |
116 |
+ AS_IF([test "x$with_pulse" != "xno"], [ |
117 |
api="$api -D__LINUX_PULSE__" |
118 |
AC_MSG_RESULT(using PulseAudio) |
119 |
- AC_CHECK_LIB(pulse-simple, pa_simple_new, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))], ) |
120 |
+ AC_CHECK_LIB(pulse-simple, pa_simple_new, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!)) |
121 |
+ ]) |
122 |
|
123 |
# Look for OSS flag |
124 |
- AC_ARG_WITH(oss, [ --with-oss = choose OSS API support (linux only)], [ |
125 |
+ AC_ARG_WITH([oss], AS_HELP_STRING([--with-oss], [choose OSS API support (linux only)])) |
126 |
+ |
127 |
+ AS_IF([test "x$with_oss" != "xno"], [ |
128 |
api="$api -D__LINUX_OSS__" |
129 |
- AC_MSG_RESULT(using OSS)], ) |
130 |
+ AC_MSG_RESULT(using OSS) |
131 |
+ ]) |
132 |
|
133 |
# If no audio api flags specified, use ALSA |
134 |
if [test "$api" == "";] then |