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