1994-11-06 09:18:01 +01:00
|
|
|
# New ports collection makefile for: jpeg
|
|
|
|
# Date created: 6 November 1994
|
|
|
|
# Whom: smace
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1994-11-06 09:18:01 +01:00
|
|
|
#
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTNAME= jpeg
|
2010-02-05 12:46:55 +01:00
|
|
|
PORTVERSION= 8
|
2010-06-07 19:31:10 +02:00
|
|
|
PORTREVISION= 3
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= graphics
|
2002-06-23 20:06:32 +02:00
|
|
|
MASTER_SITES= http://www.ijg.org/files/ \
|
2004-03-18 15:53:47 +01:00
|
|
|
http://sylvana.net/jpegcrop/:exif
|
2011-01-05 18:14:22 +01:00
|
|
|
DISTNAME= jpegsrc.v${DISTVERSION2}
|
2004-03-18 15:53:47 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
jpegexiforient.c:exif exifautotran.txt:exif
|
2011-03-19 10:27:06 +01:00
|
|
|
DIST_SUBDIR= ${PORTNAME}${DISTVERSION2}2
|
2004-03-18 15:53:47 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1995-04-09 09:09:55 +02:00
|
|
|
|
2003-11-17 20:33:49 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= IJG's jpeg compression utilities
|
1998-04-15 23:32:50 +02:00
|
|
|
|
2010-04-28 08:18:17 +02:00
|
|
|
CONFLICTS= libjpeg-turbo-[0-9]*
|
2011-01-05 18:14:22 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION2}
|
2000-10-03 02:54:04 +02:00
|
|
|
|
2011-01-05 18:14:22 +01:00
|
|
|
DISTVERSION2= 8b
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2007-01-13 05:53:26 +01:00
|
|
|
USE_LDCONFIG= yes
|
1998-04-15 23:32:50 +02:00
|
|
|
CONFIGURE_ARGS= --enable-shared --enable-static
|
2012-03-25 17:57:42 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2000-10-03 02:54:04 +02:00
|
|
|
|
2001-11-16 04:33:54 +01:00
|
|
|
ADDITIONAL_HEADER= jinclude.h jpegint.h
|
|
|
|
|
2002-03-18 04:36:35 +01:00
|
|
|
# define J_MAXMEM like "make J_MAXMEM=32" to limit max processing memory to 32Mb
|
|
|
|
.if defined(J_MAXMEM)
|
2003-11-18 14:08:47 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-maxmem=${J_MAXMEM}
|
2002-03-18 04:36:35 +01:00
|
|
|
.endif
|
|
|
|
|
1996-11-18 15:17:24 +01:00
|
|
|
MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
|
1994-11-06 09:18:01 +01:00
|
|
|
|
2004-03-18 15:53:47 +01:00
|
|
|
post-extract:
|
2011-01-06 02:35:36 +01:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/jpegexiforient.c ${WRKSRC}/
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/exifautotran.txt ${WRKSRC}/exifautotran
|
2004-03-18 15:53:47 +01:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC} && ${CC} ${CFLAGS} -o jpegexiforient jpegexiforient.c
|
|
|
|
|
2012-03-25 17:57:42 +02:00
|
|
|
test: build
|
|
|
|
${SETENV} LD_LIBRARY_PATH=${WRKSRC}/.libs ${MAKE} -C ${WRKSRC} test
|
|
|
|
|
|
|
|
regression-test: test
|
|
|
|
|
1995-06-24 13:42:32 +02:00
|
|
|
post-install:
|
1999-07-25 14:16:20 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-10-16 05:01:43 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/jpeg
|
2009-07-18 13:11:29 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/jpeg/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/jpeg/
|
1999-07-25 14:16:20 +02:00
|
|
|
.endif
|
2001-11-16 04:33:54 +01:00
|
|
|
.for header in ${ADDITIONAL_HEADER}
|
2009-07-18 13:11:29 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${header} ${PREFIX}/include/
|
2001-11-16 04:33:54 +01:00
|
|
|
.endfor
|
2009-07-18 13:11:29 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/jpegexiforient ${PREFIX}/bin/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/exifautotran ${PREFIX}/bin/
|
1995-06-24 13:42:32 +02:00
|
|
|
|
1994-11-06 09:18:01 +01:00
|
|
|
.include <bsd.port.mk>
|