DESCRIPTION="
loadpng is some glue that makes it easy to use libpng to load and save bitmaps \
from Allegro programs.
"
HOMEPAGE="http://tjaden.strangesoft.net/loadpng/" 
SRC_URI="http://tjaden.strangesoft.net/loadpng/loadpng-1.5.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="media-libs/allegro >= 4.4
		media-libs/libpng >=1.2"
MESSAGE="This might not build with libpng >= 1.4"
CHECKSUM_MD5="5e9ecdf1762c3fca47477bf0263b96ba"
BUILD()
{
	cd loadpng-1.5
	make
}

INSTALL()
{
	cd loadpng-1.5
	if [ -n ${DESTDIR} ];then 
		mkdir -p ${DESTDIR}/boot/common/lib 
		mkdir -p ${DESTDIR}/boot/common/include 
		make install DESTDIR=${DESTDIR} 
	else 
		make install 
	fi 
	make install
}

LICENSE="Public Domain"
COPYRIGHT="1997-2004 Psyk Software."
