diff --git a/x11/library/glew/actions.py b/x11/library/glew/actions.py new file mode 100644 index 0000000000..d867c1cc7b --- /dev/null +++ b/x11/library/glew/actions.py @@ -0,0 +1,41 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def build(): + shelltools.system("sed -i 's|lib64|lib|' config/Makefile.linux") + shelltools.system("sed -i '/^.PHONY: .*\.pc$/d' Makefile") + + if get.buildTYPE() == "emul32": + pisitools.dosed("config/Makefile.linux", "LD = cc", "LD = gcc -m32") + autotools.make('CC="%s -m32" CXXFLAGS="%s"' % (get.CC(), get.CXXFLAGS())) + return + else: + autotools.make('CC=%s CXXFLAGS="%s"' % (get.CC(), get.CXXFLAGS())) + return + +def install(): + if get.buildTYPE() == "emul32": + autotools.rawInstall("GLEW_DEST=%s/usr/ \ + INCDIR=%s/emul32 \ + BINDIR=%s/emul32 \ + LIBDIR=%s/usr/lib32" % (get.installDIR() , get.installDIR(), get.installDIR(), get.installDIR())) + + pisitools.remove("/usr/lib32/libGLEW.a") + pisitools.dosed("%s/usr/lib32/pkgconfig/glew.pc" % get.installDIR(), "/usr/lib", "/usr/lib32") + return + + autotools.rawInstall("GLEW_DEST=%s/usr/ \ + INCDIR=%s/usr/include/GL \ + BINDIR=%s/usr/bin/ \ + LIBDIR=%s/usr/lib" % (get.installDIR() , get.installDIR(), get.installDIR(), get.installDIR())) + + pisitools.dohtml("doc/*") + pisitools.dodoc("README.txt", "doc/*.txt") \ No newline at end of file diff --git a/x11/library/glew/files/add_bin_target.patch b/x11/library/glew/files/add_bin_target.patch new file mode 100644 index 0000000000..b566c2c3b6 --- /dev/null +++ b/x11/library/glew/files/add_bin_target.patch @@ -0,0 +1,13 @@ +Index: glew-1.5.8/Makefile +=================================================================== +--- glew-1.5.8.orig/Makefile ++++ glew-1.5.8/Makefile +@@ -172,7 +172,7 @@ bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN. + + install.all: install install.mx install.bin + +-install: install.include install.lib install.pkgconfig ++install: install.include install.lib install.pkgconfig install.bin + + install.mx: install.include install.lib.mx install.pkgconfig.mx + diff --git a/x11/library/glew/pspec.xml b/x11/library/glew/pspec.xml new file mode 100644 index 0000000000..a05042766a --- /dev/null +++ b/x11/library/glew/pspec.xml @@ -0,0 +1,142 @@ + + + + + glew + http://glew.sourceforge.net + + PisiLinux Community + admins@pisilinux.org + + BSD + GLX + SGI-B + GPLv2 + app:console + library + OpenGL Extension Wrangler Library + OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. + mirrors://sourceforge/glew/1.12.0/glew-1.12.0.tgz + + mesa-glu-devel + + + + add_bin_target.patch + + + + + glew + + mesa + libX11 + + + /usr/lib + /usr/share/doc + /usr/bin + + + + + glew-devel + Development files for glew + + mesa-glu-devel + glew + + + /usr/include/GL + /usr/lib/pkgconfig + /usr/lib32/pkgconfig + + + + + glew-32bit + emul32 + 32-bit shared libraries for glew + emul32 + + mesa-32bit + libX11-32bit + + + mesa-32bit + glibc-32bit + libX11-32bit + glew + + + + /usr/lib32 + + + + + + 2015-08-15 + 1.12.0 + Version bump. + Osman Erkan + osman.erkan@pisilinux.org + + + 2015-01-27 + 1.10.0 + Release bump + Dep Fixed + Osman Erkan + osman.erkan@pisilinux.org + + + 2014-05-16 + 1.10.0 + Release bump. + Marcin Bojara + marcin@pisilinux.org + + + 2014-03-07 + 1.10.0 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2013-11-06 + 1.9.0 + Fix deps. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-10-08 + 1.9.0 + Rebuild. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-08-25 + 1.9.0 + Release bump. + Marcin Bojara + marcin@pisilinux.org + + + 2013-07-30 + 1.9.0 + Rebuild + PisiLinux Community + admins@pisilinux.org + + + 2012-10-30 + 1.9.0 + First release + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + \ No newline at end of file diff --git a/x11/library/glew/translations.xml b/x11/library/glew/translations.xml new file mode 100644 index 0000000000..50a0b5226c --- /dev/null +++ b/x11/library/glew/translations.xml @@ -0,0 +1,18 @@ + + + + glew + OpenGL Extension Wrangler Library (GLEW) çok platform destekli, C/C++ genişleme kitaplığı + OpenGL Extension Wrangler Library (GLEW) çok platform destekli, C/C++ genişleme kitaplığıdır. + + + + glew-devel + glew için geliştirme dosyaları + + + + glew-32bit + glew için 32-bit paylaşımlı kitaplıklar + +