pkgsrc-Users archive

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

graphics/glew with X11_TYPE=modular



Hi,
When packaging  graphics/glew 1.10.0 with X11_TYPE=modular,
I'm seeing the error on make package stage.
  # => Checking for missing run-time search paths in glew-1.10.0
  # ERROR: lib/libGLEWmx.so.1.10.0: missing library: libXmu.so.6
   ...

(NetBSD/amd64 7.99.1)

Attached patch may fix this problem.
Please give me any comments, thank you.
---
mef%NetBSD.org@localhost
Makoto Fujiwara, 


Index: graphics/glew/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/glew/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- graphics/glew/Makefile	16 Feb 2014 22:45:54 -0000	1.17
+++ graphics/glew/Makefile	24 Nov 2014 15:08:49 -0000
@@ -14,10 +14,23 @@
 USE_TOOLS+=		gmake
 PKGCONFIG_OVERRIDE=	glew.pc.in
 MAKEFLAGS+=		CC=${CC:Q} GLEW_DEST=${PREFIX} POPT=${CFLAGS:Q}
-MAKEFLAGS+=		LDFLAGS.EXTRA=${X11_LDFLAGS:Q}
 INSTALL_TARGET=		install.all
 INSTALLATION_DIRS+=	lib/pkgconfig
 
+# => Checking for missing run-time search paths in glew-1.10.0
+# ERROR: lib/libGLEWmx.so.1.10.0: missing library: libXmu.so.6
+# ERROR: lib/libGLEWmx.so.1.10.0: missing library: libXext.so.6
+# ERROR: lib/libGLEWmx.so.1.10.0: missing library: libX11.so.6
+# ERROR: lib/libGLEWmx.so.1.10.0: missing library: libXi.so.6
+# ERROR: lib/libGLEWmx.so.1.10.0: missing library: libGL.so.1
+# *** Error code 1
+
+SUBST_CLASSES+=		x11
+SUBST_MESSAGE.x11=	Switch native or modular by X11_TYPE
+SUBST_FILES.x11=	config/Makefile.netbsd
+SUBST_STAGE.x11=	post-patch
+SUBST_SED.x11=		-e 's,/usr/X11R7,${X11BASE},g'
+
 .include "../../mk/bsd.prefs.mk"
 
 .if ${OPSYS} == "SunOS" && !empty(CC:M*gcc*)


Home | Main Index | Thread Index | Old Index