On Sun, May 17, 2009 at 08:53:05PM +0200, Peter Hessler wrote:
> Whats up with this update? I need it for some other work I'm doing.
>
Well, it doesn't work as i thought it would; at least not in the case
of tuxkart:
...
In file included from start_tuxkart.cxx:2:
start_tuxkart.h:24:21: plib/js.h: No such file or directory
...
I guess tuxkart is acting up here, but i haven't found the time and/or
patience to fix it yet.
Do you have another port to verify that plib with this patch is correct?
Regards,
Simon
P.S.: Slighly adjusted diff below that has PFRAG.js instead of
PFRAG.i386 which should be a more precise name.
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/plib/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile 10 Apr 2009 08:54:32 -0000 1.3
+++ Makefile 18 May 2009 21:51:48 -0000
@@ -1,16 +1,13 @@
# $OpenBSD: Makefile,v 1.3 2009/04/10 08:54:32 simon Exp $
-# needs joystick.h
-ONLY_FOR_ARCHS = i386
-
COMMENT = suite of portable game libraries
DISTNAME = plib-1.8.5
-PKGNAME = ${DISTNAME}p0
+PKGNAME = ${DISTNAME}p1
CATEGORIES = devel games
HOMEPAGE = http://plib.sourceforge.net/
-MASTER_SITES = ${HOMEPAGE}/dist/
+MASTER_SITES = ${HOMEPAGE}dist/
MAINTAINER = Gallon Sylvestre <[email protected]>
@@ -24,5 +21,13 @@ USE_X11 = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-GL=${X11BASE}
+
+.if ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS += --enable-js
+PKG_ARGS += -Djs=1
+.else
+CONFIGURE_ARGS += --disable-js
+PKG_ARGS += -Djs=0
+.endif
.include <bsd.port.mk>
Index: pkg/PFRAG.js
===================================================================
RCS file: pkg/PFRAG.js
diff -N pkg/PFRAG.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/PFRAG.js 18 May 2009 21:51:48 -0000
@@ -0,0 +1,3 @@
+...@comment $OpenBSD$
+include/plib/js.h
+lib/libplibjs.a
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/plib/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 10 Nov 2008 22:10:22 -0000 1.1.1.1
+++ pkg/PLIST 18 May 2009 21:51:48 -0000
@@ -1,7 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/11/10 22:10:22 ajacoutot Exp $
include/plib/
include/plib/fnt.h
-include/plib/js.h
include/plib/net.h
include/plib/netBuffer.h
include/plib/netChannel.h
@@ -41,7 +40,6 @@ include/plib/ssgconf.h
include/plib/ul.h
include/plib/ulRTTI.h
lib/libplibfnt.a
-lib/libplibjs.a
lib/libplibnet.a
lib/libplibpsl.a
lib/libplibpu.a