summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseb <seb>2006-07-16 22:20:37 +0000
committerseb <seb>2006-07-16 22:20:37 +0000
commitb5c381f91072bc239ca0f409b0fa12541a11510c (patch)
tree1fae632eaf83e341ce595b1ffefc2d522d1c1e40
parent53efb4e5a61487964721114b1d416caa09315241 (diff)
downloadpkgsrc-b5c381f91072bc239ca0f409b0fa12541a11510c.tar.gz
Make this package compile with NetBSD current's gcc 4.1.2
XXX I suppose -mcpu=pentiumpro is deprecated since gcc 4.x, am I wrong? XXX Should I have been using BUILDLINK_TRANSFORM instead of WRAPPER_TRANSFORM_CMDS ?
-rw-r--r--multimedia/ogle/Makefile8
-rw-r--r--multimedia/ogle/distinfo3
-rw-r--r--multimedia/ogle/patches/patch-ac13
3 files changed, 22 insertions, 2 deletions
diff --git a/multimedia/ogle/Makefile b/multimedia/ogle/Makefile
index 8effe8ae544..5f8fb8fff91 100644
--- a/multimedia/ogle/Makefile
+++ b/multimedia/ogle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/03/04 21:30:15 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2006/07/16 22:20:37 seb Exp $
DISTNAME= ogle-0.9.2
PKGREVISION= 3
@@ -29,6 +29,12 @@ CONFIGURE_ENV+= CPPFLAGS=${CPPFLAGS:M*:Q}
GCC_REQD+= 2.95.3
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-4*)
+WRAPPER_TRANSFORM_CMDS+= opt:-mcpu=pentiumpro:-march=pentiumpro
+.endif
+
MESSAGE_SUBST+= PKGBASE=${PKGBASE}
.include "../../audio/liba52/buildlink3.mk"
diff --git a/multimedia/ogle/distinfo b/multimedia/ogle/distinfo
index d69653c9891..69152704bc5 100644
--- a/multimedia/ogle/distinfo
+++ b/multimedia/ogle/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2005/12/07 19:33:03 joerg Exp $
+$NetBSD: distinfo,v 1.4 2006/07/16 22:20:37 seb Exp $
SHA1 (ogle-0.9.2.tar.gz) = bf44e835d04634b4e52fb50bab2a1b78e69391eb
RMD160 (ogle-0.9.2.tar.gz) = 16055614b5a3b336aa42a96efc0456bf88f37129
Size (ogle-0.9.2.tar.gz) = 488984 bytes
SHA1 (patch-aa) = e88f4c4765a72afe9e6a1bb859d37adb040c3d48
SHA1 (patch-ab) = 8cc4f41533feeb35a4b9400aadea230c40f91c3d
+SHA1 (patch-ac) = 3cee7186c517fc7427a9a4a4b96680f25d442c1d
diff --git a/multimedia/ogle/patches/patch-ac b/multimedia/ogle/patches/patch-ac
new file mode 100644
index 00000000000..408a045e6da
--- /dev/null
+++ b/multimedia/ogle/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2006/07/16 22:20:37 seb Exp $
+
+--- ac3/ac3dec_wrap.c.orig 2003-03-02 15:50:03.000000000 +0000
++++ ac3/ac3dec_wrap.c
+@@ -48,7 +48,7 @@ static int attach_stream_buffer(uint8_t
+ static void handle_events(MsgEventQ_t *q, MsgEvent_t *ev);
+
+
+-static char *program_name;
++char *program_name;
+
+ static FILE *outfile;
+