1 |
aballier 09/06/27 09:23:54 |
2 |
|
3 |
Added: libass-0.9.6_automagic.patch |
4 |
Log: |
5 |
version bump |
6 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-libs/libass/files/libass-0.9.6_automagic.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libass/files/libass-0.9.6_automagic.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libass/files/libass-0.9.6_automagic.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: libass-0.9.6_automagic.patch |
15 |
=================================================================== |
16 |
Index: libass-0.9.6/configure.ac |
17 |
=================================================================== |
18 |
--- libass-0.9.6.orig/configure.ac |
19 |
+++ libass-0.9.6/configure.ac |
20 |
@@ -11,13 +11,26 @@ AC_PROG_CC |
21 |
AC_PROG_CPP |
22 |
|
23 |
# Checks for libraries. |
24 |
-AC_CHECK_LIB([png], [png_create_write_struct], AC_DEFINE(CONFIG_LIBPNG, 1, [use libpng])) |
25 |
-AC_SEARCH_LIBS([iconv_open], [iconv], AC_DEFINE(CONFIG_ICONV, 1, [use iconv])) |
26 |
-AC_CHECK_LIB([enca], [enca_analyser_alloc], [AC_DEFINE(CONFIG_ENCA, 1, [use enca]) LIBS="$LIBS -lenca"]) |
27 |
+AC_ARG_WITH([png], AS_HELP_STRING([--without-png], [Build without png library (default: test)])) |
28 |
+if test "x$with_png" != "xno"; then |
29 |
+ AC_CHECK_LIB([png], [png_create_write_struct], AC_DEFINE(CONFIG_LIBPNG, 1, [use libpng])) |
30 |
+fi |
31 |
+ |
32 |
+AC_ARG_WITH([iconv], AS_HELP_STRING([--without-iconv], [Build without iconv library (default: test)])) |
33 |
+if test "x$with_iconv" != "xno"; then |
34 |
+ AC_SEARCH_LIBS([iconv_open], [iconv], AC_DEFINE(CONFIG_ICONV, 1, [use iconv])) |
35 |
+ AC_CHECK_HEADER([iconv.h]) |
36 |
+fi |
37 |
+ |
38 |
+AC_ARG_WITH([enca], AS_HELP_STRING([--without-enca], [Build without enca library (default: test)])) |
39 |
+if test "x$with_enca" != "xno"; then |
40 |
+ AC_CHECK_LIB([enca], [enca_analyser_alloc], [AC_DEFINE(CONFIG_ENCA, 1, [use enca]) LIBS="$LIBS -lenca"]) |
41 |
+ AC_CHECK_HEADER([enca.h]) |
42 |
+fi |
43 |
|
44 |
# Checks for header files. |
45 |
AC_HEADER_STDC |
46 |
-AC_CHECK_HEADERS([inttypes.h stdint.h stdlib.h string.h sys/time.h unistd.h iconv.h enca.h]) |
47 |
+AC_CHECK_HEADERS([inttypes.h stdint.h stdlib.h string.h sys/time.h unistd.h]) |
48 |
|
49 |
PKG_CHECK_MODULES([FONTCONFIG], fontconfig >= 2.2.0, [ |
50 |
CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS" |