openbsd-ports/www/gnash/patches/patch-configure_ac
dcoppa ca0f0d8623 Some fixes backported from upstream:
- Remove dependency on bzip2.
- Remove some OpenBSD build hacks which have been broken for quite
  awhile and are not necessary anyway.
- Update FFmpeg macro for newer versions.

From Brad.
2011-04-03 15:02:11 +00:00

47 lines
1.8 KiB
Plaintext

$OpenBSD: patch-configure_ac,v 1.3 2011/04/03 15:02:11 dcoppa Exp $
--- configure.ac.orig Fri Mar 18 09:49:55 2011
+++ configure.ac Fri Apr 1 21:34:04 2011
@@ -191,7 +191,6 @@ case "${host}" in
esac
-AM_CONDITIONAL(PLUGIN_LINK_UNDEFINED, test x$openbsd_os = xopenbsd)
AM_CONDITIONAL(WIN32, test x$windows = xyes)
AM_CONDITIONAL(HAIKU, test x$haiku = xyes)
AM_CONDITIONAL(AMIGAOS4, test x$amigaos4 = xyes)
@@ -636,7 +635,7 @@ AC_ARG_ENABLE(gui,
[ dnl Run the following code if no --enable-gui is given
build_fb=auto
build_sdl=auto
- if test x"${openbsd_os}" = x"openbsd"; then
+ if test x"${openbsd}" = xyes; then
build_gtk=yes
build_dump=auto
else if test x"${haiku}" = xyes; then
@@ -1936,11 +1935,7 @@ AC_CHECK_HEADERS(signal.h)
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(ieeefp.h)
-dnl libcurl3-dev on Ubuntu has a dependency on lber, and Gnash won't link
-dnl on most machines without it. While it isn't diretly used by Gnash at all,
-dnl it's to work around an Ubuntu packaging bug.
-AC_CHECK_LIB(lber, ber_free)
-AC_CHECK_LIB(bz2, BZ2_bzopen)
+AC_CHECK_LIB(bz2, BZ2_bzopen, [AC_SUBST(BZ2_LIBS, -lbz2)])
AC_CHECK_LIB(c, getpwnam, AC_DEFINE(HAVE_GETPWNAM, 1, [Has getpwnam] ))
dnl X11 is needed for fltk (at least),
@@ -2147,11 +2142,7 @@ AC_SUBST(WINDRES)
GNASH_PKG_FIND(z, [zlib.h], [zlib compression library], compress)
GNASH_PKG_FIND(jpeg, [jpeglib.h], [jpeg images], jpeg_mem_init)
-if test x"${openbsd_os}" = x"yes"; then
- GNASH_PKG_FIND(libpng, [png.h], [png images], png_info_init)
-else
- GNASH_PKG_FIND(png, [png.h], [png images], png_info_init)
-fi
+GNASH_PKG_FIND(png, [png.h], [png images], png_info_init)
GNASH_PKG_FIND(gif, [gif_lib.h], [gif images], DGifOpen)
if test x"${GIF_LIBS}" = x ; then
GNASH_PKG_FIND(ungif, [gif_lib.h], [gif images], DGifOpen)