summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/lesstif/lesstif-0.93.40.ebuild')
-rw-r--r--x11-libs/lesstif/lesstif-0.93.40.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/x11-libs/lesstif/lesstif-0.93.40.ebuild b/x11-libs/lesstif/lesstif-0.93.40.ebuild
new file mode 100644
index 000000000000..994f12dde4b4
--- /dev/null
+++ b/x11-libs/lesstif/lesstif-0.93.40.ebuild
@@ -0,0 +1,71 @@
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.93.40.ebuild,v 1.1 2003/02/09 07:56:52 seemant Exp $
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+S="${WORKDIR}/${P}"
+DESCRIPTION="An OSF/Motif(R) clone."
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+HOMEPAGE="http://www.lesstif.org/"
+PROVIDE="virtual/motif"
+LICENSE="LGPL"
+KEYWORDS="~x86 ~ppc ~sparc"
+SLOT="0"
+
+DEPEND="virtual/x11"
+
+src_unpack() {
+
+ unpack ${A}
+
+ cd ${S}/scripts/autoconf
+ sed -e "/^aclocaldir =/ a DESTDIR = ${D}" \
+ Makefile.in > Makefile.in.hacked
+ mv Makefile.in.hacked Makefile.in || die
+}
+
+src_compile() {
+
+ econf \
+ --prefix=/usr/X11R6 \
+ --sysconfdir=/etc/X11 \
+ --libdir=/usr/X11R6/lib \
+ --enable-static \
+ --enable-build-12 \
+ --enable-build-20 \
+ --enable-build-21 \
+ --with-x || die "./configure failed"
+
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+
+# emake prefix=${D}/usr/X11R6 \
+# exec_prefix=${D}/usr/X11R6 \
+# libdir=${D}/usr/X11R6/lib \
+# mandir=${D}/usr/share/man \
+# infodir=${D}/usr/share/info \
+ make DESTDIR=${D} install || die
+
+ dosym /usr/X11R6/lib/libXm.so.2.0.1 /usr/X11R6/lib/libXm.so.1
+
+ # This comes from x11-base/xfree!
+ rm -f ${D}/usr/lib/X11/config/host.def
+
+ dodir /usr/share
+ mv ${D}/usr/X11R6/man ${D}/usr/share/
+ dodir /usr/share/doc/${P}
+ mv ${D}/usr/X11R6/LessTif/* ${D}/usr/share/doc/${P}/
+ # The LessTif directory should be empty now.
+ rmdir ${D}/usr/X11R6/LessTif || die
+}
+
+pkg_postrm() {
+ # Handle if updating removed host.def
+ if [ ! -f ${ROOT}/usr/lib/X11/config/host.def \
+ -a -d ${ROOT}/usr/lib/X11/config ]
+ then
+ touch ${ROOT}/usr/lib/X11/config/host.def
+ fi
+}
+