work for sane-backends 1

This commit is contained in:
Ertuğrul Erata
2015-08-02 22:36:35 +03:00
parent 636428c722
commit 35c121d1b3
30 changed files with 1359 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/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 setup():
shelltools.system("./bootstrap.sh")
autotools.configure("--disable-static \
--with-fontconfig \
--with-png \
--with-freetype \
--with-jpeg \
--without-xpm")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dohtml(".")
pisitools.dodoc("COPYING", "NEWS", "ChangeLog")
@@ -0,0 +1,37 @@
From d41eb72cd4545c394578332e5c102dee69e02ee8 Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Tue, 7 Apr 2015 13:11:03 +0200
Subject: [PATCH] Fix build with latest libvpx 1.4.0
These new constants exist at least since 1.0.0
Compatibility ones have been droped in 1.4.0
---
src/webpimg.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/webpimg.c b/src/webpimg.c
index cf73d64..e49fcc6 100644
--- a/src/webpimg.c
+++ b/src/webpimg.c
@@ -711,14 +711,14 @@ static WebPResult VPXEncode(const uint8* Y,
codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);
- vpx_img_wrap(&img, IMG_FMT_I420,
+ vpx_img_wrap(&img, VPX_IMG_FMT_I420,
y_width, y_height, 16, (uint8*)(Y));
- img.planes[PLANE_Y] = (uint8*)(Y);
- img.planes[PLANE_U] = (uint8*)(U);
- img.planes[PLANE_V] = (uint8*)(V);
- img.stride[PLANE_Y] = y_stride;
- img.stride[PLANE_U] = uv_stride;
- img.stride[PLANE_V] = uv_stride;
+ img.planes[VPX_PLANE_Y] = (uint8*)(Y);
+ img.planes[VPX_PLANE_U] = (uint8*)(U);
+ img.planes[VPX_PLANE_V] = (uint8*)(V);
+ img.stride[VPX_PLANE_Y] = y_stride;
+ img.stride[VPX_PLANE_U] = uv_stride;
+ img.stride[VPX_PLANE_V] = uv_stride;
res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);
+99
View File
@@ -0,0 +1,99 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gd</Name>
<Homepage>http://www.libgd.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>as-is</License>
<License>BSD</License>
<IsA>library</IsA>
<Summary>A fast library for creating graphic images</Summary>
<Description>The gd graphics library allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and to write out the result as a PNG or JPEG file. This is particularly useful in Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers. Note that gd is not a paint program.</Description>
<Archive sha1sum="b089ee7fc0b47b8aa4c2c70087506806637f03be" type="targz">https://github.com/libgd/libgd/archive/gd-2.1.1.tar.gz</Archive> <BuildDependencies>
<Dependency>fontconfig-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>freetype-devel</Dependency>
<Dependency>libpng-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
<Dependency>tiff-devel</Dependency>
<Dependency>libvpx-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>gd-2.1.1-libvpx-1.4.0.patch</Patch>
</Patches>
</Source>
<Package>
<Name>gd</Name>
<RuntimeDependencies>
<Dependency>fontconfig</Dependency>
<Dependency>tiff</Dependency>
<Dependency>libvpx</Dependency>
<Dependency>libjpeg-turbo</Dependency>
<Dependency>zlib</Dependency>
<Dependency>freetype</Dependency>
<Dependency>libpng</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc/gd</Path>
</Files>
</Package>
<Package>
<Name>gd-devel</Name>
<Summary>Development files for gd</Summary>
<RuntimeDependencies>
<Dependency release="current">gd</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="executable">/usr/bin/gdlib-config</Path>
</Files>
</Package>
<Package>
<Name>gd-docs</Name>
<Summary>Documents for gd</Summary>
<Files>
<Path fileType="doc">/usr/share/doc/gd/html</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2014-08-02</Date>
<Version>2.1.1</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="3">
<Date>2014-05-24</Date>
<Version>2.1.0</Version>
<Comment>Version bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-25</Date>
<Version>2.0.35</Version>
<Comment>Rebuild</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-12</Date>
<Version>2.0.35</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>gd</Name>
<Summary xml:lang="tr">Hızlı bir şekilde resim oluşturmak için bir kütüphane</Summary>
<Summary xml:lang="fr">Une librairie rapide pour créer des graphiques en images.</Summary>
</Source>
<Package>
<Name>gd-devel</Name>
<Summary xml:lang="tr">gd için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>gd-docs</Name>
<Summary xml:lang="tr">gd için geliştirme belgeleri</Summary>
</Package>
</PISI>