Magellan Linux

Diff of /smage/trunk/core/openmotif/openmotif-2.3.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 344 by niro, Mon May 3 08:48:46 2010 UTC revision 353 by niro, Mon May 3 09:55:42 2010 UTC
# Line 29  sminclude multilib mtools mcore-split Line 29  sminclude multilib mtools mcore-split
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
# Line 40  src_prepare() Line 40  src_prepare()
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    
# Line 59  src_compile() Line 59  src_compile()
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
# Line 87  src_install() Line 93  src_install()
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'

Legend:
Removed from v.344  
changed lines
  Added in v.353