Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 368 - (hide annotations) (download)
Mon May 3 11:48:39 2010 UTC (14 years ago) by niro
File size: 2727 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 niro 368 >= x11-libs/libXaw-1"
16 niro 344
17     SDEPEND=">= sys-dev/autoconf-4
18     >= sys-dev/automake-3
19     >= x11-proto/xextproto-1
20     >= x11-misc/xbitmaps-1"
21    
22     SRCFILE="${PNAME}-${PVER}.tar.gz"
23     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24    
25 niro 354 MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
26 niro 344 sminclude multilib mtools mcore-split
27    
28     SRC_URI=(
29     http://www.motifzone.org/files/public_downloads/${PNAME}/${PVER%.*}/${PVER}/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31 niro 353 mirror://${PNAME}/openmotif-2.2.3-Mwm.defaults
32 niro 344 )
33    
34     # fake atm
35     UP2DATE="echo ${PVER}"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40    
41     # disable compilation of demo binaries
42 niro 349 all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;s/\([ \t\n\\]*doc\)\\ \\\\/\1/;}' Makefile.am" || die
43 niro 344
44     # add X.Org vendor string to aliases for virtual bindings
45     all-abis "echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >> bindings/xmbind.alias" || die
46    
47     # add missing files to run autoconf successfully
48 niro 346 all-abis "touch NEWS AUTHORS INSTALL COPYING" || die
49 niro 344 all-abis autoreconf -I. --verbose --force --install || die
50     }
51    
52     src_compile()
53     {
54     # there are some issues with ${LANG}
55     unset LANG
56    
57     # fix some anoying warnings
58     export CFLAGS="${CFLAGS} -fno-strict-aliasing"
59     export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
60    
61 niro 350 mconfigure \
62     --with-x \
63     --x-libraries='/usr/$(mlibdir)' \
64     --disable-printing \
65     --disable-xft \
66 niro 368 --disable-png \
67     --disable-jpeg \
68 niro 350 || die
69 niro 344
70     # doens't like optimations
71     mmake -j1 || die
72     }
73    
74 niro 345 mcore_generic_src_install()
75 niro 344 {
76     # needed directories
77     minstalldir /etc/X11/app-defaults || die
78     minstalldir /etc/X11/mwm || die
79    
80     mmake -j1 DESTDIR=${BINDIR} install || die
81    
82     # move system.mwmrc /etc/X11/mwm
83     mv ${BINDIR}/usr/$(mlibdir)/X11/system.mwmrc ${BINDIR}/etc/X11/mwm/system.mwmrc || die
84     mlink /etc/X11/mwm /usr/$(mlibdir)/X11/mwm || die
85    
86     # fix man-pages
87     for i in ${BINDIR}/usr/share/man/man1/mwm.1 \
88     ${BINDIR}/usr/share/man/man4/mwmrc.4
89     do
90     sed -i "s:/usr/$(mlibdir)/X11/\(.*system\\&\.mwmrc\):/etc/X11/mwm/\1:g" ${i} || die
91     sed -i "s:/usr/$(mlibdir)/X11/app-defaults:/etc/X11/app-defaults:g" ${i} || die
92     done
93    
94     # missing app-defaults
95 niro 353 minstalletc openmotif-2.2.3-Mwm.defaults Mwm /etc/X11/app-defaults || die
96 niro 344
97     # prune unneeded stuff
98     all-abis '[ -e ${BINDIR}/usr/$(mlibdir)/X11/bindings ] && rm -rf ${BINDIR}/usr/$(mlibdir)/X11/bindings || die'
99     [ -e ${BINDIR}/usr/include/X11/bitmaps ] && rm -rf ${BINDIR}/usr/include/X11/bitmaps || die
100    
101     minstalldocs BUGREPORT COPYRIGHT.MOTIF LICENSE README RELEASE RELNOTES TODO || die
102     }

Properties

Name Value
svn:keywords Id