[crux-commits] ports/contrib (refs/remotes/origin/3.6): glfw3: initial import

crux at crux.nu crux at crux.nu
Sat Apr 10 19:05:39 UTC 2021


commit c5539473f4a9a2f64cc3af5d157fadace816c521
Author: Danny Rawlins <contact at romster.me>
Date:   Mon Apr 5 15:10:20 2021 +1000

    glfw3: initial import

diff --git a/glfw3/.footprint b/glfw3/.footprint
new file mode 100644
index 000000000..91cd2cc6a
--- /dev/null
+++ b/glfw3/.footprint
@@ -0,0 +1,17 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/include/
+drwxr-xr-x	root/root	usr/include/GLFW/
+-rw-r--r--	root/root	usr/include/GLFW/glfw3.h
+-rw-r--r--	root/root	usr/include/GLFW/glfw3native.h
+drwxr-xr-x	root/root	usr/lib/
+drwxr-xr-x	root/root	usr/lib/cmake/
+drwxr-xr-x	root/root	usr/lib/cmake/glfw3/
+-rw-r--r--	root/root	usr/lib/cmake/glfw3/glfw3Config.cmake
+-rw-r--r--	root/root	usr/lib/cmake/glfw3/glfw3ConfigVersion.cmake
+-rw-r--r--	root/root	usr/lib/cmake/glfw3/glfw3Targets-release.cmake
+-rw-r--r--	root/root	usr/lib/cmake/glfw3/glfw3Targets.cmake
+lrwxrwxrwx	root/root	usr/lib/libglfw.so -> libglfw.so.3
+lrwxrwxrwx	root/root	usr/lib/libglfw.so.3 -> libglfw.so.3.3
+-rwxr-xr-x	root/root	usr/lib/libglfw.so.3.3
+drwxr-xr-x	root/root	usr/lib/pkgconfig/
+-rw-r--r--	root/root	usr/lib/pkgconfig/glfw3.pc
diff --git a/glfw3/.signature b/glfw3/.signature
new file mode 100644
index 000000000..2675ed8c5
--- /dev/null
+++ b/glfw3/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF3wc8jfid03O4+rcYJBxhtgjeEf1mpTpwAF+08+xC/5WhnQZZAf4B4jEQRtVMVLYGlVxQy6ptd0igsEtXpp0SYws=
+SHA256 (Pkgfile) = 986289fa90334c71b72b101c367124faac708a3efc04a6422f89cb51aa9cbce3
+SHA256 (.footprint) = 615e7b3d531b623a1372e3d2899f06ef3050506777e33b70c3ff37c2c3b8e1b5
+SHA256 (glfw-3.3.3.zip) = 723087ad45b40cd333be7d1a2cd5e09a28facb7f3acdb69f3e5613bd20543977
diff --git a/glfw3/Pkgfile b/glfw3/Pkgfile
new file mode 100644
index 000000000..6cae8d80d
--- /dev/null
+++ b/glfw3/Pkgfile
@@ -0,0 +1,23 @@
+# Description: A multi-platform library for OpenGL, OpenGL ES and Vulkan development
+# URL: https://www.glfw.org
+# Maintainer: Danny Rawlins, crux at romster dot me
+# Depends on: libglvnd vulkan-loader xorg-libxcursor xorg-libxi xorg-libxinerama
+
+name=glfw3
+version=3.3.3
+release=1
+source=(https://github.com/glfw/glfw/releases/download/$version/glfw-$version.zip)
+
+build() {
+	prt-get isinst ninja && PKGMK_GLFW+=' -G Ninja'
+
+	cmake -S glfw-$version -B build $PKGMK_GLFW \
+		-D CMAKE_INSTALL_PREFIX=/usr \
+		-D CMAKE_INSTALL_LIBDIR=lib \
+		-D CMAKE_BUILD_TYPE=Release \
+		-D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
+		-D BUILD_SHARED_LIBS=ON
+
+	cmake --build build
+	DESTDIR=$PKG cmake --build build --target install
+}


More information about the crux-commits mailing list