Contents of /trunk/extras/lesstif/lesstif-0.95.0-r4.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1732 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1732 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/lesstif/lesstif-0.95.0-r4.smage2,v 1.1 2008/02/20 22:03:11 niro Exp $ |
2 | |
3 | PNAME="lesstif" |
4 | PVER="0.95.0" |
5 | PBUILD="r4" |
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/libXp-1 |
15 | >= x11-libs/libXt-1" |
16 | |
17 | SDEPEND=">= x11-libs/libXaw-1 |
18 | >= x11-libs/libXft-1 |
19 | >= x11-proto/printproto-1" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | sminclude mbuild |
25 | |
26 | SRC_URI=( |
27 | sourceforge://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${PNAME}-${PVER}-cplusplus-fix.patch |
30 | ) |
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 |