SUMMARY="Google Maps Mini"
DESCRIPTION="
Qt Widget that allows a user to choose lat/lng from a GoogleMap view, with location search
"

HOMEPAGE="http://www.haikuware.com/directory/view-details/internet-network/web-browsers/googlemaps-mini"
SOURCE_URI="git+https://github.com/mgermain-genymobile/GoogleMapQtWidget.git#3fefbef368430deda7bd26e2a875cca3db2126ce"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2013 Morgan Germain"

ARCHITECTURES="?x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
        ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
        ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	googlemaps_mini = $portVersion
	app:googlemaps_mini = $portVersion
	"
REQUIRES="
	haiku${secondaryArchSuffix}
	libqt4${secondaryArchSuffix} < 5
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	libqt4${secondaryArchSuffix}_devel < 5
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc${secondaryArchSuffix}
	cmd:qmake${secondaryArchSuffix}
	"

BUILD()
{
	qmake
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp build/mgeGoogleMap $appsDir/GoogleMapsMini
	addAppDeskbarSymlink $appsDir/GoogleMapsMini
}
