summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-23 22:04:48 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-23 22:04:48 -0500
commit6bcbf6a44cf836d42c806ca58f675f07e42da9c6 (patch)
tree3587f669f97d0342c980e7d3321ea98fe49f0fdd /legacy
parent2ad13fe16b60ea94370b34ee6e08ba4904a7126a (diff)
downloadpackages-6bcbf6a44cf836d42c806ca58f675f07e42da9c6.tar.gz
packages-6bcbf6a44cf836d42c806ca58f675f07e42da9c6.tar.bz2
packages-6bcbf6a44cf836d42c806ca58f675f07e42da9c6.tar.xz
packages-6bcbf6a44cf836d42c806ca58f675f07e42da9c6.zip
user/glfw: move to legacy/, only added for embree
Diffstat (limited to 'legacy')
-rw-r--r--legacy/glfw/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/legacy/glfw/APKBUILD b/legacy/glfw/APKBUILD
new file mode 100644
index 000000000..ab55f9771
--- /dev/null
+++ b/legacy/glfw/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=glfw
+pkgver=3.2.1
+pkgrel=0
+pkgdesc="OpenGL desktop development library"
+url="http://www.glfw.org/"
+arch="all"
+options="!check" # Tests require X11, GL, and manual intervention.
+license="Zlib"
+depends=""
+depends_dev="mesa-dev"
+makedepends="$depends_dev cmake doxygen libx11-dev libxrandr-dev libxcursor-dev
+ libxinerama-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/glfw/glfw/releases/download/3.2.1/glfw-$pkgver.zip"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DBUILD_SHARED_LIBS=ON \
+ -DGLFW_BUILD_TESTS=OFF \
+ -DGLFW_BUILD_EXAMPLES=OFF \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -D -d "$builddir"/docs/html "$pkgdir"/usr/share/doc/$pkgname/
+}
+
+sha512sums="73dd6d4a8d28a2b423f0fb25489659c1a845182b7ef09848d4f442cdc489528aea90f43ac84aeedb9d2301c4487f39782b647ee4959e67e83babb838372b980c glfw-3.2.1.zip"