Magellan Linux

Annotation of /trunk/nonfree/openmotif/openmotif-2.3.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4497 - (hide annotations) (download)
Wed Dec 23 22:13:44 2009 UTC (14 years, 5 months ago) by niro
File size: 2777 byte(s)
-moved to 'nonfree'
1 niro 4141 # $Id$
2    
3     PNAME="openmotif"
4     PVER="2.3.2"
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     >= media-libs/libjpeg-7
17     >= media-libs/libpng-1.2.40"
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     all-abis "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     all-abis "echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >> bindings/xmbind.alias" || die
52    
53     # add missing files to run autoconf successfully
54     all-abis "touch NEWS AUTHORS" || die
55     all-abis autoreconf -I. --verbose --force --install || die
56     }
57    
58     src_compile()
59     {
60     # there are some issues with ${LANG}
61     unset LANG
62    
63     # fix some anoying warnings
64     export CFLAGS="${CFLAGS} -fno-strict-aliasing"
65     export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
66    
67     mconfigure --with-x --x-libraries='/usr/$(mlibdir)' --enable-png --enable-jpeg || die
68    
69     # doens't like optimations
70     mmake -j1 || die
71     }
72    
73    
74     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 ${PNAME}-${PVER}-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