修訂 | 05659237dbb17e094d57fe97592d70d59f9eddb8 (tree) |
---|---|
時間 | 2012-03-13 23:42:22 |
作者 | matsuand <matsuand@user...> |
Commiter | matsuand |
[BLFS] Added libmng.
@@ -0,0 +1,53 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +VER=1.0.10 | |
4 | +TARGET=libmng-$VER | |
5 | +TARGETBALL=$TARGET.tar.bz2 | |
6 | +TARGETDIR=$TARGET | |
7 | + | |
8 | +. ./_blfsset.sh | |
9 | + | |
10 | +echo Check Required... | |
11 | +./_checkRequired.sh lcms libjpeg || exit 1 | |
12 | + | |
13 | +cd $SRC | |
14 | + | |
15 | +echo $TARGET | |
16 | + | |
17 | +echo \ \ Removing old directory... | |
18 | +rm -fr $TARGETDIR | |
19 | + | |
20 | +. $WRK/_extract.sh | |
21 | + | |
22 | +cd $TARGETDIR | |
23 | + | |
24 | +cp makefiles/makefile.linux Makefile | |
25 | +sed -i -e 's/unroll-loops/& -fPIC/' Makefile | |
26 | + | |
27 | +echo \ \ Making... | |
28 | +make \ | |
29 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
30 | + | |
31 | +echo \ \ Installing... | |
32 | +paco -p $TARGET "make prefix=/usr install" \ | |
33 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
34 | + | |
35 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
36 | + | |
37 | +paco -p+ $TARGET "\ | |
38 | +install -v -m644 doc/man/*.3 /usr/share/man/man3" \ | |
39 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
40 | + | |
41 | +paco -p+ $TARGET "\ | |
42 | +install -v -m644 doc/man/*.5 /usr/share/man/man5" \ | |
43 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
44 | +paco -p+ $TARGET "\ | |
45 | +install -v -m755 -d /usr/share/doc/libmng-$VER" \ | |
46 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
47 | +paco -p+ $TARGET "\ | |
48 | +install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-$VER" \ | |
49 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
50 | + | |
51 | +echo \ \ Removing directory... | |
52 | +cd .. && rm -fr $TARGETDIR | |
53 | + |