# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="QC compiler" HOMEPAGE="http://fteqw.sourceforge.net/" SRC_URI="mirror://sourceforge/fteqw/qclibsrc${PV}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" #IUSE="gtk" # Somes files are missed for gtkgui # DEPEND="gtk? ( =x11-libs/gtk+-2* )" DEPEND="" S="${WORKDIR}" src_unpack() { unpack ${A} sed -i \ -e "s:-O3:${CFLAGS}:" \ Makefile || die "sed failed" } src_compile() { emake qcc || die "emake qcc failed" # if use gtk; then # emake gtkgui || die "emake gtkgui failed" # fi } src_install() { dogamesbin fteqcc.bin || die "egamesbin fteqcc.bin failed" # if use gtk; then # dogamesbin fteqccgui || die "fteqccgui failed" # fi prepgamesdirs }