summaryrefslogtreecommitdiff
path: root/repo/djvulibre/djvulibre.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/djvulibre/djvulibre.xibuild')
-rw-r--r--repo/djvulibre/djvulibre.xibuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/repo/djvulibre/djvulibre.xibuild b/repo/djvulibre/djvulibre.xibuild
new file mode 100644
index 0000000..d275bd2
--- /dev/null
+++ b/repo/djvulibre/djvulibre.xibuild
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+NAME="djvulibre"
+DESC="Utilities and Libraries for the DjVu image format"
+
+MAKEDEPS=" libjpeg-turbo tiff automake autoconf libtool"
+
+PKG_VER=3.5.28
+SOURCE="https://downloads.sourceforge.net/djvu/djvulibre-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+djvulibre-3.5.27-check-image-size.patch
+djvulibre-3.5.27-check-input-pool.patch
+djvulibre-3.5.27-djvuport-stack-overflow.patch
+djvulibre-3.5.27-export-file.patch
+djvulibre-3.5.27-integer-overflow.patch
+djvulibre-3.5.27-out-of-bound-write-2.patch
+djvulibre-3.5.27-unsigned-short-overflow.patch
+"
+
+prepare() {
+ apply_patches
+ autoreconf -fi
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+
+libs() {
+ pkgdesc="Runtime support for the DjVu image format"
+ mkdir -p "$PKG_DEST"/usr/lib
+ mv "$PKG_DEST"/usr/lib/*.so.* \
+ "$PKG_DEST"/usr/lib/
+}
+