/[gentoo-x86]/x11-libs/openmotif/openmotif-2.2.3-r11.ebuild
Gentoo

Contents of /x11-libs/openmotif/openmotif-2.2.3-r11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Dec 19 08:43:01 2011 UTC (2 years, 8 months ago) by ulm
Branch: MAIN
Changes since 1.5: +2 -4 lines
Remove old blockers and cleanup code, motif-config is gone since > 3 years.

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.2.3-r11.ebuild,v 1.5 2011/03/07 11:04:25 ulm Exp $
4
5 EAPI=3
6
7 inherit eutils flag-o-matic multilib autotools
8
9 MY_P=openMotif-${PV}
10 DESCRIPTION="Legacy Open Motif libraries for old binaries"
11 HOMEPAGE="http://www.motifzone.net/"
12 SRC_URI="ftp://ftp.ics.com/openmotif/2.2/${PV}/src/${MY_P}.tar.gz
13 mirror://gentoo/${P}-patches-4.tar.bz2"
14
15 LICENSE="MOTIF MIT"
16 SLOT="2.2"
17 KEYWORDS="amd64 x86"
18 IUSE=""
19
20 RDEPEND="x11-libs/libXmu
21 x11-libs/libXp"
22
23 DEPEND="${RDEPEND}
24 x11-libs/libXaw
25 x11-misc/xbitmaps"
26
27 S=${WORKDIR}/${MY_P}
28
29 src_prepare() {
30 EPATCH_SUFFIX=patch epatch
31
32 # This replaces deprecated, obsoleted and now invalid AC_DEFINE
33 # with their proper alternatives.
34 sed -i -e 's:AC_DEFINE(\([^)]*\)):AC_DEFINE(\1, [], [\1]):g' \
35 configure.in acinclude.m4
36
37 # Build only the libraries
38 sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/=.*/= lib clients/;}' Makefile.am
39 sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/=.*/= uil/;}' clients/Makefile.am
40
41 AM_OPTS="--force-missing" eautoreconf
42 }
43
44 src_configure() {
45 # get around some LANG problems in make (#15119)
46 unset LANG
47
48 # bug #80421
49 filter-flags -ftracer
50
51 # feel free to fix properly if you care
52 append-flags -fno-strict-aliasing
53
54 econf --with-x --disable-static
55 }
56
57 src_compile() {
58 emake -j1 || die "emake failed"
59 }
60
61 src_install() {
62 emake -j1 DESTDIR="${D}" install-exec || die "emake install failed"
63
64 # cleanups
65 rm -Rf "${D}"/usr/bin
66 rm -f "${D}"/usr/$(get_libdir)/*.{so,la,a}
67
68 dodoc README RELEASE RELNOTES BUGREPORT TODO
69 }

  ViewVC Help
Powered by ViewVC 1.1.20