Fix installation path

This commit is contained in:
2026-03-22 13:50:01 +02:00
parent eab039cc75
commit 87090a1c8d
3 changed files with 47 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: glew name: glew
description: The OpenGL Extension Wrangler Library description: The OpenGL Extension Wrangler Library
version: 2.3.1 version: 2.3.1
revision: 1 revision: 2
url: https://github.com/nigels-com/glew url: https://github.com/nigels-com/glew
license: BSD-3-Clause,MIT,GPL2-or-later license: BSD-3-Clause,MIT,GPL2-or-later
maintainers: maintainers:
+44
View File
@@ -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
+2 -3
View File
@@ -6,14 +6,13 @@
# This function is used for putting downloaded files to the correct location or applying patches # This function is used for putting downloaded files to the correct location or applying patches
prepare() { prepare() {
cd "$BPM_SOURCE" cd "$BPM_SOURCE"
# Install libraries to /usr/lib patch -Np1 -i "$BPM_WORKDIR"/glew-2.3.0-install.patch
sed -i 's%lib64%lib%g' config/Makefile.linux
} }
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
make make STRIP=
} }
# The package function is executed in the source directory # The package function is executed in the source directory