aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/mplayerxp
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-01-25 04:59:32 +0800
committermiwi <miwi@FreeBSD.org>2007-01-25 04:59:32 +0800
commit5f3a589f76f50375c9dc6729369493ee1c976134 (patch)
treea68e37cadbc5c53c57eb5e8b92cac7b2c7ad65af /multimedia/mplayerxp
parent04c51c01193750aaed502797ad5aa4993b3f5229 (diff)
downloadfreebsd-ports-gnome-5f3a589f76f50375c9dc6729369493ee1c976134.tar.gz
freebsd-ports-gnome-5f3a589f76f50375c9dc6729369493ee1c976134.tar.zst
freebsd-ports-gnome-5f3a589f76f50375c9dc6729369493ee1c976134.zip
- Fix build with gcc 4.1
PR: 108080 Submitted by: trasz pointyhat
Diffstat (limited to 'multimedia/mplayerxp')
-rw-r--r--multimedia/mplayerxp/Makefile4
-rw-r--r--multimedia/mplayerxp/files/patch-loader-win32.c11
2 files changed, 14 insertions, 1 deletions
diff --git a/multimedia/mplayerxp/Makefile b/multimedia/mplayerxp/Makefile
index 6f3639edcc11..07cb8bb49a42 100644
--- a/multimedia/mplayerxp/Makefile
+++ b/multimedia/mplayerxp/Makefile
@@ -30,6 +30,7 @@ USE_XLIB= yes
USE_GMAKE= yes
HAS_CONFIGURE= yes
WANT_SDL= yes
+USE_LDCONFIG= yes
MAN1= mplayerxp.1
@@ -38,7 +39,7 @@ WIN32_CODEC_PREFIX= ${LOCALBASE}/lib/win32
.include <bsd.port.pre.mk>
# add this after <bsd.port.pre.mk> so that we inherit /etc/make.conf
-CONFIGURE_ARGS+= --with-extralibdir=${LOCALBASE}/lib \
+CONFIGURE_ARGS+= --with-extralibdir=${LOCALBASE}/lib \
--with-extraincdir=${LOCALBASE}/include \
--with-x11incdir=${X11BASE}/include \
--with-x11libdir=${X11BASE}/lib \
@@ -51,6 +52,7 @@ CONFIGURE_ARGS+= --with-extralibdir=${LOCALBASE}/lib \
--disable-rtc \
--disable-vm \
--disable-tv-v4l
+CONFIGURE_ENV+= LANG=C
# insure CC,LD safeness
MAKE_ARGS+= CC="${CC}" LD="${LD}"
diff --git a/multimedia/mplayerxp/files/patch-loader-win32.c b/multimedia/mplayerxp/files/patch-loader-win32.c
new file mode 100644
index 000000000000..8644577722ab
--- /dev/null
+++ b/multimedia/mplayerxp/files/patch-loader-win32.c
@@ -0,0 +1,11 @@
+--- loader/win32.c.orig Thu Jan 18 11:06:11 2007
++++ loader/win32.c Thu Jan 18 11:06:32 2007
+@@ -66,7 +66,7 @@
+ #include <kstat.h>
+ #endif
+
+-#if HAVE_VSSCANF
++#if 1
+ int vsscanf( const char *str, const char *format, va_list ap);
+ #else
+ /* system has no vsscanf. try to provide one */