Magellan Linux

Contents of /smage/trunk/core/openmotif/openmotif-2.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id