pkgsrc/multimedia/tvtime/patches/patch-ai
2014-09-25 15:08:29 +00:00

61 lines
1.6 KiB
Text

$NetBSD: patch-ai,v 1.3 2014/09/25 15:08:29 jperkin Exp $
First chunk: automake-1.13 compat.
Rest: ?
--- configure.ac.orig 2005-09-14 21:40:44.000000000 +0000
+++ configure.ac
@@ -3,7 +3,7 @@ AC_PREREQ(2.52)
AC_INIT(tvtime, 1.0.2, http://tvtime.net/)
AC_CONFIG_SRCDIR([src/tvtime.c])
AM_INIT_AUTOMAKE(tvtime,1.0.2)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
if test x"$host_alias" = x""; then host_alias="$host"; fi
@@ -86,6 +86,44 @@ fi
AC_SUBST(XML2_LIBS)
AC_SUBST(XML2_FLAG)
+dnl ---------------------------------------------
+dnl librt
+dnl ---------------------------------------------
+dnl Test for librt
+AC_CHECK_LIB([rt],[sched_get_priority_max],
+ [AC_DEFINE([HAVE_LIBRT],,[librt])
+ RT_LIBS="$RT_LIBS -lrt"],,
+ [$RT_LIBS])
+if test "$HAVE_LIBRT" = "yes" ; then
+ :
+ AC_SUBST(RT_LIBS)
+fi
+
+dnl ---------------------------------------------
+dnl libossaudio
+dnl ---------------------------------------------
+dnl Test for libossaudio
+AC_CHECK_LIB([ossaudio],[_oss_ioctl],
+ [AC_DEFINE([HAVE_LIBOSSAUDIO],,[libossaudio])
+ OSS_LIBS="$OSS_LIBS -lossaudio"],,
+ [$OSS_LIBS])
+if test "$HAVE_LIBOSSAUDIO" = "yes" ; then
+ :
+ AC_SUBST(OSS_LIBS)
+fi
+
+dnl ---------------------------------------------
+dnl libintl
+dnl ---------------------------------------------
+dnl Test for libintl
+AC_CHECK_LIB([intl],[gettext],
+ [AC_DEFINE([HAVE_LIBINTL],,[libintl])
+ INTL_LIBS="$INTL_LIBS -lintl"],,
+ [$INTL_LIBS])
+if test "$HAVE_LIBINTL" = "yes" ; then
+ :
+ AC_SUBST(INTL_LIBS)
+fi
dnl ---------------------------------------------
dnl check for gtk+-2.0