前回までにPlamoBuildスクリプトの基本的な使い方を紹介しました。今回は,
設定オプションの指定
ソースコードに必要な設定を施すconfigureスクリプトは,
オプション引数には,
どのようなオプション引数が使用可能かはconfigure --helpで確認できます。前回までに紹介してきたfluxboxの場合,
$ ./configure --help | cat -n .... 76 --enable-regexp regular expression support (default=yes) 77 --enable-slit include code for the Slit (default=yes) 78 --enable-systray include SystemTray (default=yes) 79 --enable-toolbar include Toolbar (default=yes) 80 --enable-ewmh enable support for Extended Window Manager Hints 81 (default=yes) 82 --enable-debug include verbose debugging code (default=no) 83 --enable-test build programs used in testing fluxbox (default=no) 84 --enable-nls include native language support (default=yes) 85 --enable-timedcache use new timed pixmap cache (default=yes) 86 --enable-xmb XMB (multibyte font, utf-8) support (default=yes) 87 --disable-imlib2 disable imlib2 support 88 --disable-xft disable xft support 89 --disable-freetype2 disable freetype2 support 90 --disable-xrender disable xrender support 91 --disable-xpm disable xpm support 92 --disable-xinerama disable xinerama support 93 --disable-xext disable Misc X Extension Library support 94 --disable-xrandr disable xrandr support 95 --disable-fribidi disable fribidi support ...
各引数はそれぞれどのような機能を追加,
一方,
PlamoBuildスクリプトではconfigureに渡す引数はヘッダ部のOPT_
9 OPT_CONFIG="--enable-xmb=no --disable-fribidi"
この設定は,
設定オプションの虎の巻
紹介してきたfluxbox-1.
設定オプションに悩んだ時は,
LFS
一方,
取りあげてきたfluxboxの場合,
Arch Linuxで指定している各オプションの意味は何だろう,
主要ディストリビューションであるRedHat/
なお,
configure以外への対応
make_
たとえば,
54 cd $B
55 export PKG_CONFIG_PATH=/usr/${libdir}/pkgconfig:/usr/share/pkgconfig:/opt/lxqt/${libdir}/pkgconfig
56 export LDFLAGS='-Wl,--as-needed'
57 cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ${OPT_CONFIG[$i]} $S
58
cmakeコマンドはconfigureと同じように,
Perl用のソフトウェアが採用しているMakefile.
一方,
47 cd $B
48 for patch in $patchfiles ; do
49 patch -p1 < $W/$patch
50 done
51
52 python setup.py config
53
...
58 fi
59
60 if [ $opt_build -eq 1 ] ; then
61 cd $B
62 python setup.py build
...
67 fi
68
69 if [ $opt_package -eq 1 ] ; then
70 check_root
71 if [ -d $P ] ; then rm -rf $P ; fi ; mkdir -p $P
72 cd $B
73 python setup.py install --root $P
74
これら4種のビルドシステムはmake_