Subject: patch for multimedia/gnome2-media for lrint(3)
To: None <tech-pkg@netbsd.org, rh@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 07/21/2005 11:07:25
Gilles and Robert,
Please try the following to fix your gnome2-media build. I didn't test
much though. And hopefully I have this written correctly. Maybe it should
check for 2.99 or other versions too?
Please report back.
cvs diff: Diffing multimedia/gnome2-media
Index: multimedia/gnome2-media/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/gnome2-media/Makefile,v
retrieving revision 1.17
diff -b -u -r1.17 Makefile
--- multimedia/gnome2-media/Makefile 16 Jul 2005 01:19:15 -0000 1.17
+++ multimedia/gnome2-media/Makefile 21 Jul 2005 18:01:44 -0000
@@ -30,6 +30,17 @@
CONFIGURE_ENV+= CDROM_HOST="bsd"
.endif
+# NetBSD before 3 and FreeBSD before 5.4 do not have lrint(3)
+.if (${OPSYS} == "NetBSD" && (!empty(${OS_VERSION:M1.[0-5]*}) || \
+ !empty(OS_VERSION:M2.0*))) || \
+ (${OPSYS} == "FreeBSD" && (!empty(OS_VERSION:M4.*) && \
+ !empty(OS_VERSION:M5.[0-3]*)))
+SUBST_CLASSES+= rint
+SUBST_STAGE.rint= pre-configure
+SUBST_FILES.rint= gnome-cd/gst-cdparanoia-cdrom.c gst-mixer/src/volume.c
+SUBST_SED.rint= -e "s,lrint,rint,g"
+.endif
+
GCONF2_SCHEMAS= CDDB-Slave2.schemas
GCONF2_SCHEMAS+= gnome-audio-profiles.schemas
GCONF2_SCHEMAS+= gnome-cd.schemas
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/