Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 368 - (show annotations) (download)
Mon May 3 11:48:39 2010 UTC (13 years, 11 months ago) by niro
File size: 2727 byte(s)
auto added: ver bump to 2.3.3-r1
1 # $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
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 MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
26 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 mirror://${PNAME}/openmotif-2.2.3-Mwm.defaults
32 )
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 all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;s/\([ \t\n\\]*doc\)\\ \\\\/\1/;}' Makefile.am" || die
43
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 all-abis "touch NEWS AUTHORS INSTALL COPYING" || die
49 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 mconfigure \
62 --with-x \
63 --x-libraries='/usr/$(mlibdir)' \
64 --disable-printing \
65 --disable-xft \
66 --disable-png \
67 --disable-jpeg \
68 || die
69
70 # doens't like optimations
71 mmake -j1 || die
72 }
73
74 mcore_generic_src_install()
75 {
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 minstalletc openmotif-2.2.3-Mwm.defaults Mwm /etc/X11/app-defaults || die
96
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