# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit sicortex flag-o-matic DESCRIPTION="libevent library for the MSP" HOMEPAGE="http://www.sicortex.com/" ESVN_REPO_URI="svn://svn.sicortex.com/sicortex/master/software/branches/scx1000_msp-libevent_4.1.0.1" LICENSE="GPL-2" SLOT="1" KEYWORDS="amd64" RESTRICT="strip" DEPEND=" sys-devel/sicortex-scmake sys-devel/sicortex-m68k-elf-gcc sys-devel/sicortex-genericmk " RDEPEND="" MSP_ROOT=/opt/sicortex/msp/${SLOT} export PATH=$PATH:/opt/sicortex/m68k-elf-gcc/default/bin src_compile() { unset CFLAGS # We aren't compiling for this arch COLDCFLAGS="-m5307 -fno-common -fno-builtin -msep-data" COLDLDFLAGS="-m5307 -Wl,-elf2flt -Wl,-move-rodata -msep-data" ./configure \ --build=x86_64-pc-linux-gnu \ --host=m68k-elf \ CFLAGS="-O1 -g -pipe ${COLDCFLAGS}" \ LDFLAGS="${COLDLDFLAGS}" LIBS="-lc" emake || die "emake failed" } src_install() { emake install \ prefix=/usr \ DESTDIR=${D}/${MSP_ROOT} \ || die "emake install failed" } pkg_postinst() { rm -f ${ROOT}/${MSP_ROOT}/../default ln -sf ${SLOT} ${ROOT}/${MSP_ROOT}/../default }