summaryrefslogtreecommitdiff
path: root/portsToCome/libgd
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-27 10:13:52 +0200
committerErich Eckner <git@eckner.net>2018-05-27 10:13:52 +0200
commit14a8f5d3c7889f2046a008b1b1dc29f485ebb359 (patch)
tree644ebb60f7155dd5c139d233857684fbcd8546e6 /portsToCome/libgd
downloadcrux-ports-14a8f5d3c7889f2046a008b1b1dc29f485ebb359.tar.xz
initial commit
Diffstat (limited to 'portsToCome/libgd')
-rw-r--r--portsToCome/libgd/.footprint37
-rw-r--r--portsToCome/libgd/.md5sum2
-rw-r--r--portsToCome/libgd/Pkgfile21
-rwxr-xr-xportsToCome/libgd/lastVersion.sh11
-rw-r--r--portsToCome/libgd/libvpx1.5-compatibility.patch24
5 files changed, 95 insertions, 0 deletions
diff --git a/portsToCome/libgd/.footprint b/portsToCome/libgd/.footprint
new file mode 100644
index 0000000..8d6b348
--- /dev/null
+++ b/portsToCome/libgd/.footprint
@@ -0,0 +1,37 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/annotate
+-rwxr-xr-x root/root usr/bin/bdftogd
+-rwxr-xr-x root/root usr/bin/gd2copypal
+-rwxr-xr-x root/root usr/bin/gd2togif
+-rwxr-xr-x root/root usr/bin/gd2topng
+-rwxr-xr-x root/root usr/bin/gdcmpgif
+-rwxr-xr-x root/root usr/bin/gdlib-config
+-rwxr-xr-x root/root usr/bin/gdparttopng
+-rwxr-xr-x root/root usr/bin/gdtopng
+-rwxr-xr-x root/root usr/bin/giftogd2
+-rwxr-xr-x root/root usr/bin/pngtogd
+-rwxr-xr-x root/root usr/bin/pngtogd2
+-rwxr-xr-x root/root usr/bin/webpng
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/entities.h
+-rw-r--r-- root/root usr/include/gd.h
+-rw-r--r-- root/root usr/include/gd_color_map.h
+-rw-r--r-- root/root usr/include/gd_errors.h
+-rw-r--r-- root/root usr/include/gd_io.h
+-rw-r--r-- root/root usr/include/gdcache.h
+-rw-r--r-- root/root usr/include/gdfontg.h
+-rw-r--r-- root/root usr/include/gdfontl.h
+-rw-r--r-- root/root usr/include/gdfontmb.h
+-rw-r--r-- root/root usr/include/gdfonts.h
+-rw-r--r-- root/root usr/include/gdfontt.h
+-rw-r--r-- root/root usr/include/gdfx.h
+-rw-r--r-- root/root usr/include/gdpp.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libgd.a
+-rwxr-xr-x root/root usr/lib/libgd.la
+lrwxrwxrwx root/root usr/lib/libgd.so -> libgd.so.3.0.0
+lrwxrwxrwx root/root usr/lib/libgd.so.3 -> libgd.so.3.0.0
+-rwxr-xr-x root/root usr/lib/libgd.so.3.0.0
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/gdlib.pc
diff --git a/portsToCome/libgd/.md5sum b/portsToCome/libgd/.md5sum
new file mode 100644
index 0000000..22441e7
--- /dev/null
+++ b/portsToCome/libgd/.md5sum
@@ -0,0 +1,2 @@
+9076f3abd1f9815d106da36467ea15bc libgd-2.1.1.tar.xz
+0fd1807a40b46c3ab3f300b88923cb07 libvpx1.5-compatibility.patch
diff --git a/portsToCome/libgd/Pkgfile b/portsToCome/libgd/Pkgfile
new file mode 100644
index 0000000..743f44b
--- /dev/null
+++ b/portsToCome/libgd/Pkgfile
@@ -0,0 +1,21 @@
+# Description: gd libraries
+# URL: http://www.libgd.org
+# Maintainer: Erich Eckner, erich at eckner dot net
+# Packager: Antti Nykanen, aon at iki dot fi
+# Depends on: xorg-libxpm libpng libjpeg-turbo freetype
+
+name=libgd
+version=2.1.1
+release=1
+source=(https://bitbucket.org/libgd/gd-libgd/downloads/$name-$version.tar.xz
+ libvpx1.5-compatibility.patch)
+
+build () {
+ cd $name-$version
+
+ patch -p0 < $SRC/libvpx1.5-compatibility.patch
+
+ ./configure --prefix=/usr
+
+ make DESTDIR=$PKG install
+}
diff --git a/portsToCome/libgd/lastVersion.sh b/portsToCome/libgd/lastVersion.sh
new file mode 100755
index 0000000..cb712d6
--- /dev/null
+++ b/portsToCome/libgd/lastVersion.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+latestVersion="$(\
+ curl "https://bitbucket.org/libgd/gd-libgd/downloads/" 2> /dev/null | \
+ tr "\"" "\n" | \
+ grep "^/libgd/gd-libgd/downloads/libgd-.*\.tar\.xz\$" | \
+ sed "s|^/libgd/gd-libgd/downloads/libgd-\(.*\)\.tar\.xz\$|\1|" | \
+ sort -V | \
+ tail -n1)"
+
+echo -n "${latestVersion}"
diff --git a/portsToCome/libgd/libvpx1.5-compatibility.patch b/portsToCome/libgd/libvpx1.5-compatibility.patch
new file mode 100644
index 0000000..8edfcc3
--- /dev/null
+++ b/portsToCome/libgd/libvpx1.5-compatibility.patch
@@ -0,0 +1,24 @@
+--- src/webpimg.c 2015-11-27 15:59:08.229502506 +0100
++++ src/webpimg.c 2015-11-27 16:00:23.412086698 +0100
+@@ -711,14 +711,14 @@
+ 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);
+