diff --git a/pkg.info b/pkg.info index 1dce3e2..7d854eb 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: glew description: The OpenGL Extension Wrangler Library version: 2.3.1 -revision: 1 +revision: 2 url: https://github.com/nigels-com/glew license: BSD-3-Clause,MIT,GPL2-or-later maintainers: diff --git a/source-files/glew-2.3.0-install.patch b/source-files/glew-2.3.0-install.patch new file mode 100644 index 0000000..c8fbad2 --- /dev/null +++ b/source-files/glew-2.3.0-install.patch @@ -0,0 +1,44 @@ +--- a/Makefile 2025-12-21 22:50:38.000000000 +0100 ++++ b/Makefile.new 2025-12-22 13:47:05.936778630 +0100 +@@ -40,8 +40,8 @@ + $(error "Platform '$(SYSTEM)' not supported") + endif + +-GLEW_PREFIX ?= /usr/local +-GLEW_DEST ?= /usr/local ++GLEW_PREFIX ?= /usr ++GLEW_DEST ?= /usr + BINDIR ?= $(GLEW_DEST)/bin + LIBDIR ?= $(GLEW_DEST)/lib + INCDIR ?= $(GLEW_DEST)/include/GL +@@ -104,8 +104,6 @@ + glew.lib.shared: lib $(LIB.SHARED.DIR) $(LIB.SHARED.DIR)/$(LIB.SHARED) glew.pc + glew.lib.static: lib lib/$(LIB.STATIC) glew.pc + +-.PHONY: glew.lib glew.lib.shared glew.lib.static +- + lib: + mkdir lib + +@@ -142,7 +142,7 @@ + glew.pc: glew.pc.in + sed \ + -e "s|@prefix@|$(GLEW_PREFIX)|g" \ +- -e "s|@libdir@|$(LIBDIR)|g" \ ++ -e "s|@libdir@|/usr/lib|g" \ + -e "s|@exec_prefix@|$(BINDIR)|g" \ + -e "s|@includedir@|$(INCDIR)|g" \ + -e "s|@version@|$(GLEW_VERSION)|g" \ +--- a/config/Makefile.linux 2025-12-22 13:56:23.000000000 +0100 ++++ b/config/Makefile.linux.new 2025-12-22 14:02:44.132416535 +0100 +@@ -13,8 +13,8 @@ + ARCH64 = true + endif + ifeq (${ARCH64},true) +- LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64 +- LIBDIR = $(GLEW_DEST)/lib64 ++ LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib ++ LIBDIR = $(GLEW_DEST)/lib + else + LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib + LIBDIR = $(GLEW_DEST)/lib diff --git a/source.sh b/source.sh index e044561..77798ba 100644 --- a/source.sh +++ b/source.sh @@ -6,14 +6,13 @@ # This function is used for putting downloaded files to the correct location or applying patches prepare() { cd "$BPM_SOURCE" - # Install libraries to /usr/lib - sed -i 's%lib64%lib%g' config/Makefile.linux + patch -Np1 -i "$BPM_WORKDIR"/glew-2.3.0-install.patch } # The build function is executed in the source directory # This function is used to compile the source code build() { - make + make STRIP= } # The package function is executed in the source directory