pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib Attempt to make it build cleanly and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c82fe960e49
branches:  trunk
changeset: 394889:9c82fe960e49
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Fri Jun 19 18:19:15 2009 +0000

description:
Attempt to make it build cleanly and to solve PLIST problems without dri
option (default for most of platforms). Tested on DragonFly only. Bump
PKGREVISION.

diffstat:

 graphics/MesaLib/Makefile         |   5 ++-
 graphics/MesaLib/PLIST            |   5 ++-
 graphics/MesaLib/distinfo         |   3 +-
 graphics/MesaLib/patches/patch-be |  57 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 65 insertions(+), 5 deletions(-)

diffs (116 lines):

diff -r 3b1f978a33e8 -r 9c82fe960e49 graphics/MesaLib/Makefile
--- a/graphics/MesaLib/Makefile Fri Jun 19 13:13:51 2009 +0000
+++ b/graphics/MesaLib/Makefile Fri Jun 19 18:19:15 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.78 2009/06/10 17:28:06 wiz Exp $
+# $NetBSD: Makefile,v 1.79 2009/06/19 18:19:15 hasso Exp $
 
 PKGNAME=       MesaLib-${MESA_PKGVERSION}
-PKGREVISION=   2
+PKGREVISION=   3
 COMMENT=       Graphics library similar to SGI's OpenGL
 
 MESA_HEADERS=  gl.h gl_mangle.h glext.h glx.h glxext.h \
@@ -17,6 +17,7 @@
 
 PKGCONFIG_OVERRIDE+=   src/mesa/drivers/dri/dri.pc.in
 PKGCONFIG_OVERRIDE+=   src/mesa/gl.pc.in
+PKGCONFIG_OVERRIDE+=   src/mesa/osmesa.pc.in
 PKGCONFIG_OVERRIDE+=   src/glw/glw.pc.in
 # no configure stage
 PKGCONFIG_OVERRIDE_STAGE=      pre-build
diff -r 3b1f978a33e8 -r 9c82fe960e49 graphics/MesaLib/PLIST
--- a/graphics/MesaLib/PLIST    Fri Jun 19 13:13:51 2009 +0000
+++ b/graphics/MesaLib/PLIST    Fri Jun 19 18:19:15 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.23 2009/06/14 20:05:40 joerg Exp $
+@comment $NetBSD: PLIST,v 1.24 2009/06/19 18:19:15 hasso Exp $
 include/GL/GLwDrawA.h
 include/GL/GLwDrawAP.h
 include/GL/GLwMDrawA.h
@@ -29,6 +29,7 @@
 ${PLIST.dri}lib/dri/swrast_dri.la
 ${PLIST.dri}lib/dri/tdfx_dri.la
 ${PLIST.dri}lib/dri/unichrome_dri.la
-lib/pkgconfig/dri.pc
+${PLIST.dri}lib/pkgconfig/dri.pc
 lib/pkgconfig/gl.pc
 lib/pkgconfig/glw.pc
+${PLIST.nodri}lib/pkgconfig/osmesa.pc
diff -r 3b1f978a33e8 -r 9c82fe960e49 graphics/MesaLib/distinfo
--- a/graphics/MesaLib/distinfo Fri Jun 19 13:13:51 2009 +0000
+++ b/graphics/MesaLib/distinfo Fri Jun 19 18:19:15 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.65 2009/06/11 13:11:32 tnn Exp $
+$NetBSD: distinfo,v 1.66 2009/06/19 18:19:15 hasso Exp $
 
 SHA1 (Mesa-7.4.2/MesaDemos-7.4.2.tar.bz2) = cbba586829c76a5e7a54a906567b4b2174d6e1aa
 RMD160 (Mesa-7.4.2/MesaDemos-7.4.2.tar.bz2) = c6434d325897540618130e97891f391721b543b5
@@ -31,5 +31,6 @@
 SHA1 (patch-bb) = 4fd8a770bd0275c3467447f77f51e957996c93ac
 SHA1 (patch-bc) = 6b8df3762d666c2e7720183b6d292053bda86f5a
 SHA1 (patch-bd) = 61cb50ef49e64ecc0f87750d60244f1ff7b44bd4
+SHA1 (patch-be) = 5407ae34110aa37b8d05801723f2b4739fd95021
 SHA1 (patch-cb) = 83789d71de41aed2ba81a8239fb035a4cd295477
 SHA1 (patch-cc) = 737d8b474b1c296f3ceb4de515dd385aae072394
diff -r 3b1f978a33e8 -r 9c82fe960e49 graphics/MesaLib/patches/patch-be
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib/patches/patch-be Fri Jun 19 18:19:15 2009 +0000
@@ -0,0 +1,57 @@
+$NetBSD: patch-be,v 1.1 2009/06/19 18:19:15 hasso Exp $
+
+--- src/mesa/drivers/osmesa/Makefile.orig      2009-06-19 13:36:30 +0300
++++ src/mesa/drivers/osmesa/Makefile   2009-06-19 13:45:04 +0300
+@@ -19,7 +19,7 @@ INCLUDE_DIRS = \
+       -I$(TOP)/src/mesa \
+       -I$(TOP)/src/mesa/main
+ 
+-CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
++CORE_MESA = $(TOP)/src/mesa/libmesa.la $(TOP)/src/mesa/libglapi.la
+ 
+ 
+ .PHONY: osmesa8
+@@ -27,7 +27,8 @@ CORE_MESA = $(TOP)/src/mesa/libmesa.a $(
+ 
+ 
+ .c.o:
+-      $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
++      $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(INCLUDE_DIRS) \
++              $(CFLAGS) $< -o $(@:.o=.lo)
+ 
+ 
+ default: $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME)
+@@ -44,11 +45,11 @@ default: $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_
+ osmesa8: $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME)
+ 
+ $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME): $(OBJECTS)
+-      $(MKLIB) -o $(OSMESA_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
+-              -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
+-              -install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
+-              -id $(INSTALL_LIB_DIR)/lib$(OSMESA_LIB).$(MESA_MAJOR).dylib \
+-              $(OSMESA_LIB_DEPS) $(OBJECTS)
++      $(LIBTOOL) --mode=link $(CC) \
++              -o $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME:.so=.la) $(LDFLAGS) \
++              -rpath $(PREFIX)/lib \
++              -version-info $(MESA_MAJOR):$(MESA_MINOR):0 \
++              $(OSMESA_LIB_DEPS) $(OBJECTS:.o=.lo)
+ 
+ 
+ 
+@@ -56,11 +57,11 @@ $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME): $(
+ # The libOSMesa16/libOSMesa32 libraries do not use libGL but rather are built
+ # with all the other Mesa sources (compiled with -DCHAN_BITS=16/32
+ osmesa16: $(OBJECTS) $(CORE_MESA)
+-      $(MKLIB) -o $(OSMESA_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
+-              -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
+-              -install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
+-              -id $(INSTALL_LIB_DIR)/lib$(OSMESA_LIB).$(MESA_MAJOR).dylib \
+-              $(OSMESA_LIB_DEPS) $(OBJECTS) $(CORE_MESA)
++      $(LIBTOOL) --mode=link $(CC) \
++              -o $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME:.so=.la) $(LDFLAGS) \
++              -rpath $(PREFIX)/lib \
++              -version-info $(MESA_MAJOR):$(MESA_MINOR):0 \
++              $(OSMESA_LIB_DEPS) $(OBJECTS:.o=.lo) $(CORE_MESA)
+ 
+ 
+ 



Home | Main Index | Thread Index | Old Index