Revision | c68dd0ae7299b8fb61d0608ad02bc8ac474f3be1 (tree) |
---|---|
Time | 2012-02-26 21:17:56 |
Author | matsuand <matsuand@user...> |
Commiter | matsuand |
Added some.
@@ -0,0 +1,63 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +. ./_blfsset.sh | |
4 | + | |
5 | +VER=2.31.18 | |
6 | +LIBFIIVER=3.0.10 | |
7 | +TARGET=glib-$VER | |
8 | +TARGETBALL=$TARGET.tar.xz | |
9 | +TARGETDIR=$TARGET | |
10 | + | |
11 | +echo Check Required... | |
12 | +./_checkRequired.sh python pcre libffi || exit 1 | |
13 | + | |
14 | +echo Check Options... | |
15 | +. ./_checkOptions.sh | |
16 | + | |
17 | +cd $SRC | |
18 | + | |
19 | +echo $TARGET | |
20 | + | |
21 | +echo \ \ Removing old directory... | |
22 | +rm -fr $TARGETDIR | |
23 | + | |
24 | +echo \ \ Extracting... | |
25 | +if ! test -f $DLD/$TARGETBALL; then | |
26 | + echo \ \ Tarball not found: $TARGETBALL && exit 1 | |
27 | +else | |
28 | + tar xf $DLD/$TARGETBALL | |
29 | +fi | |
30 | + | |
31 | +cd $TARGETDIR | |
32 | + | |
33 | +echo \ \ Configuring... | |
34 | +PCRE_LIBS=-lpcre PCRE_CFLAGS=" " \ | |
35 | +LIBFFI_LIBS=-lffi LIBFFI_CFLAGS=-I/usr/lib/libffi-$LIBFIIVER/include \ | |
36 | +./configure --prefix=/usr --sysconfdir=/etc --with-pcre=system \ | |
37 | + 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 | |
38 | + | |
39 | +echo \ \ Making... | |
40 | +make \ | |
41 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
42 | + | |
43 | +echo \ \ Installing... | |
44 | +paco -p $TARGET 'make install' \ | |
45 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
46 | + | |
47 | +paco -p+ $TARGET "\ | |
48 | +ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h" \ | |
49 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
50 | + | |
51 | +paco -p+ $TARGET "\ | |
52 | +cat > /etc/profile.d/glib2-locale.sh << "EOF" | |
53 | +# Use the current locale charset for filenames | |
54 | +# in applications using GLib | |
55 | +export G_FILENAME_ENCODING=@locale | |
56 | +EOF | |
57 | +" | |
58 | + | |
59 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
60 | + | |
61 | +echo \ \ Removing directory... | |
62 | +cd .. && rm -fr $TARGETDIR | |
63 | + |
@@ -0,0 +1,53 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +. ./_blfsset.sh | |
4 | + | |
5 | +VER=8.21 | |
6 | +TARGET=pcre-$VER | |
7 | +TARGETBALL=$TARGET.tar.bz2 | |
8 | +TARGETDIR=$TARGET | |
9 | + | |
10 | +cd $SRC | |
11 | + | |
12 | +echo $TARGET | |
13 | + | |
14 | +echo \ \ Removing old directory... | |
15 | +rm -fr $TARGETDIR | |
16 | + | |
17 | +echo \ \ Extracting... | |
18 | +if ! test -f $DLD/$TARGETBALL; then | |
19 | + echo \ \ Tarball not found: $TARGETBALL && exit 1 | |
20 | +else | |
21 | + tar xf $DLD/$TARGETBALL | |
22 | +fi | |
23 | + | |
24 | +cd $TARGETDIR | |
25 | + | |
26 | +echo \ \ Configuring... | |
27 | +./configure --prefix=/usr \ | |
28 | + --docdir=/usr/share/doc/pcre-$VER \ | |
29 | + --enable-utf8 \ | |
30 | + --enable-unicode-properties \ | |
31 | + --enable-pcregrep-libz \ | |
32 | + --enable-pcregrep-libbz2 \ | |
33 | + 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 | |
34 | + | |
35 | +echo \ \ Making... | |
36 | +make \ | |
37 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
38 | + | |
39 | +echo \ \ Installing... | |
40 | +paco -p $TARGET 'make install' \ | |
41 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
42 | + | |
43 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
44 | + | |
45 | +paco -p+ $TARGET 'mv -v /usr/lib/libpcre.so.* /lib/' \ | |
46 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
47 | + | |
48 | +paco -p+ $TARGET 'ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so' | |
49 | + 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
50 | + | |
51 | +echo \ \ Removing directory... | |
52 | +cd .. && rm -fr $TARGETDIR | |
53 | + |
@@ -0,0 +1,60 @@ | ||
1 | +#!/bin/sh | |
2 | + | |
3 | +. ./_blfsset.sh | |
4 | + | |
5 | +VER=0.26 | |
6 | +TARGET=pkg-config-$VER | |
7 | +TARGETBALL=$TARGET.tar.gz | |
8 | +TARGETDIR=$TARGET | |
9 | + | |
10 | +echo Check Required... | |
11 | +./_checkRequired.sh glib-2 || exit 1 | |
12 | +if test "$1" == "check"; then | |
13 | + exit 0 | |
14 | +fi | |
15 | + | |
16 | +#echo Check Options... | |
17 | +#. ./_checkOptions.sh popt | |
18 | + | |
19 | +#if [ ${OPTION_popt} -eq "1" ]; then | |
20 | +# export WITHPOPT="--with-installed-popt " | |
21 | +#else | |
22 | +# export WITHPOPT="" | |
23 | +#fi | |
24 | + | |
25 | +cd $SRC | |
26 | + | |
27 | +echo $TARGET | |
28 | + | |
29 | +echo \ \ Removing old directory... | |
30 | +rm -fr $TARGETDIR | |
31 | + | |
32 | +echo \ \ Extracting... | |
33 | +if ! test -f $DLD/$TARGETBALL; then | |
34 | + echo \ \ Tarball not found: $TARGETBALL && exit 1 | |
35 | +else | |
36 | + tar xf $DLD/$TARGETBALL | |
37 | +fi | |
38 | + | |
39 | +cd $TARGETDIR | |
40 | + | |
41 | +sed -i -e '21s/EXPECT_RETURN=1/EXPECT_RETURN=0/' check/check-cmd-options | |
42 | + | |
43 | +echo \ \ Configuring... | |
44 | +GLIB_LIBS=-lglib-2.0 GLIB_CFLAGS=-I/usr/include/glib-2.0 \ | |
45 | +./configure --prefix=/usr \ | |
46 | + 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 | |
47 | + | |
48 | +echo \ \ Making... | |
49 | +make \ | |
50 | + 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 | |
51 | + | |
52 | +echo \ \ Installing... | |
53 | +paco -p $TARGET "make install" \ | |
54 | + 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
55 | + | |
56 | +echo -n \ \ Pacoing:\ && paco -a1 | grep $TARGET || echo none | |
57 | + | |
58 | +echo \ \ Removing directory... | |
59 | +cd .. && rm -fr $TARGETDIR | |
60 | + |