[arch-commits] Commit in glee/repos (8 files)
speps
speps at nymeria.archlinux.org
Tue Mar 19 04:49:30 UTC 2013
Date: Tuesday, March 19, 2013 @ 05:49:29
Author: speps
Revision: 86549
archrelease: copy trunk to community-i686, community-x86_64
Added:
glee/repos/community-i686/Makefile
(from rev 86548, glee/trunk/Makefile)
glee/repos/community-i686/PKGBUILD
(from rev 86548, glee/trunk/PKGBUILD)
glee/repos/community-i686/glee.pc
(from rev 86548, glee/trunk/glee.pc)
glee/repos/community-x86_64/Makefile
(from rev 86548, glee/trunk/Makefile)
glee/repos/community-x86_64/PKGBUILD
(from rev 86548, glee/trunk/PKGBUILD)
glee/repos/community-x86_64/glee.pc
(from rev 86548, glee/trunk/glee.pc)
Deleted:
glee/repos/community-i686/PKGBUILD
glee/repos/community-x86_64/PKGBUILD
---------------------------+
/PKGBUILD | 62 ++++++++++++++++++++++++++++++++++++++++++++
community-i686/Makefile | 55 +++++++++++++++++++++++++++++++++++++++
community-i686/PKGBUILD | 38 --------------------------
community-i686/glee.pc | 12 ++++++++
community-x86_64/Makefile | 55 +++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 38 --------------------------
community-x86_64/glee.pc | 12 ++++++++
7 files changed, 196 insertions(+), 76 deletions(-)
Copied: glee/repos/community-i686/Makefile (from rev 86548, glee/trunk/Makefile)
===================================================================
--- community-i686/Makefile (rev 0)
+++ community-i686/Makefile 2013-03-19 04:49:29 UTC (rev 86549)
@@ -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"
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2013-03-19 04:49:07 UTC (rev 86548)
+++ community-i686/PKGBUILD 2013-03-19 04:49:29 UTC (rev 86549)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer : SpepS <dreamspepser at yahoo dot it>
-# Contributor: Philipp Brüschweiler <blei42 at gmail dot com >
-
-pkgname=glee
-pkgver=5.4
-pkgrel=4
-pkgdesc="Free cross-platform extension loading library for OpenGL."
-arch=('i686' 'x86_64')
-url="http://elf-stone.com/glee.php"
-license=('BSD')
-depends=('gcc-libs' 'libgl')
-makedepends=('mesa')
-source=("http://elf-stone.com/downloads/GLee/GLee-5.4.0-src.tar.gz")
-md5sums=('0bd03db136dbc075488b6c6e83f326ae')
-
-build() {
- cd "$srcdir"
-
- [ "$CARCH" = 'x86_64' ] && export CXXFLAGS="$CXXFLAGS -fPIC"
-
- ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "$srcdir"
-
- # lib and headers
- install -Dm755 libGLee.so "$pkgdir/usr/lib/libGLee.so"
- install -Dm644 GLee.h "$pkgdir/usr/include/GLee.h"
-
- # license
- install -Dm644 readme.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- sed -i '9,32!d' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: glee/repos/community-i686/PKGBUILD (from rev 86548, glee/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-03-19 04:49:29 UTC (rev 86549)
@@ -0,0 +1,31 @@
+# $Id$
+# 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
Copied: glee/repos/community-i686/glee.pc (from rev 86548, glee/trunk/glee.pc)
===================================================================
--- community-i686/glee.pc (rev 0)
+++ community-i686/glee.pc 2013-03-19 04:49:29 UTC (rev 86549)
@@ -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}
Copied: glee/repos/community-x86_64/Makefile (from rev 86548, glee/trunk/Makefile)
===================================================================
--- community-x86_64/Makefile (rev 0)
+++ community-x86_64/Makefile 2013-03-19 04:49:29 UTC (rev 86549)
@@ -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"
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2013-03-19 04:49:07 UTC (rev 86548)
+++ community-x86_64/PKGBUILD 2013-03-19 04:49:29 UTC (rev 86549)
@@ -1,38 +0,0 @@
-# $Id$
-# Maintainer : SpepS <dreamspepser at yahoo dot it>
-# Contributor: Philipp Brüschweiler <blei42 at gmail dot com >
-
-pkgname=glee
-pkgver=5.4
-pkgrel=4
-pkgdesc="Free cross-platform extension loading library for OpenGL."
-arch=('i686' 'x86_64')
-url="http://elf-stone.com/glee.php"
-license=('BSD')
-depends=('gcc-libs' 'libgl')
-makedepends=('mesa')
-source=("http://elf-stone.com/downloads/GLee/GLee-5.4.0-src.tar.gz")
-md5sums=('0bd03db136dbc075488b6c6e83f326ae')
-
-build() {
- cd "$srcdir"
-
- [ "$CARCH" = 'x86_64' ] && export CXXFLAGS="$CXXFLAGS -fPIC"
-
- ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "$srcdir"
-
- # lib and headers
- install -Dm755 libGLee.so "$pkgdir/usr/lib/libGLee.so"
- install -Dm644 GLee.h "$pkgdir/usr/include/GLee.h"
-
- # license
- install -Dm644 readme.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- sed -i '9,32!d' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: glee/repos/community-x86_64/PKGBUILD (from rev 86548, glee/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-03-19 04:49:29 UTC (rev 86549)
@@ -0,0 +1,31 @@
+# $Id$
+# 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
Copied: glee/repos/community-x86_64/glee.pc (from rev 86548, glee/trunk/glee.pc)
===================================================================
--- community-x86_64/glee.pc (rev 0)
+++ community-x86_64/glee.pc 2013-03-19 04:49:29 UTC (rev 86549)
@@ -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}
More information about the arch-commits
mailing list