# $Id: Portfile,v 1.28 2005/05/27 16:48:28 waqar Exp $

PortSystem	1.0
name		jpeg
version		6b 
revision	1
categories	graphics
maintainers	waqar@opendarwin.org
description	Library for manipulating JPEG images
long_description	\
	This distribution contains the sixth public release of the 	\
	Independent JPEG Group's free JPEG software. You are welcome 	\
	to redistribute this software and to use it for any purpose, 	\
	subject to the conditions under LEGAL ISSUES, below. 		\
	Serious users of this software (particularly those 		\
	incorporating it into larger programs) should contact IJG at 	\
	jpeg-info@uunet.uu.net to be added to our electronic mailing 	\
	list.  Mailing list members are notified of updates and have 	\
	a chance to participate in technical discussions, etc.

homepage	http://www.ijg.org/
master_sites	http://www.ijg.org/files \
		ftp://ftp.uu.net/graphics/jpeg

distname	${name}src.v${version}
worksrcdir	${name}-${version}
platforms	darwin freebsd sunos
checksums	md5 dbd5f3b47ed13132f04c685d608a7547
patchfiles	patch-config.sub patch-config.guess patch-ltmain.sh \
		patch-ltconfig patch-makefile.cfg
post-patch {
	reinplace	"s|(prefix)/man|(prefix)/share/man|g" makefile.cfg
}

configure.args	--enable-shared --enable-static
destroot.destdir	prefix=${destroot}${prefix}
pre-destroot {
	xinstall -d ${destroot}${prefix}/bin
	xinstall -d ${destroot}${prefix}/share/man/man1
	xinstall -d ${destroot}${prefix}/include
	xinstall -d ${destroot}${prefix}/lib
}


