Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 942 - (show annotations) (download)
Tue Aug 4 08:15:15 2009 UTC (14 years, 10 months ago) by niro
File size: 2827 byte(s)
auto added: ver bump to 2.3.2-r1
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}-${PVER}-multilist-stipple.patch
36 mirror://${PNAME}/${PNAME}-${PVER}-ac-editres.patch
37 )
38
39 # fake atm
40 UP2DATE="echo ${PVER}"
41
42 src_prepare()
43 {
44 munpack ${SRCFILE} || die
45
46 mpatch ${PNAME}-${PVER}-multilist-stipple.patch || die
47 mpatch ${PNAME}-${PVER}-ac-editres.patch || die
48
49 # disable compilation of demo binaries
50 all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am" || die
51
52 # add X.Org vendor string to aliases for virtual bindings
53 all-abis "echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >> bindings/xmbind.alias" || die
54
55 # add missing files to run autoconf successfully
56 all-abis "touch NEWS AUTHORS" || die
57 all-abis autoreconf -I. --verbose --force --install || die
58 }
59
60 src_compile()
61 {
62 # there are some issues with ${LANG}
63 unset LANG
64
65 # fix some anoying warnings
66 export CFLAGS="${CFLAGS} -fno-strict-aliasing"
67 export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
68
69 mconfigure --with-x --x-libraries='/usr/$(mlibdir)' --enable-png --enable-jpeg || die
70
71 # doens't like optimations
72 mmake -j1 || die
73 }
74
75
76 src_install()
77 {
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 minstalletc ${PNAME}-${PVER}-Mwm.defaults Mwm /etc/X11/app-defaults || die
98
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