diff options
author | naddy <naddy@FreeBSD.org> | 2002-07-19 22:10:42 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2002-07-19 22:10:42 +0800 |
commit | 9cfffd00839faa02f2a2cb19dc6d14f2effb863f (patch) | |
tree | a6879939fa4278dd8f7c9cfcf386e55373a1ca6f /audio | |
parent | 99dcf2e2bf1e2953746e64d311e43277f13e4dac (diff) | |
download | freebsd-ports-gnome-9cfffd00839faa02f2a2cb19dc6d14f2effb863f.tar.gz freebsd-ports-gnome-9cfffd00839faa02f2a2cb19dc6d14f2effb863f.tar.zst freebsd-ports-gnome-9cfffd00839faa02f2a2cb19dc6d14f2effb863f.zip |
Remove kludge and fix -lintl detection.
Approved by: maintainer
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gqmpeg-devel/Makefile | 5 | ||||
-rw-r--r-- | audio/gqmpeg-devel/files/patch-aclocal.m4 | 46 | ||||
-rw-r--r-- | audio/gqmpeg/Makefile | 5 | ||||
-rw-r--r-- | audio/gqmpeg/files/patch-aclocal.m4 | 46 |
4 files changed, 94 insertions, 8 deletions
diff --git a/audio/gqmpeg-devel/Makefile b/audio/gqmpeg-devel/Makefile index e5b01ee67ce9..ed0042a839c6 100644 --- a/audio/gqmpeg-devel/Makefile +++ b/audio/gqmpeg-devel/Makefile @@ -47,11 +47,8 @@ pre-everything:: @${ECHO_MSG} .endif -post-patch: - @${FIND} ${WRKSRC} -name 'Makefile.in*' | ${XARGS} ${REINPLACE_CMD} \ - -E -e 's|(SUBDIRS[[:space:]]+=.*)intl|\1| ; \ - s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ;' .if defined(WITH_MPG321) +post-patch: @${REINPLACE_CMD} -E -e \ 's/^(#define MPG123_BINARY "mpg)123"/\1321"/' \ ${WRKSRC}/src/io_mpg123.c diff --git a/audio/gqmpeg-devel/files/patch-aclocal.m4 b/audio/gqmpeg-devel/files/patch-aclocal.m4 new file mode 100644 index 000000000000..d9d89fd88eee --- /dev/null +++ b/audio/gqmpeg-devel/files/patch-aclocal.m4 @@ -0,0 +1,46 @@ + +$FreeBSD$ + +--- aclocal.m4.orig Wed Jul 17 20:48:30 2002 ++++ aclocal.m4 Thu Jul 18 16:38:49 2002 +@@ -545,7 +545,7 @@ + rm -f conf.gdk_pixbuftest + ]) + +-# gettext.m4 serial 13 (gettext-0.11.1) ++# gettext.m4 serial 14 (gettext-0.11.2) + dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. + dnl This file is free software, distributed under the terms of the GNU + dnl General Public License. As a special exception to the GNU General +@@ -689,14 +689,13 @@ + dnl Now see whether libintl exists and does not depend on libiconv. + AC_TRY_LINK([#include <libintl.h> + extern int _nl_msg_cat_cntr; +-extern int *_nl_domain_bindings; + extern + #ifdef __cplusplus + "C" + #endif + const char *_nl_expand_alias ();], + [bindtextdomain ("", ""); +-return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)], ++return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], + gt_cv_func_gnugettext_libintl=yes, + gt_cv_func_gnugettext_libintl=no) + dnl Now see whether libintl exists and depends on libiconv. +@@ -704,14 +703,13 @@ + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include <libintl.h> + extern int _nl_msg_cat_cntr; +-extern int *_nl_domain_bindings; + extern + #ifdef __cplusplus + "C" + #endif + const char *_nl_expand_alias ();], + [bindtextdomain ("", ""); +-return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)], ++return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + gt_cv_func_gnugettext_libintl=yes diff --git a/audio/gqmpeg/Makefile b/audio/gqmpeg/Makefile index e5b01ee67ce9..ed0042a839c6 100644 --- a/audio/gqmpeg/Makefile +++ b/audio/gqmpeg/Makefile @@ -47,11 +47,8 @@ pre-everything:: @${ECHO_MSG} .endif -post-patch: - @${FIND} ${WRKSRC} -name 'Makefile.in*' | ${XARGS} ${REINPLACE_CMD} \ - -E -e 's|(SUBDIRS[[:space:]]+=.*)intl|\1| ; \ - s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ;' .if defined(WITH_MPG321) +post-patch: @${REINPLACE_CMD} -E -e \ 's/^(#define MPG123_BINARY "mpg)123"/\1321"/' \ ${WRKSRC}/src/io_mpg123.c diff --git a/audio/gqmpeg/files/patch-aclocal.m4 b/audio/gqmpeg/files/patch-aclocal.m4 new file mode 100644 index 000000000000..d9d89fd88eee --- /dev/null +++ b/audio/gqmpeg/files/patch-aclocal.m4 @@ -0,0 +1,46 @@ + +$FreeBSD$ + +--- aclocal.m4.orig Wed Jul 17 20:48:30 2002 ++++ aclocal.m4 Thu Jul 18 16:38:49 2002 +@@ -545,7 +545,7 @@ + rm -f conf.gdk_pixbuftest + ]) + +-# gettext.m4 serial 13 (gettext-0.11.1) ++# gettext.m4 serial 14 (gettext-0.11.2) + dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. + dnl This file is free software, distributed under the terms of the GNU + dnl General Public License. As a special exception to the GNU General +@@ -689,14 +689,13 @@ + dnl Now see whether libintl exists and does not depend on libiconv. + AC_TRY_LINK([#include <libintl.h> + extern int _nl_msg_cat_cntr; +-extern int *_nl_domain_bindings; + extern + #ifdef __cplusplus + "C" + #endif + const char *_nl_expand_alias ();], + [bindtextdomain ("", ""); +-return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)], ++return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], + gt_cv_func_gnugettext_libintl=yes, + gt_cv_func_gnugettext_libintl=no) + dnl Now see whether libintl exists and depends on libiconv. +@@ -704,14 +703,13 @@ + LIBS="$LIBS $LIBICONV" + AC_TRY_LINK([#include <libintl.h> + extern int _nl_msg_cat_cntr; +-extern int *_nl_domain_bindings; + extern + #ifdef __cplusplus + "C" + #endif + const char *_nl_expand_alias ();], + [bindtextdomain ("", ""); +-return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)], ++return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + gt_cv_func_gnugettext_libintl=yes |