1994-11-06 08:18:01 +00:00
|
|
|
# New ports collection makefile for: jpeg
|
|
|
|
# Date created: 6 November 1994
|
|
|
|
# Whom: smace
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1994-11-06 08:18:01 +00:00
|
|
|
#
|
2000-05-19 07:05:29 +00:00
|
|
|
# PLEASE update print/ghostscript5 (there's a symlink that uses a hardwired
|
|
|
|
# version number) when updating this port. Thank you.
|
1994-11-06 08:18:01 +00:00
|
|
|
|
2001-01-16 17:33:20 +00:00
|
|
|
PORTNAME= jpeg
|
2000-04-14 10:48:02 +00:00
|
|
|
PORTVERSION= 6b
|
2006-02-23 10:40:44 +00:00
|
|
|
PORTREVISION= 4
|
2001-01-16 17:33:20 +00:00
|
|
|
CATEGORIES= graphics
|
2002-06-23 18:06:32 +00:00
|
|
|
MASTER_SITES= http://www.ijg.org/files/ \
|
2004-03-18 14:53:47 +00:00
|
|
|
ftp://ftp.uu.net/graphics/jpeg/ \
|
|
|
|
http://sylvana.net/jpegcrop/:exif
|
2001-01-16 17:33:20 +00:00
|
|
|
DISTNAME= jpegsrc.v${PORTVERSION}
|
2004-03-18 14:53:47 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
jpegexiforient.c:exif exifautotran.txt:exif
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1995-04-09 07:09:55 +00:00
|
|
|
|
2003-11-17 19:33:49 +00:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= IJG's jpeg compression utilities
|
1998-04-15 21:32:50 +00:00
|
|
|
|
2001-01-16 17:33:20 +00:00
|
|
|
WRKSRC= ${WRKDIR}/jpeg-6b
|
2000-10-03 00:54:04 +00:00
|
|
|
|
2005-11-15 06:52:12 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
1998-04-15 21:32:50 +00:00
|
|
|
CONFIGURE_ARGS= --enable-shared --enable-static
|
2000-10-03 00:54:04 +00:00
|
|
|
|
2001-11-16 03:33:54 +00:00
|
|
|
ADDITIONAL_HEADER= jinclude.h jpegint.h
|
|
|
|
|
2002-03-18 03:36:35 +00:00
|
|
|
# define J_MAXMEM like "make J_MAXMEM=32" to limit max processing memory to 32Mb
|
|
|
|
.if defined(J_MAXMEM)
|
2003-11-18 13:08:47 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-maxmem=${J_MAXMEM}
|
2002-03-18 03:36:35 +00:00
|
|
|
.endif
|
|
|
|
|
1996-11-18 14:17:24 +00:00
|
|
|
MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
|
1994-11-06 08:18:01 +00:00
|
|
|
|
2004-03-18 14:53:47 +00:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${DISTDIR}/jpegexiforient.c ${WRKSRC}/
|
|
|
|
@${CP} ${DISTDIR}/exifautotran.txt ${WRKSRC}/exifautotran
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC} && ${CC} ${CFLAGS} -o jpegexiforient jpegexiforient.c
|
|
|
|
|
1995-06-24 11:42:32 +00:00
|
|
|
post-install:
|
1999-07-25 12:16:20 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-10-16 03:01:43 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/jpeg
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/jpeg
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/*.doc ${PREFIX}/share/doc/jpeg
|
1999-07-25 12:16:20 +00:00
|
|
|
.endif
|
2001-11-16 03:33:54 +00:00
|
|
|
.for header in ${ADDITIONAL_HEADER}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${header} ${PREFIX}/include
|
|
|
|
.endfor
|
2004-03-18 14:53:47 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/jpegexiforient ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/exifautotran ${PREFIX}/bin
|
1995-06-24 11:42:32 +00:00
|
|
|
|
1994-11-06 08:18:01 +00:00
|
|
|
.include <bsd.port.mk>
|