Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 344 - (hide annotations) (download)
Mon May 3 08:48:46 2010 UTC (14 years ago) by niro
File size: 2615 byte(s)
auto added: ver bump to 2.3.3-r1
1 niro 344 # $Id$
2    
3     PNAME="openmotif"
4     PVER="2.3.3"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="Motif is the industry standard toolkit for UNIX systems."
11     HOMEPAGE="http://www.motifzone.org/"
12    
13     DEPEND=">= virtual/glibc
14     >= x11-libs/libXmu-1
15     >= x11-libs/libXaw-1
16     >= media-libs/libjpeg-7
17     >= media-libs/libpng-1.2.40"
18    
19     SDEPEND=">= sys-dev/autoconf-4
20     >= sys-dev/automake-3
21     >= x11-proto/xextproto-1
22     >= x11-misc/xbitmaps-1"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.gz"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     sminclude multilib mtools mcore-split
28    
29     SRC_URI=(
30     http://www.motifzone.org/files/public_downloads/${PNAME}/${PVER%.*}/${PVER}/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     mirror://${PNAME}/${PNAME}-2.2.3-Mwm.defaults
33     )
34    
35     # fake atm
36     UP2DATE="echo ${PVER}"
37    
38     src_prepare()
39     {
40     munpack ${SRCFILE} || die
41    
42     # disable compilation of demo binaries
43     all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am" || die
44    
45     # 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
47    
48     # add missing files to run autoconf successfully
49     all-abis "touch NEWS AUTHORS" || die
50     all-abis autoreconf -I. --verbose --force --install || die
51     }
52    
53     src_compile()
54     {
55     # there are some issues with ${LANG}
56     unset LANG
57    
58     # fix some anoying warnings
59     export CFLAGS="${CFLAGS} -fno-strict-aliasing"
60     export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
61    
62     mconfigure --with-x --x-libraries='/usr/$(mlibdir)' --disable-printing --enable-png --enable-jpeg || die
63    
64     # doens't like optimations
65     mmake -j1 || die
66     }
67    
68    
69     src_install()
70     {
71     # needed directories
72     minstalldir /etc/X11/app-defaults || die
73     minstalldir /etc/X11/mwm || die
74    
75     mmake -j1 DESTDIR=${BINDIR} install || die
76    
77     # move system.mwmrc /etc/X11/mwm
78     mv ${BINDIR}/usr/$(mlibdir)/X11/system.mwmrc ${BINDIR}/etc/X11/mwm/system.mwmrc || die
79     mlink /etc/X11/mwm /usr/$(mlibdir)/X11/mwm || die
80    
81     # fix man-pages
82     for i in ${BINDIR}/usr/share/man/man1/mwm.1 \
83     ${BINDIR}/usr/share/man/man4/mwmrc.4
84     do
85     sed -i "s:/usr/$(mlibdir)/X11/\(.*system\\&\.mwmrc\):/etc/X11/mwm/\1:g" ${i} || die
86     sed -i "s:/usr/$(mlibdir)/X11/app-defaults:/etc/X11/app-defaults:g" ${i} || die
87     done
88    
89     # missing app-defaults
90     minstalletc ${PNAME}-2.2.3-Mwm.defaults Mwm /etc/X11/app-defaults || die
91    
92     # prune unneeded stuff
93     all-abis '[ -e ${BINDIR}/usr/$(mlibdir)/X11/bindings ] && rm -rf ${BINDIR}/usr/$(mlibdir)/X11/bindings || die'
94     [ -e ${BINDIR}/usr/include/X11/bitmaps ] && rm -rf ${BINDIR}/usr/include/X11/bitmaps || die
95    
96     minstalldocs BUGREPORT COPYRIGHT.MOTIF LICENSE README RELEASE RELNOTES TODO || die
97     }

Properties

Name Value
svn:keywords Id