Contents of /branches/magellan-0_10_0/core/lesstif/lesstif-0.95.0-r5.smage2
Parent Directory | Revision Log
Revision 3000 -
(show annotations)
(download)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1642 byte(s)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1642 byte(s)
created branch 'magellan-0_10_0'
1 | # $Id$ |
2 | |
3 | PNAME="lesstif" |
4 | PVER="0.95.0" |
5 | PBUILD="r5" |
6 | |
7 | PCATEGORIE="x11-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="LessTif is the Hungry Programmers' version of OSF/Motif." |
11 | HOMEPAGE="http://www.lesstif.org/" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= x11-libs/libXt-1" |
15 | |
16 | SDEPEND=">= x11-libs/libXaw-1 |
17 | >= x11-libs/libXft-1" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude mbuild |
23 | |
24 | SRC_URI=( |
25 | sourceforge://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${PNAME}-${PVER}-cplusplus-fix.patch |
28 | ) |
29 | |
30 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} |
35 | cd ${SRCDIR} |
36 | |
37 | # fixes some issues with c++ |
38 | # at least it fixes the build of xpdf |
39 | mpatch ${PNAME}-${PVER}-cplusplus-fix.patch || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | mconfigure \ |
47 | --enable-build-20 \ |
48 | --enable-build-21 \ |
49 | --disable-debug \ |
50 | --enable-production \ |
51 | --disable-build-tests \ |
52 | --with-x || die |
53 | |
54 | mmake CFLAGS="${CFLAGS}" || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR} |
60 | mmake DESTDIR=${BINDIR} install || die |
61 | |
62 | # fix libdir |
63 | if [[ $(mlibdir) != lib ]] |
64 | then |
65 | # mv ${BINDIR}/usr/lib/* ${BINDIR}/usr/$(mlibdir) || die |
66 | rm -rf ${BINDIR}/usr/lib || die |
67 | # |
68 | # # fix up .la files |
69 | # sed -i "s:/usr/lib/:/usr/$(mlibdir)/:g" ${BINDIR}/usr/$(mlibdir)/*.la || die |
70 | # sed -i "s:/usr/X11R6/:/usr/:g" ${BINDIR}/usr/$(mlibdir)/*.la || die |
71 | fi |
72 | |
73 | # fix docs |
74 | minstalldocs AUTHORS COPYING CREDITS ChangeLog FAQ NEWS README || die |
75 | mv ${BINDIR}/usr/LessTif/doc ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die |
76 | mv ${BINDIR}/usr/LessTif/ReleaseNotes.* ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die |
77 | rm -rf ${BINDIR}/usr/LessTif || die |
78 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |