summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge2017-12-26 21:58:23 +0100
committerDavid Runge2017-12-26 21:58:23 +0100
commite86fd26bbefe14b97198a16ab31148fad31f114b (patch)
tree68e5da4b1b51c46b3af114e611648ec649858b90
downloadaur-e86fd26bbefe14b97198a16ab31148fad31f114b.tar.gz
Moved from [community] due to unmaintained upstream.
-rw-r--r--.SRCINFO21
-rw-r--r--Makefile55
-rw-r--r--PKGBUILD29
-rw-r--r--glee.pc12
4 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..659ef3f68a7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Tue Dec 26 20:57:51 UTC 2017
+pkgbase = glee
+ pkgdesc = Free cross-platform extension loading library for OpenGL
+ pkgver = 5.4.0
+ pkgrel = 3
+ url = http://elf-stone.com/glee.php
+ arch = x86_64
+ license = custom:BSD
+ makedepends = mesa
+ depends = gcc-libs
+ depends = libgl
+ source = http://pkgs.fedoraproject.org/repo/pkgs/GLee/GLee-5.4.0-src.tar.gz/0bd03db136dbc075488b6c6e83f326ae/GLee-5.4.0-src.tar.gz
+ source = glee.pc
+ source = Makefile
+ md5sums = 0bd03db136dbc075488b6c6e83f326ae
+ md5sums = 937a48856486291070943488fa2824d0
+ md5sums = b59e8d11402fb2ee6c4a92bf6916b3aa
+
+pkgname = glee
+
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..06425fd825d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+all: libGLee.so
+
+MAJOR=5
+MINOR=4
+
+SOURCES = $(shell find . -name "*.c")
+
+SHARED_OBJS = $(SOURCES:.c=.shared.o)
+STATIC_OBJS = $(SOURCES:.c=.static.o)
+
+EXTRA_CFLAGS= $(CFLAGS)
+SHARED_CFLAGS= -Wall $(EXTRA_CFLAGS) -fPIC
+
+LDFLAGS= -Wl,-z,defs -Wl,--as-needed -Wl,--no-undefined
+EXTRA_LDFLAGS=
+LIBS=-lGL
+EXTRA_LIBS=
+
+libGLee.so.$(MAJOR).$(MINOR): $(SHARED_OBJS)
+ g++ $(LDFLAGS) $(EXTRA_LDFLAGS) -shared \
+ -Wl,-soname,libGLee.so.$(MAJOR) \
+ -o libGLee.so.$(MAJOR).$(MINOR) \
+ $+ -o $@ $(EXTRA_LIBS) $(LIBS)
+
+libGLee.so: libGLee.so.$(MAJOR).$(MINOR)
+ rm -f $@.$(MAJOR)
+ ln -s $@.$(MAJOR).$(MINOR) $@.$(MAJOR)
+ rm -f $@
+ ln -s $@.$(MAJOR) $@
+
+%.shared.o: %.cpp
+ g++ -o $@ -c $+ $(SHARED_CFLAGS)
+
+%.shared.o: %.c
+ gcc -o $@ -c $+ $(SHARED_CFLAGS)
+
+%.so : %.o
+ g++ $(LDFLAGS) $(EXTRA_LDFLAGS) -shared $^ -o $@
+
+clean:
+ rm -f $(SHARED_OBJS)
+ rm -f $(FIXED_OBJS)
+ rm -f *.so *.so* *~
+
+DESTDIR=
+
+install: libGLee.so
+ install -d "$(DESTDIR)/usr/lib/"
+ cp -a *.so* "$(DESTDIR)/usr/lib/"
+ install -d "$(DESTDIR)/usr/include/"
+ install -Dm644 *.h "$(DESTDIR)/usr/include/"
+ install -d "$(DESTDIR)/usr/lib/pkgconfig/"
+ install -Dm644 glee.pc "$(DESTDIR)/usr/lib/pkgconfig/"
+ install -d "$(DESTDIR)/usr/share/licenses/glee"
+ sed '9,32!d' readme.txt > "$(DESTDIR)/usr/share/licenses/glee/LICENSE"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3914d7923d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer : speps <speps at aur dot archlinux dot org>
+
+pkgname=glee
+pkgver=5.4.0
+pkgrel=3
+pkgdesc="Free cross-platform extension loading library for OpenGL"
+arch=('x86_64')
+url="http://elf-stone.com/glee.php"
+license=('custom:BSD')
+depends=('gcc-libs' 'libgl')
+makedepends=('mesa')
+#source=("http://elf-stone.com/downloads/GLee/GLee-$pkgver-src.tar.gz")
+md5sums=('0bd03db136dbc075488b6c6e83f326ae'
+ '937a48856486291070943488fa2824d0'
+ 'b59e8d11402fb2ee6c4a92bf6916b3aa')
+_spkg=GLee-$pkgver-src.tar.gz
+source=("http://pkgs.fedoraproject.org/repo/pkgs/GLee/$_spkg/$md5sums/$_spkg"
+ glee.pc Makefile) # implement FS#32670 + fix TEXTREL for i686
+
+build() {
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/glee.pc b/glee.pc
new file mode 100644
index 00000000000..0f03b450a8b
--- /dev/null
+++ b/glee.pc
@@ -0,0 +1,12 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: GLee
+Description: GL Easy Extension library
+Version: 5.4.0
+Requires:
+Conflicts:
+Libs: -L${libdir} -lglee
+Cflags: -I${includedir}