Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 390 - (show annotations) (download)
Thu May 6 17:18:26 2010 UTC (14 years ago) by niro
File size: 2774 byte(s)
-rebuild with libXp enabled
1 # $Id$
2
3 PNAME="openmotif"
4 PVER="2.3.3"
5 PBUILD="r2"
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
18 SDEPEND=">= sys-dev/autoconf-4
19 >= sys-dev/automake-3
20 >= x11-proto/xextproto-1
21 >= x11-proto/printproto-1
22 >= x11-misc/xbitmaps-1"
23
24 SRCFILE="${PNAME}-${PVER}.tar.gz"
25 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26
27 MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
28 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 mirror://${PNAME}/openmotif-2.2.3-Mwm.defaults
34 )
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 all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;s/\([ \t\n\\]*doc\)\\ \\\\/\1/;}' Makefile.am" || die
45
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 all-abis "touch NEWS AUTHORS INSTALL COPYING" || die
51 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 mconfigure \
64 --with-x \
65 --x-libraries='/usr/$(mlibdir)' \
66 --enable-printing \
67 --disable-xft \
68 --disable-png \
69 --disable-jpeg \
70 || die
71
72 # doens't like optimations
73 mmake -j1 || die
74 }
75
76 mcore_generic_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 openmotif-2.2.3-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