mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
Conditionally enable the initial thread stacksize hack on systems that need
it.
This commit is contained in:
parent
4edaccecdb
commit
ff33f00db0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=130976
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= gstreamer
|
||||
PORTVERSION= 0.8.9
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME} \
|
||||
http://gstreamer.freedesktop.org/src/gstreamer/
|
||||
@ -51,9 +52,15 @@ GST_VERSION=${PORTVERSION:C/..$//}
|
||||
# library minor number
|
||||
SHLIB_VERSION= 5
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 600012
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-gst::cothreads.c
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
# register plugins
|
||||
-@${PREFIX}/bin/gst-register-${GST_VERSION} \
|
||||
--gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${GST_VERSION}/registry.xml 2>/dev/null
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
11
multimedia/gstreamer/files/extra-patch-gst::cothreads.c
Normal file
11
multimedia/gstreamer/files/extra-patch-gst::cothreads.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gst/cothreads.c.orig Mon Feb 2 06:56:53 2004
|
||||
+++ gst/cothreads.c Fri Feb 6 13:05:26 2004
|
||||
@@ -52,7 +56,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#define STACK_SIZE 0x200000
|
||||
+#define STACK_SIZE 0x100000
|
||||
|
||||
#define COTHREAD_MAGIC_NUMBER 0xabcdef
|
||||
|
@ -11,12 +11,3 @@
|
||||
#ifndef MAP_ANONYMOUS
|
||||
#ifdef MAP_ANON
|
||||
/* older glibc's have MAP_ANON instead of MAP_ANONYMOUS */
|
||||
@@ -52,7 +56,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#define STACK_SIZE 0x200000
|
||||
+#define STACK_SIZE 0x100000
|
||||
|
||||
#define COTHREAD_MAGIC_NUMBER 0xabcdef
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= gstreamer
|
||||
PORTVERSION= 0.8.9
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME} \
|
||||
http://gstreamer.freedesktop.org/src/gstreamer/
|
||||
@ -51,9 +52,15 @@ GST_VERSION=${PORTVERSION:C/..$//}
|
||||
# library minor number
|
||||
SHLIB_VERSION= 5
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 600012
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-gst::cothreads.c
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
# register plugins
|
||||
-@${PREFIX}/bin/gst-register-${GST_VERSION} \
|
||||
--gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${GST_VERSION}/registry.xml 2>/dev/null
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
11
multimedia/gstreamer80/files/extra-patch-gst::cothreads.c
Normal file
11
multimedia/gstreamer80/files/extra-patch-gst::cothreads.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gst/cothreads.c.orig Mon Feb 2 06:56:53 2004
|
||||
+++ gst/cothreads.c Fri Feb 6 13:05:26 2004
|
||||
@@ -52,7 +56,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#define STACK_SIZE 0x200000
|
||||
+#define STACK_SIZE 0x100000
|
||||
|
||||
#define COTHREAD_MAGIC_NUMBER 0xabcdef
|
||||
|
@ -11,12 +11,3 @@
|
||||
#ifndef MAP_ANONYMOUS
|
||||
#ifdef MAP_ANON
|
||||
/* older glibc's have MAP_ANON instead of MAP_ANONYMOUS */
|
||||
@@ -52,7 +56,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#define STACK_SIZE 0x200000
|
||||
+#define STACK_SIZE 0x100000
|
||||
|
||||
#define COTHREAD_MAGIC_NUMBER 0xabcdef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user