diff options
-rw-r--r-- | graphics/MesaLib/distinfo | 4 | ||||
-rw-r--r-- | graphics/MesaLib/patches/patch-ab | 23 | ||||
-rw-r--r-- | graphics/glu/Makefile | 5 | ||||
-rw-r--r-- | graphics/glu/files/glu.exports.in | 63 |
4 files changed, 85 insertions, 10 deletions
diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo index f13c147020a..704a5ea451b 100644 --- a/graphics/MesaLib/distinfo +++ b/graphics/MesaLib/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.67 2009/07/08 20:00:58 hasso Exp $ +$NetBSD: distinfo,v 1.68 2009/08/08 08:25:51 wiz Exp $ SHA1 (Mesa-7.4.4/MesaDemos-7.4.4.tar.bz2) = 190b51dd1e456f12c70cd428ec47ca8de0ed72fe RMD160 (Mesa-7.4.4/MesaDemos-7.4.4.tar.bz2) = 492850ff48aa54d35f1acdd09ac90e61a9d93bc1 @@ -10,7 +10,7 @@ SHA1 (Mesa-7.4.4/MesaLib-7.4.4.tar.bz2) = 1cdcef24900489bc0a879013b2138c0d9aedff RMD160 (Mesa-7.4.4/MesaLib-7.4.4.tar.bz2) = 9c9a5e8b7f8d2fd175cc8542e2aecf48edf8c084 Size (Mesa-7.4.4/MesaLib-7.4.4.tar.bz2) = 3375615 bytes SHA1 (patch-aa) = 9afc2758ebbef3737f8c858f74f0c93d86bb0861 -SHA1 (patch-ab) = 27b44d856602d590d2596f41cd17cdaf18bdc96e +SHA1 (patch-ab) = 2d7cb59c5a157142ffbfbed026d8a51cb18d21ee SHA1 (patch-ac) = ed3ec49ea2aacf231bbcb38093f3dc01a0cb2468 SHA1 (patch-ad) = 080413cbdc2ed7484cc2fff25f00bc53dca3a393 SHA1 (patch-ae) = 07cf84391b4e828b558129eb90daaeb48e43e1ab diff --git a/graphics/MesaLib/patches/patch-ab b/graphics/MesaLib/patches/patch-ab index 363edc604a7..661096c6619 100644 --- a/graphics/MesaLib/patches/patch-ab +++ b/graphics/MesaLib/patches/patch-ab @@ -1,7 +1,7 @@ -$NetBSD: patch-ab,v 1.17 2009/06/05 11:10:35 wiz Exp $ +$NetBSD: patch-ab,v 1.18 2009/08/08 08:25:51 wiz Exp $ ---- src/glu/sgi/Makefile.orig 2008-08-25 17:46:42 +0300 -+++ src/glu/sgi/Makefile 2009-05-17 16:59:39 +0300 +--- src/glu/sgi/Makefile.orig 2008-08-25 14:46:42.000000000 +0000 ++++ src/glu/sgi/Makefile @@ -8,7 +8,8 @@ include $(TOP)/configs/current GLU_MAJOR = 1 @@ -27,16 +27,25 @@ $NetBSD: patch-ab,v 1.17 2009/06/05 11:10:35 wiz Exp $ ##### TARGETS ##### -@@ -136,12 +139,11 @@ $(TOP)/$(LIB_DIR): +@@ -134,14 +137,19 @@ default: + $(TOP)/$(LIB_DIR): + -mkdir $(TOP)/$(LIB_DIR) - # Make the library: - $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS) +-# Make the library: +-$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS) - $(MKLIB) -o $(GLU_LIB) -linker '$(CXX)' -ldflags '$(LDFLAGS)' \ - -major $(GLU_MAJOR) -minor $(GLU_MINOR) -patch $(GLU_TINY) \ - -cplusplus $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \ - -exports glu.exports -id $(INSTALL_LIB_DIR)/lib$(GLU_LIB).$(GLU_MAJOR).dylib \ - $(GLU_LIB_DEPS) $(OBJECTS) -- ++# Make the exports file with the mangled or unmangled names per $CFLAGS ++glu.exports: glu.exports.in ++ $(CC) -E -I $(TOP)/include/GL $(CFLAGS) $< | \ ++ awk '/^[^#]+/ {print}' > $@ ++ + ++# Make the library: ++$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME): $(OBJECTS) glu.exports + $(LIBTOOL) --mode=link $(CXX) \ + -o $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME:.so=.la) $(LDFLAGS) \ + -rpath $(PREFIX)/lib $(GLU_LIB_DEPS) $(OBJECTS:.o=.lo) \ diff --git a/graphics/glu/Makefile b/graphics/glu/Makefile index 6aab4b3ca50..81d0ed251d9 100644 --- a/graphics/glu/Makefile +++ b/graphics/glu/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.55 2009/07/08 20:00:58 hasso Exp $ +# $NetBSD: Makefile,v 1.56 2009/08/08 08:25:50 wiz Exp $ PKGNAME= glu-${MESA_PKGVERSION} +PKGREVISION= 1 COMMENT= GLU polygon tessellation facility for Mesa CONFLICTS+= Mesa-glx-[0-9]* @@ -20,6 +21,8 @@ BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=${MESA_VERSION} post-extract: ${GREP} '^[[:cntrl:]][g][l][u]' ${WRKSRC}/src/glu/sgi/glu.def \ | ${SED} -e 's,^[[:cntrl:]],,' > ${WRKSRC}/src/glu/sgi/glu.sym + ${RM} ${WRKSRC}/src/glu/sgi/glu.exports + ${CP} ${FILESDIR}/glu.exports.in ${WRKSRC}/src/glu/sgi/ pre-build: cd ${WRKSRC} && ${RM} -fr src/glx src/mesa src/glut src/glw progs diff --git a/graphics/glu/files/glu.exports.in b/graphics/glu/files/glu.exports.in new file mode 100644 index 00000000000..3e2661ec753 --- /dev/null +++ b/graphics/glu/files/glu.exports.in @@ -0,0 +1,63 @@ +#if defined(USE_MGL_NAMESPACE) +# include "glu_mangle.h" /* mangle function names if needed */ +#endif + + gluBeginCurve + gluBeginPolygon + gluBeginSurface + gluBeginTrim + gluBuild1DMipmapLevels + gluBuild1DMipmaps + gluBuild2DMipmapLevels + gluBuild2DMipmaps + gluBuild3DMipmapLevels + gluBuild3DMipmaps + gluCheckExtension + gluCylinder + gluDeleteNurbsRenderer + gluDeleteQuadric + gluDeleteTess + gluDisk + gluEndCurve + gluEndPolygon + gluEndSurface + gluEndTrim + gluErrorString + gluGetNurbsProperty + gluGetString + gluGetTessProperty + gluLoadSamplingMatrices + gluLookAt + gluNewNurbsRenderer + gluNewQuadric + gluNewTess + gluNextContour + gluNurbsCallback + gluNurbsCallbackData + gluNurbsCallbackDataEXT + gluNurbsCurve + gluNurbsProperty + gluNurbsSurface + gluOrtho2D + gluPartialDisk + gluPerspective + gluPickMatrix + gluProject + gluPwlCurve + gluQuadricCallback + gluQuadricDrawStyle + gluQuadricNormals + gluQuadricOrientation + gluQuadricTexture + gluScaleImage + gluSphere + gluTessBeginContour + gluTessBeginPolygon + gluTessCallback + gluTessEndContour + gluTessEndPolygon + gluTessNormal + gluTessProperty + gluTessVertex + gluUnProject + gluUnProject4 |