From 074ce7dd4991bd3c490f134878d2a8360eb3b9a6 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 14 Mar 2012 23:11:58 +0000 Subject: Fix linkage for native X11. Still broken for modular Xorg. --- graphics/opencsg/Makefile | 6 +++--- graphics/opencsg/distinfo | 3 ++- graphics/opencsg/patches/patch-src_Makefile | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 graphics/opencsg/patches/patch-src_Makefile (limited to 'graphics/opencsg') diff --git a/graphics/opencsg/Makefile b/graphics/opencsg/Makefile index a08073003f2..56deff36d6f 100644 --- a/graphics/opencsg/Makefile +++ b/graphics/opencsg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2012/02/28 10:42:12 reinoud Exp $ +# $NetBSD: Makefile,v 1.3 2012/03/14 23:11:58 joerg Exp $ # PKGNAME= opencsg-1.3.2 @@ -17,9 +17,9 @@ PKG_DESTDIR_SUPPORT= user-destdir USE_TOOLS+= pkg-config gmake USE_LANGUAGES= c c++ +INSTALLATION_DIRS= include lib + do-install: - ${INSTALL_LIB} -d ${DESTDIR}${PREFIX}/lib - ${INSTALL_LIB} -d ${DESTDIR}${PREFIX}/include ${INSTALL_LIB} ${WRKSRC}/lib/* ${DESTDIR}${PREFIX}/lib/ ${INSTALL_DATA} ${WRKSRC}/include/* ${DESTDIR}${PREFIX}/include/ diff --git a/graphics/opencsg/distinfo b/graphics/opencsg/distinfo index 58e84ae3380..65bf48d8c59 100644 --- a/graphics/opencsg/distinfo +++ b/graphics/opencsg/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2012/02/28 10:42:12 reinoud Exp $ +$NetBSD: distinfo,v 1.3 2012/03/14 23:11:58 joerg Exp $ SHA1 (OpenCSG-1.3.2.tar.gz) = e2b4abf169ae3e319eb5f6d9ae6136fa96710a05 RMD160 (OpenCSG-1.3.2.tar.gz) = 4480778c310a3d5f84933c1b35508dd94adf2332 Size (OpenCSG-1.3.2.tar.gz) = 744712 bytes SHA1 (patch-Makefile) = 13c3cc669156b04b5d09af9587f76d1055629518 SHA1 (patch-RenderTexture.cpp) = 9d65c9928b4f42fde109b5497912e6654b188c69 +SHA1 (patch-src_Makefile) = 7122719be270b183d35c7c0d8b39266dc84df4a7 diff --git a/graphics/opencsg/patches/patch-src_Makefile b/graphics/opencsg/patches/patch-src_Makefile new file mode 100644 index 00000000000..56180633f34 --- /dev/null +++ b/graphics/opencsg/patches/patch-src_Makefile @@ -0,0 +1,15 @@ +$NetBSD: patch-src_Makefile,v 1.1 2012/03/14 23:11:58 joerg Exp $ + +--- src/Makefile.orig 2012-03-13 15:57:17.000000000 +0000 ++++ src/Makefile +@@ -18,8 +18,8 @@ LEXFLAGS = + YACCFLAGS= -d + INCPATH = -I. -I../include -I../glew/include -I.. -I/usr/X11R6/include + LINK = g++ +-LFLAGS = -shared -Wl,-soname,libopencsg.so.1 -Wl,-rpath,../lib +-LIBS = $(SUBLIBS) -L/usr/X11R6/lib -lGLU -lGL -lXmu ++LFLAGS = -shared -Wl,-soname,libopencsg.so.1 -Wl,-rpath,${X11BASE}/lib ++LIBS = $(SUBLIBS) -lGLU -lGL -lXmu + AR = ar cqs + RANLIB = + QMAKE = qmake -- cgit v1.2.3