Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id