Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/timidity++/files: timidity++-2.14.0-configure-flags.patch
Date: Tue, 29 Apr 2014 02:45:24
Message-Id: 20140429024518.E6A982004C@flycatcher.gentoo.org
1 vapier 14/04/29 02:45:18
2
3 Added: timidity++-2.14.0-configure-flags.patch
4 Log:
5 Drop bad/unnecessary -I/-L flags that default to /usr/lib for most people.
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
8
9 Revision Changes Path
10 1.1 media-sound/timidity++/files/timidity++-2.14.0-configure-flags.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/timidity++/files/timidity++-2.14.0-configure-flags.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/timidity++/files/timidity++-2.14.0-configure-flags.patch?rev=1.1&content-type=text/plain
14
15 Index: timidity++-2.14.0-configure-flags.patch
16 ===================================================================
17 do not add -L/-I flags pointing to the paths given by --prefix.
18 there's no need and it breaks multilib and cross-compiling.
19
20 patch by Mike Frysinger <vapier@g.o>
21
22 --- a/autoconf/libFLAC.m4
23 +++ b/autoconf/libFLAC.m4
24 @@ -25,24 +25,8 @@ AC_ARG_ENABLE(libFLACtest,
25 [Do not try to compile and run a test libFLAC program]),,
26 [enable_libFLACtest=yes])
27
28 - if test "x$libFLAC_libraries" != "x" ; then
29 - LIBFLAC_LIBS="-L$libFLAC_libraries"
30 - elif test "x$libFLAC_prefix" != "x" ; then
31 - LIBFLAC_LIBS="-L$libFLAC_prefix/lib"
32 - elif test "x$prefix" != "xNONE" ; then
33 - LIBFLAC_LIBS="-L$prefix/lib"
34 - fi
35 -
36 LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
37
38 - if test "x$libFLAC_includes" != "x" ; then
39 - LIBFLAC_CFLAGS="-I$libFLAC_includes"
40 - elif test "x$libFLAC_prefix" != "x" ; then
41 - LIBFLAC_CFLAGS="-I$libFLAC_prefix/include"
42 - elif test "$prefix" != "xNONE"; then
43 - LIBFLAC_CFLAGS="-I$prefix/include"
44 - fi
45 -
46 AC_MSG_CHECKING(for libFLAC)
47 no_libFLAC=""
48
49 --- a/autoconf/libOggFLAC.m4
50 +++ b/autoconf/libOggFLAC.m4
51 @@ -25,24 +25,8 @@ AC_ARG_ENABLE(libOggFLACtest,
52 [Do not try to compile and run a test libOggFLAC program]),,
53 [enable_libOggFLACtest=yes])
54
55 - if test "x$libOggFLAC_libraries" != "x" ; then
56 - LIBOGGFLAC_LIBS="-L$libOggFLAC_libraries"
57 - elif test "x$libOggFLAC_prefix" != "x" ; then
58 - LIBOGGFLAC_LIBS="-L$libOggFLAC_prefix/lib"
59 - elif test "x$prefix" != "xNONE" ; then
60 - LIBOGGFLAC_LIBS="-L$prefix/lib"
61 - fi
62 -
63 LIBOGGFLAC_LIBS="$LIBOGGFLAC_LIBS -lOggFLAC -lFLAC -lm"
64
65 - if test "x$libOggFLAC_includes" != "x" ; then
66 - LIBOGGFLAC_CFLAGS="-I$libOggFLAC_includes"
67 - elif test "x$libOggFLAC_prefix" != "x" ; then
68 - LIBOGGFLAC_CFLAGS="-I$libOggFLAC_prefix/include"
69 - elif test "$prefix" != "xNONE"; then
70 - LIBOGGFLAC_CFLAGS="-I$prefix/include"
71 - fi
72 -
73 AC_MSG_CHECKING(for libOggFLAC)
74 no_libOggFLAC=""
75
76 --- a/autoconf/ogg.m4
77 +++ b/autoconf/ogg.m4
78 @@ -26,24 +26,8 @@ AC_ARG_ENABLE(oggtest,
79 [Do not try to compile and run a test Ogg program]),,
80 [enable_oggtest=yes])
81
82 - if test "x$ogg_libraries" != "x" ; then
83 - OGG_LIBS="-L$ogg_libraries"
84 - elif test "x$ogg_prefix" != "x" ; then
85 - OGG_LIBS="-L$ogg_prefix/lib"
86 - elif test "x$prefix" != "xNONE" ; then
87 - OGG_LIBS="-L$prefix/lib"
88 - fi
89 -
90 OGG_LIBS="$OGG_LIBS -logg"
91
92 - if test "x$ogg_includes" != "x" ; then
93 - OGG_CFLAGS="-I$ogg_includes"
94 - elif test "x$ogg_prefix" != "x" ; then
95 - OGG_CFLAGS="-I$ogg_prefix/include"
96 - elif test "x$prefix" != "xNONE"; then
97 - OGG_CFLAGS="-I$prefix/include"
98 - fi
99 -
100 AC_MSG_CHECKING(for Ogg)
101 no_ogg=""
102
103 --- a/autoconf/vorbis.m4
104 +++ b/autoconf/vorbis.m4
105 @@ -27,27 +27,10 @@ AC_ARG_ENABLE(vorbistest,
106 [Do not try to compile and run a test Vorbis program]),
107 , [enable_vorbistest=yes])
108
109 - if test "x$vorbis_libraries" != "x" ; then
110 - VORBIS_LIBS="-L$vorbis_libraries"
111 - elif test "x$vorbis_prefix" != "x" ; then
112 - VORBIS_LIBS="-L$vorbis_prefix/lib"
113 - elif test "x$prefix" != "xNONE"; then
114 - VORBIS_LIBS="-L$prefix/lib"
115 - fi
116 -
117 VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
118 VORBISFILE_LIBS="-lvorbisfile"
119 VORBISENC_LIBS="-lvorbisenc"
120
121 - if test "x$vorbis_includes" != "x" ; then
122 - VORBIS_CFLAGS="-I$vorbis_includes"
123 - elif test "x$vorbis_prefix" != "x" ; then
124 - VORBIS_CFLAGS="-I$vorbis_prefix/include"
125 - elif test "x$prefix" != "xNONE"; then
126 - VORBIS_CFLAGS="-I$prefix/include"
127 - fi
128 -
129 -
130 AC_MSG_CHECKING(for Vorbis)
131 no_vorbis=""
132
133 --- a/configure.in
134 +++ b/configure.in
135 @@ -91,21 +91,6 @@ else
136 x_config_flag=yes
137 fi
138
139 -# Checking gcc environment
140 -for i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do
141 - LDFLAGS="$LDFLAGS -L${i}"
142 -done
143 -for i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do
144 - CPPFLAGS="$CPPFLAGS -I${i}"
145 -done
146 -
147 -# add $prefix if specified.
148 -if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then
149 - LDFLAGS="-L$prefix/lib $LDFLAGS"
150 - SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"
151 - CPPFLAGS="-I$prefix/include $CPPFLAGS"
152 -fi
153 -
154 dnl add --with-includes, --with-libraries
155 AC_ARG_WITH(includes,
156 AS_HELP_STRING([--with-includes=DIR], [Specify include directories (colon separated)]),