Magellan Linux

Contents of /trunk/extras/openmotif/openmotif-2.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id