CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libjpeg: initial import (verified compilation with my own patch)
authorJose V Beneyto <sepen@crux.nu>
Mon, 21 Dec 2009 11:24:27 +0000 (12:24 +0100)
committerJose V Beneyto <sepen@crux.nu>
Mon, 21 Dec 2009 11:24:27 +0000 (12:24 +0100)
libjpeg/.footprint [new file with mode: 0644]
libjpeg/.md5sum [new file with mode: 0644]
libjpeg/Pkgfile [new file with mode: 0644]

diff --git a/libjpeg/.footprint b/libjpeg/.footprint
new file mode 100644 (file)
index 0000000..fd4fc83
--- /dev/null
@@ -0,0 +1,12 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/include/
+-rw-r--r--     root/root       usr/include/jconfig.h
+-rw-r--r--     root/root       usr/include/jerror.h
+-rw-r--r--     root/root       usr/include/jmorecfg.h
+-rw-r--r--     root/root       usr/include/jpeglib.h
+drwxr-xr-x     root/root       usr/lib/
+-rw-r--r--     root/root       usr/lib/libjpeg.a
+-rwxr-xr-x     root/root       usr/lib/libjpeg.la
+lrwxrwxrwx     root/root       usr/lib/libjpeg.so -> libjpeg.so.62.0.0
+lrwxrwxrwx     root/root       usr/lib/libjpeg.so.62 -> libjpeg.so.62.0.0
+-rwxr-xr-x     root/root       usr/lib/libjpeg.so.62.0.0
diff --git a/libjpeg/.md5sum b/libjpeg/.md5sum
new file mode 100644 (file)
index 0000000..c9f3c72
--- /dev/null
@@ -0,0 +1,2 @@
+dbd5f3b47ed13132f04c685d608a7547  jpegsrc.v6b.tar.gz
+20335e4295b3424919edb0f7ba75013a  libjpeg-6b.cross_compile.patch
diff --git a/libjpeg/Pkgfile b/libjpeg/Pkgfile
new file mode 100644 (file)
index 0000000..924aeec
--- /dev/null
@@ -0,0 +1,26 @@
+# Description: Library of JPEG support functions.
+# URL: http://www.ijg.org/
+# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
+# Arch Maintainer: System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on:
+
+name=libjpeg
+version=6b
+release=1
+source=(ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/jpegsrc.v$version.tar.gz \
+        $name-$version.cross_compile.patch)
+
+build() {
+  cd jpeg-$version
+  
+  patch -p1 -i $SRC/$name-$version.cross_compile.patch
+  
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --enable-shared \
+              --enable-static
+  make CFLAGS="$CFLAGS" AR="$AR rc"
+  install -d -m 0755 $PKG/usr/{include,lib}
+  make prefix=$PKG/usr install-lib
+}