Commit | Line | Data |
---|---|---|
7d8f0610 JB |
1 | # Description: Library of JPEG support functions. |
2 | # URL: http://www.ijg.org/ | |
3 | # Maintainer: Tilman Sauerbeck, tilman at crux dot nu | |
4 | # Arch Maintainer: System Team, crux-arm at mikeux dot dyndns dot org | |
5 | # Depends on: | |
6 | ||
7 | name=libjpeg | |
8 | version=6b | |
9 | release=1 | |
10 | source=(ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles/jpegsrc.v$version.tar.gz \ | |
11 | $name-$version.cross_compile.patch) | |
12 | ||
13 | build() { | |
14 | cd jpeg-$version | |
15 | ||
16 | patch -p1 -i $SRC/$name-$version.cross_compile.patch | |
17 | ||
18 | ./configure --build=$CHOST \ | |
19 | --host=$CTARGET \ | |
20 | --prefix=/usr \ | |
21 | --enable-shared \ | |
22 | --enable-static | |
23 | make CFLAGS="$CFLAGS" AR="$AR rc" | |
24 | install -d -m 0755 $PKG/usr/{include,lib} | |
25 | make prefix=$PKG/usr install-lib | |
26 | } |