glew: depoya eklendi.
This commit is contained in:
@@ -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")
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>glew</Name>
|
||||
<Homepage>http://glew.sourceforge.net</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<License>GLX</License>
|
||||
<License>SGI-B</License>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>OpenGL Extension Wrangler Library</Summary>
|
||||
<Description>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.</Description>
|
||||
<Archive sha1sum="070dfb61dbb7cd0915517decf467264756469a94" type="targz">mirrors://sourceforge/glew/1.12.0/glew-1.12.0.tgz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>mesa-glu-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!--Dont change order of patch, otherwise "add_bin_target" cannot be applied-->
|
||||
<Patch level="1">add_bin_target.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>glew</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>mesa</Dependency>
|
||||
<Dependency>libX11</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>glew-devel</Name>
|
||||
<Summary>Development files for glew</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>mesa-glu-devel</Dependency>
|
||||
<Dependency release="current">glew</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include/GL</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/lib32/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>glew-32bit</Name>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Summary>32-bit shared libraries for glew</Summary>
|
||||
<BuildType>emul32</BuildType>
|
||||
<BuildDependencies>
|
||||
<Dependency>mesa-32bit</Dependency>
|
||||
<Dependency>libX11-32bit</Dependency>
|
||||
</BuildDependencies>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>mesa-32bit</Dependency>
|
||||
<Dependency>glibc-32bit</Dependency>
|
||||
<Dependency>libX11-32bit</Dependency>
|
||||
<Dependency release="current">glew</Dependency>
|
||||
</RuntimeDependencies>
|
||||
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="9">
|
||||
<Date>2015-08-15</Date>
|
||||
<Version>1.12.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="8">
|
||||
<Date>2015-01-27</Date>
|
||||
<Version>1.10.0</Version>
|
||||
<Comment>Release bump + Dep Fixed</Comment>
|
||||
<Name>Osman Erkan</Name>
|
||||
<Email>osman.erkan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2014-05-16</Date>
|
||||
<Version>1.10.0</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2014-03-07</Date>
|
||||
<Version>1.10.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2013-11-06</Date>
|
||||
<Version>1.9.0</Version>
|
||||
<Comment>Fix deps.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2013-10-08</Date>
|
||||
<Version>1.9.0</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-08-25</Date>
|
||||
<Version>1.9.0</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-07-30</Date>
|
||||
<Version>1.9.0</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-30</Date>
|
||||
<Version>1.9.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>glew</Name>
|
||||
<Summary xml:lang="tr">OpenGL Extension Wrangler Library (GLEW) çok platform destekli, C/C++ genişleme kitaplığı</Summary>
|
||||
<Description xml:lang="tr">OpenGL Extension Wrangler Library (GLEW) çok platform destekli, C/C++ genişleme kitaplığıdır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>glew-devel</Name>
|
||||
<Summary xml:lang="tr">glew için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>glew-32bit</Name>
|
||||
<Summary xml:lang="tr">glew için 32-bit paylaşımlı kitaplıklar</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user