Installasjon av Motif
Pakk først ut oppdateringstarballen:
tar xvf ../motif-2.3.8-patches-5.tar.xz
Nå, bruk de forskjellige oppdateringene fra tarballen:
patch -Np1 -i patch/01_all_solaris.patch &&
patch -Np1 -i patch/02_all_sanitise-paths.patch &&
patch -Np1 -i patch/03_all_solaris-11.patch &&
patch -Np1 -i patch/04_all_parallel-make.patch &&
patch -Np1 -i patch/05_all_install-dirs.patch &&
patch -Np1 -i patch/06_all_cflags.patch &&
patch -Np1 -i patch/07_all_no-demos.patch &&
patch -Np1 -i patch/08_all_xmbind-xorg.patch &&
patch -Np1 -i patch/09_all_slibtool.patch &&
patch -Np1 -i patch/10_all_string_h.patch &&
patch -Np1 -i patch/11_all_acinclude.patch &&
patch -Np1 -i patch/12_all_noreturn.patch &&
patch -Np1 -i patch/13_all_xpm-comments.patch &&
patch -Np1 -i patch/14_all_xpm-width-0.patch
Fjern deretter automatisk genererte filer for å sikre en vellykket
bygging:
rm -rvf tools/wml/{wmllex,wmluiltok}.c
Nå, regenerer konfigurasjonsskriptene:
touch AUTHORS NEWS &&
autoreconf -fiv -I.
Angi flere miljøvariabler for å sikre en fungerende versjon:
export OLDLANG=$LANG &&
export LANG=C &&
export LEX=flex &&
export YACC=byacc
Installer nå Motif ved å kjøre følgende kommandoer:
sed -i '1 i\%option main' tools/wml/wmluiltok.l &&
CFLAGS+=" -std=gnu17" \
CXXFLAGS+=" -std=gnu17" \
./configure --prefix=/usr \
--with-x \
--enable-motif22-compatibility \
--disable-static \
--enable-utf8 \
--enable-xft \
--enable-jpeg \
--enable-png &&
make
Nå som root bruker:
make install &&
make -C demos install-data &&
rm -rvf /usr/share/doc/motif-2.3.8/demos &&
install -v -m755 -d /usr/share/doc/motif-2.3.8/demos &&
mv -v /usr/share/Xm/* /usr/share/doc/motif-2.3.8/demos &&
rmdir -v /usr/share/Xm
Fortsatt som root bruker, installer
noen hjelpefiler:
install -v -m755 -d /usr/share/X11/app-defaults &&
cat > /usr/share/X11/app-defaults/Mwm << "EOF"
Mwm*fontList: variable
Mwm*iconClick: False
Mwm*iconPlacement: top left
Mwm*moveOpaque: True
Mwm*rootButtonClick: True
Mwm*foreground: #000000
Mwm*background: #B8B8C0
Mwm*enableThinThickness: True
Mwm*enableEtchedInMenu: True
Mwm*menu*fontList: -adobe-helvetica-medium-r-*--*-120-*-*-*-*-*-*
Mwm*client*title*fontList: -adobe-helvetica-bold-r-*--*-100-*-*-*-*-*-*
Mwm*icon*fontList: -adobe-helvetica-bold-r-*--*-80-*-*-*-*-*-*
Mwm*feedback*fontList: -adobe-helvetica-bold-r-*--*-100-*-*-*-*-*-*
Mwm*multiClickTime: 300
Mwm*useIconBox: True
EOF
install -v -m755 -d /usr/share/xsessions &&
cat > /usr/share/xsessions/mwm.desktop << "EOF"
[Desktop Entry]
Name=MWM
Comment=The Motif Window Manager
Exec=/usr/bin/mwm
TryExec=/usr/bin/mwm
Type=Application
EOF
Til slutt, fjern miljøvariablene som tidligere ble angitt:
export LANG=$OLDLANG &&
unset OLDLANG &&
unset LEX &&
unset YACC