diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/glee | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/glee')
-rw-r--r-- | community/glee/Makefile | 55 | ||||
-rw-r--r-- | community/glee/PKGBUILD | 31 | ||||
-rw-r--r-- | community/glee/glee.pc | 12 |
3 files changed, 98 insertions, 0 deletions
diff --git a/community/glee/Makefile b/community/glee/Makefile new file mode 100644 index 000000000..06425fd82 --- /dev/null +++ b/community/glee/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/community/glee/PKGBUILD b/community/glee/PKGBUILD new file mode 100644 index 000000000..4f89ad918 --- /dev/null +++ b/community/glee/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 86549 2013-03-19 04:49:29Z speps $ +# Maintainer : speps <speps at aur dot archlinux dot org> + +pkgname=glee +pkgver=5.4.0 +pkgrel=1 +pkgdesc="Free cross-platform extension loading library for OpenGL" +arch=('i686' '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() { + cd "$srcdir" + make +} + +package() { + cd "$srcdir" + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et:
\ No newline at end of file diff --git a/community/glee/glee.pc b/community/glee/glee.pc new file mode 100644 index 000000000..0f03b450a --- /dev/null +++ b/community/glee/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} |