# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ WANT_AUTOCONF="latest" WANT_AUTOMAKE="1.6" inherit eutils flag-o-matic multilib autotools MY_P=openMotif-${PV} DESCRIPTION="Legacy Open Motif libraries for old binaries" HOMEPAGE="http://www.motifzone.org/" SRC_URI="ftp://ftp.motifzone.net/om${PV}/src/${MY_P}.tar.gz mirror://gentoo/openmotif-${PV}-patches-1.tar.bz2" LICENSE="MOTIF" SLOT="2.2" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="" RDEPEND="!x11-libs/motif-config !x11-libs/lesstif !=x11-libs/openmotif-2.2* x11-libs/libXmu x11-libs/libXaw x11-libs/libXp" DEPEND="${RDEPEND} x11-misc/xbitmaps x11-proto/printproto" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd "${S}" EPATCH_SUFFIX=patch epatch # This replaces deprecated, obsoleted and now invalid AC_DEFINE # with their proper alternatives. sed -i -e 's:AC_DEFINE(\([^)]*\)):AC_DEFINE(\1, [], [\1]):g' \ "${S}/configure.in" "${S}/acinclude.m4" eautoreconf } src_compile() { # get around some LANG problems in make (#15119) unset LANG # bug #80421 filter-flags -ftracer # multilib includes don't work right in this package... has_multilib_profile && append-flags "-I$(get_ml_incdir)" # feel free to fix properly if you care append-flags -fno-strict-aliasing econf --with-x || die "econf failed" emake -j1 -C lib || die "emake failed" } src_install() { emake -j1 -C lib DESTDIR="${D}" install-exec || die "emake install failed" # cleanup rm -fR "${D}"/usr/$(get_libdir)/*.{so,la,a} # documentation dodoc README RELEASE RELNOTES BUGREPORT TODO }