# -*- coding: utf-8; mode: tcl; tab-width: 8; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4
# $Id: Portfile 91278 2012-03-28 08:25:58Z krischik@macports.org $
# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :

PortSystem 1.0

name		    android-ndk
version		    7b
categories	    cross devel
maintainers	    openmaintainer krischik
platforms	    darwin
description	    Android NDK
long_description							\
    The Android NDK allows native development for the Android mobile platform.

set prog	    ${name}-r${version}-darwin-x86.tar.bz2

homepage	    http://developer.${name}.com/
master_sites	    http://dl.google.com/android/ndk 
use_bzip2           yes
extract.mkdir	    no

distfiles	    ${prog}:prog
distname	    android-ndk-macosx
worksrcdir	    android-ndk-r7b

checksums           ${prog}						\
		    md5     6daa82ca6b73bc0614c9997430079c7a \
                    sha1    d2f70b8f432250834e80fb23222466e268745d16 \
                    rmd160  85e98fc636444ba838aa9ddf9af883c94567bd54

use_configure	    no
build.cmd	    true

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/java

    system "
	cp -a ${worksrcpath} ${destroot}${prefix}/share/java/${distname};
	chgrp -R _developer  ${destroot}${prefix}/share/java/${distname};
	chmod -R g+w         ${destroot}${prefix}/share/java/${distname};
    "

    ui_info "####################################################################"
    ui_info "# ${distname} has been made group «_developer» writable.   #"
    ui_info "####################################################################"
}


