29 |
SRC_URI=( |
SRC_URI=( |
30 |
http://www.motifzone.org/files/public_downloads/${PNAME}/${PVER%.*}/${PVER}/${SRCFILE} |
http://www.motifzone.org/files/public_downloads/${PNAME}/${PVER%.*}/${PVER}/${SRCFILE} |
31 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
32 |
mirror://${PNAME}/${PNAME}-2.2.3-Mwm.defaults |
mirror://${PNAME}/openmotif-2.2.3-Mwm.defaults |
33 |
) |
) |
34 |
|
|
35 |
# fake atm |
# fake atm |
40 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
41 |
|
|
42 |
# disable compilation of demo binaries |
# disable compilation of demo binaries |
43 |
all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am" || die |
all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;s/\([ \t\n\\]*doc\)\\ \\\\/\1/;}' Makefile.am" || die |
44 |
|
|
45 |
# add X.Org vendor string to aliases for virtual bindings |
# add X.Org vendor string to aliases for virtual bindings |
46 |
all-abis "echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >> bindings/xmbind.alias" || die |
all-abis "echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >> bindings/xmbind.alias" || die |
47 |
|
|
48 |
# add missing files to run autoconf successfully |
# add missing files to run autoconf successfully |
49 |
all-abis "touch NEWS AUTHORS" || die |
all-abis "touch NEWS AUTHORS INSTALL COPYING" || die |
50 |
all-abis autoreconf -I. --verbose --force --install || die |
all-abis autoreconf -I. --verbose --force --install || die |
51 |
} |
} |
52 |
|
|
59 |
export CFLAGS="${CFLAGS} -fno-strict-aliasing" |
export CFLAGS="${CFLAGS} -fno-strict-aliasing" |
60 |
export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
61 |
|
|
62 |
mconfigure --with-x --x-libraries='/usr/$(mlibdir)' --disable-printing --enable-png --enable-jpeg || die |
mconfigure \ |
63 |
|
--with-x \ |
64 |
|
--x-libraries='/usr/$(mlibdir)' \ |
65 |
|
--disable-printing \ |
66 |
|
--disable-xft \ |
67 |
|
--enable-png \ |
68 |
|
--enable-jpeg \ |
69 |
|
|| die |
70 |
|
|
71 |
# doens't like optimations |
# doens't like optimations |
72 |
mmake -j1 || die |
mmake -j1 || die |
73 |
} |
} |
74 |
|
|
75 |
|
mcore_generic_src_install() |
|
src_install() |
|
76 |
{ |
{ |
77 |
# needed directories |
# needed directories |
78 |
minstalldir /etc/X11/app-defaults || die |
minstalldir /etc/X11/app-defaults || die |
93 |
done |
done |
94 |
|
|
95 |
# missing app-defaults |
# missing app-defaults |
96 |
minstalletc ${PNAME}-2.2.3-Mwm.defaults Mwm /etc/X11/app-defaults || die |
minstalletc openmotif-2.2.3-Mwm.defaults Mwm /etc/X11/app-defaults || die |
97 |
|
|
98 |
# prune unneeded stuff |
# prune unneeded stuff |
99 |
all-abis '[ -e ${BINDIR}/usr/$(mlibdir)/X11/bindings ] && rm -rf ${BINDIR}/usr/$(mlibdir)/X11/bindings || die' |
all-abis '[ -e ${BINDIR}/usr/$(mlibdir)/X11/bindings ] && rm -rf ${BINDIR}/usr/$(mlibdir)/X11/bindings || die' |