summaryrefslogtreecommitdiff
blob: b6fc9875f913f6d03b192897517d02ae0bef3a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/wxactivex/wxactivex-1.0.ebuild,v 1.2 2006/03/19 22:38:05 halcy0n Exp $

inherit eutils

DESCRIPTION="wxActiveX is a wxWidgets ActiveX extension for the xmingw cross-compiler"
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.zip"
HOMEPAGE="http://sourceforge.net/projects/${PN}"

SLOT="0"
KEYWORDS="~x86"
IUSE=""
LICENSE="BSD"
RDEPEND=">=dev-libs/wx-xmingw-2.4.2"
DEPEND="${RDEPEND}
	app-arch/unzip"
S="${WORKDIR}"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PN}-1.0-gentoo.patch
}

src_compile() {
	export PATH="/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin:/opt/xmingw/wxWidgets/bin:$PATH"
	export CC="i386-mingw32msvc-gcc"
	export CXX="i386-mingw32msvc-g++"

	unset CFLAGS
	unset CPPFLAGS
	unset CXXFLAGS
	unset LDFLAGS

	export CFLAGS="-I/opt/xmingw/i386-mingw32msvc/include"
	export CXXFLAGS="-I/opt/xmingw/i386-mingw32msvc/include"


	emake CC=${CXX} || die "make failed"
}

src_install() {
	cd ${WORKDIR}
	make prefix=${D}/opt/xmingw/wxActiveX install || die "install failed"
}