diff options
author | joerg <joerg@pkgsrc.org> | 2013-06-26 21:59:10 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-06-26 21:59:10 +0000 |
commit | c025eae297856a6a5350e5902d866b57c28e86ae (patch) | |
tree | 1a13afb6aebee5efc063b9c730e4bbe2ec65ae4e /multimedia/mlt | |
parent | ccec87122641cd00680df0e29f7bb0126b3dc2f1 (diff) | |
download | pkgsrc-c025eae297856a6a5350e5902d866b57c28e86ae.tar.gz |
Fix locale usage on NetBSD/current.
Diffstat (limited to 'multimedia/mlt')
-rw-r--r-- | multimedia/mlt/distinfo | 5 | ||||
-rw-r--r-- | multimedia/mlt/patches/patch-src_framework_mlt__properties.c | 22 | ||||
-rw-r--r-- | multimedia/mlt/patches/patch-src_framework_mlt__property.c | 31 | ||||
-rw-r--r-- | multimedia/mlt/patches/patch-src_framework_mlt__property.h | 15 |
4 files changed, 72 insertions, 1 deletions
diff --git a/multimedia/mlt/distinfo b/multimedia/mlt/distinfo index 13a026c92e1..063a9b2638e 100644 --- a/multimedia/mlt/distinfo +++ b/multimedia/mlt/distinfo @@ -1,7 +1,10 @@ -$NetBSD: distinfo,v 1.4 2012/11/21 22:24:27 abs Exp $ +$NetBSD: distinfo,v 1.5 2013/06/26 21:59:10 joerg Exp $ SHA1 (mlt-0.8.6.tar.gz) = 616e807ba9f8fd8d6c9f87cb04416885c471596c RMD160 (mlt-0.8.6.tar.gz) = 354130bdd1d42e55f01703d2eac25a947d86f377 Size (mlt-0.8.6.tar.gz) = 1104163 bytes SHA1 (patch-configure) = 52cc702fd561d45699bb7d5dce2b43a80fb9d474 +SHA1 (patch-src_framework_mlt__properties.c) = b8113fc58f0dce0d70cb4a0ba7534723e7924ad5 +SHA1 (patch-src_framework_mlt__property.c) = 61ea83f6d20c139741d5bb95456f0d1a4a9b3fa4 +SHA1 (patch-src_framework_mlt__property.h) = b6aec829f7f9f876711984c2edaba245a968e90d SHA1 (patch-src_modules_videostab_stab_estimate.c) = 58549c2ee2780604c043637a25dd39e92f90b7ce diff --git a/multimedia/mlt/patches/patch-src_framework_mlt__properties.c b/multimedia/mlt/patches/patch-src_framework_mlt__properties.c new file mode 100644 index 00000000000..1b4f89c265c --- /dev/null +++ b/multimedia/mlt/patches/patch-src_framework_mlt__properties.c @@ -0,0 +1,22 @@ +$NetBSD: patch-src_framework_mlt__properties.c,v 1.1 2013/06/26 21:59:10 joerg Exp $ + +--- src/framework/mlt_properties.c.orig 2013-06-26 21:38:59.000000000 +0000 ++++ src/framework/mlt_properties.c +@@ -138,7 +138,7 @@ int mlt_properties_set_lcnumeric( mlt_pr + { + property_list *list = self->local; + +-#if defined(__linux__) || defined(__DARWIN__) ++#if defined(__linux__) || defined(__DARWIN__) || (defined(__NetBSD__) && defined(LC_C_LOCALE)) + if ( list->locale ) + freelocale( list->locale ); + list->locale = newlocale( LC_NUMERIC_MASK, locale, NULL ); +@@ -1332,7 +1332,7 @@ void mlt_properties_close( mlt_propertie + free( list->name[ index ] ); + } + +-#if defined(__linux__) || defined(__DARWIN__) ++#if defined(__linux__) || defined(__DARWIN__) || (defined(__NetBSD__) && defined(LC_C_LOCALE)) + // Cleanup locale + if ( list->locale ) + freelocale( list->locale ); diff --git a/multimedia/mlt/patches/patch-src_framework_mlt__property.c b/multimedia/mlt/patches/patch-src_framework_mlt__property.c new file mode 100644 index 00000000000..be00a59a17d --- /dev/null +++ b/multimedia/mlt/patches/patch-src_framework_mlt__property.c @@ -0,0 +1,31 @@ +$NetBSD: patch-src_framework_mlt__property.c,v 1.1 2013/06/26 21:59:10 joerg Exp $ + +--- src/framework/mlt_property.c.orig 2013-06-26 21:38:25.000000000 +0000 ++++ src/framework/mlt_property.c +@@ -282,7 +282,7 @@ static int time_clock_to_frames( const c + s = copy; + pos = strrchr( s, ':' ); + if ( pos ) { +-#if defined(__GLIBC__) || defined(__DARWIN__) ++#if defined(__GLIBC__) || defined(__DARWIN__) || (defined(__NetBSD__) && defined(LC_C_LOCALE)) + if ( locale ) + seconds = strtod_l( pos + 1, NULL, locale ); + else +@@ -300,7 +300,7 @@ static int time_clock_to_frames( const c + } + } + else { +-#if defined(__GLIBC__) || defined(__DARWIN__) ++#if defined(__GLIBC__) || defined(__DARWIN__) || (defined(__NetBSD__) && defined(LC_C_LOCALE)) + if ( locale ) + seconds = strtod_l( s, NULL, locale ); + else +@@ -455,7 +455,7 @@ static double mlt_property_atof( const c + } + else + { +-#if defined(__GLIBC__) || defined(__DARWIN__) ++#if defined(__GLIBC__) || defined(__DARWIN__) || (defined(__NetBSD__) && defined(LC_C_LOCALE)) + if ( locale ) + return strtod_l( value, NULL, locale ); + #endif diff --git a/multimedia/mlt/patches/patch-src_framework_mlt__property.h b/multimedia/mlt/patches/patch-src_framework_mlt__property.h new file mode 100644 index 00000000000..5cc7ecd7a39 --- /dev/null +++ b/multimedia/mlt/patches/patch-src_framework_mlt__property.h @@ -0,0 +1,15 @@ +$NetBSD: patch-src_framework_mlt__property.h,v 1.1 2013/06/26 21:59:10 joerg Exp $ + +--- src/framework/mlt_property.h.orig 2013-06-26 21:36:42.000000000 +0000 ++++ src/framework/mlt_property.h +@@ -31,8 +31,10 @@ + #include <sys/param.h> + #endif + ++#include <locale.h> + #if defined(__GLIBC__) || defined(__DARWIN__) || (__FreeBSD_version >= 900506) + #include <xlocale.h> ++#elif defined(__NetBSD__) && defined(LC_C_LOCALE) + #else + typedef void* locale_t; + #endif |