public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-libs/libass/files: libass-0.9.6_automagic.patch
@ 2009-06-27  9:23 Alexis Ballier (aballier)
  0 siblings, 0 replies; only message in thread
From: Alexis Ballier (aballier) @ 2009-06-27  9:23 UTC (permalink / raw
  To: gentoo-commits

aballier    09/06/27 09:23:54

  Added:                libass-0.9.6_automagic.patch
  Log:
  version bump
  (Portage version: 2.2_rc33/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-libs/libass/files/libass-0.9.6_automagic.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libass/files/libass-0.9.6_automagic.patch?rev=1.1&view=markup
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

Index: libass-0.9.6_automagic.patch
===================================================================
Index: libass-0.9.6/configure.ac
===================================================================
--- libass-0.9.6.orig/configure.ac
+++ libass-0.9.6/configure.ac
@@ -11,13 +11,26 @@ AC_PROG_CC
 AC_PROG_CPP
 
 # Checks for libraries.
-AC_CHECK_LIB([png], [png_create_write_struct], AC_DEFINE(CONFIG_LIBPNG, 1, [use libpng]))
-AC_SEARCH_LIBS([iconv_open], [iconv], AC_DEFINE(CONFIG_ICONV, 1, [use iconv]))
-AC_CHECK_LIB([enca], [enca_analyser_alloc], [AC_DEFINE(CONFIG_ENCA, 1, [use enca])  LIBS="$LIBS -lenca"])
+AC_ARG_WITH([png], AS_HELP_STRING([--without-png], [Build without png library (default: test)]))
+if test "x$with_png" != "xno"; then
+  AC_CHECK_LIB([png], [png_create_write_struct], AC_DEFINE(CONFIG_LIBPNG, 1, [use libpng]))
+fi
+
+AC_ARG_WITH([iconv], AS_HELP_STRING([--without-iconv], [Build without iconv library (default: test)]))
+if test "x$with_iconv" != "xno"; then
+  AC_SEARCH_LIBS([iconv_open], [iconv], AC_DEFINE(CONFIG_ICONV, 1, [use iconv]))
+  AC_CHECK_HEADER([iconv.h])
+fi
+
+AC_ARG_WITH([enca], AS_HELP_STRING([--without-enca], [Build without enca library (default: test)]))
+if test "x$with_enca" != "xno"; then
+  AC_CHECK_LIB([enca], [enca_analyser_alloc], [AC_DEFINE(CONFIG_ENCA, 1, [use enca])  LIBS="$LIBS -lenca"])
+  AC_CHECK_HEADER([enca.h])
+fi
 
 # Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS([inttypes.h stdint.h stdlib.h string.h sys/time.h unistd.h iconv.h enca.h])
+AC_CHECK_HEADERS([inttypes.h stdint.h stdlib.h string.h sys/time.h unistd.h])
 
 PKG_CHECK_MODULES([FONTCONFIG], fontconfig >= 2.2.0, [
     CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-27  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-27  9:23 [gentoo-commits] gentoo-x86 commit in media-libs/libass/files: libass-0.9.6_automagic.patch Alexis Ballier (aballier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox