Contents of /smage/branches/alx-0_6_0/core/openmotif/openmotif-2.3.3-r1.smage2
Parent Directory | Revision Log
Revision 2506 -
(show annotations)
(download)
Thu Jun 30 13:55:15 2011 UTC (12 years, 11 months ago) by niro
File size: 2704 byte(s)
Thu Jun 30 13:55:15 2011 UTC (12 years, 11 months ago) by niro
File size: 2704 byte(s)
-removed STATE variable from smage files, use global distribution file for package/distribution states
1 | # $Id$ |
2 | |
3 | PNAME="openmotif" |
4 | PVER="2.3.3" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="x11-libs" |
8 | |
9 | DESCRIPTION="Motif is the industry standard toolkit for UNIX systems." |
10 | HOMEPAGE="http://www.motifzone.org/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= x11-libs/libXmu-1 |
14 | >= x11-libs/libXaw-1" |
15 | |
16 | SDEPEND=">= sys-dev/autoconf-4 |
17 | >= sys-dev/automake-3 |
18 | >= x11-proto/xextproto-1 |
19 | >= x11-misc/xbitmaps-1" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | ALX_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" |
25 | sminclude multilib mtools alx-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 | alx_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 | } |