Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1052 - (show annotations) (download)
Tue Dec 21 13:06:40 2010 UTC (13 years, 4 months ago) by niro
File size: 2761 byte(s)
-fixed dependencies
1 # $Id: openmotif-2.3.3-r1.smage2 368 2010-05-03 11:48:39Z niro $
2
3 PNAME="openmotif"
4 PVER="2.3.3"
5 PBUILD="r3"
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
21 SRCFILE="${PNAME}-${PVER}.tar.gz"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
25 sminclude multilib mtools mcore-split
26
27 SRC_URI=(
28 http://www.motifzone.org/files/public_downloads/${PNAME}/${PVER%.*}/${PVER}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/openmotif-2.2.3-Mwm.defaults
31 )
32
33 # fake atm
34 UP2DATE="echo ${PVER}"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39
40 # disable compilation of demo binaries
41 all-abis "sed -i '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;s/\([ \t\n\\]*doc\)\\ \\\\/\1/;}' Makefile.am" || die
42
43 # add X.Org vendor string to aliases for virtual bindings
44 all-abis "echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >> bindings/xmbind.alias" || die
45
46 # add missing files to run autoconf successfully
47 all-abis "touch NEWS AUTHORS INSTALL COPYING" || die
48 all-abis autoreconf -I. --verbose --force --install || die
49 }
50
51 src_compile()
52 {
53 # there are some issues with ${LANG}
54 unset LANG
55
56 # fix some anoying warnings
57 export CFLAGS="${CFLAGS} -fno-strict-aliasing"
58 export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
59
60 mconfigure \
61 --with-x \
62 --x-libraries='/usr/$(mlibdir)' \
63 --disable-printing \
64 --disable-xft \
65 --disable-png \
66 --disable-jpeg \
67 || die
68
69 # doens't like optimations
70 mmake -j1 || die
71 }
72
73 mcore_generic_src_install()
74 {
75 # needed directories
76 minstalldir /etc/X11/app-defaults || die
77 minstalldir /etc/X11/mwm || die
78
79 mmake -j1 DESTDIR=${BINDIR} install || die
80
81 # move system.mwmrc /etc/X11/mwm
82 mv ${BINDIR}/usr/$(mlibdir)/X11/system.mwmrc ${BINDIR}/etc/X11/mwm/system.mwmrc || die
83 mlink /etc/X11/mwm /usr/$(mlibdir)/X11/mwm || die
84
85 # fix man-pages
86 for i in ${BINDIR}/usr/share/man/man1/mwm.1 \
87 ${BINDIR}/usr/share/man/man4/mwmrc.4
88 do
89 sed -i "s:/usr/$(mlibdir)/X11/\(.*system\\&\.mwmrc\):/etc/X11/mwm/\1:g" ${i} || die
90 sed -i "s:/usr/$(mlibdir)/X11/app-defaults:/etc/X11/app-defaults:g" ${i} || die
91 done
92
93 # missing app-defaults
94 minstalletc openmotif-2.2.3-Mwm.defaults Mwm /etc/X11/app-defaults || die
95
96 # prune unneeded stuff
97 all-abis '[ -e ${BINDIR}/usr/$(mlibdir)/X11/bindings ] && rm -rf ${BINDIR}/usr/$(mlibdir)/X11/bindings || die'
98 [ -e ${BINDIR}/usr/include/X11/bitmaps ] && rm -rf ${BINDIR}/usr/include/X11/bitmaps || die
99
100 minstalldocs BUGREPORT COPYRIGHT.MOTIF LICENSE README RELEASE RELNOTES TODO || die
101 }