freebsd-ports/graphics/jpeg/Makefile

66 lines
1.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: jpeg
# Date created: 6 November 1994
# Whom: smace
#
1999-08-25 08:16:32 +02:00
# $FreeBSD$
#
PORTNAME= jpeg
2010-02-05 12:46:55 +01:00
PORTVERSION= 8
2010-06-07 19:31:10 +02:00
PORTREVISION= 3
CATEGORIES= graphics
2002-06-23 20:06:32 +02:00
MASTER_SITES= http://www.ijg.org/files/ \
http://sylvana.net/jpegcrop/:exif
DISTNAME= jpegsrc.v${DISTVERSION2}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
jpegexiforient.c:exif exifautotran.txt:exif
DIST_SUBDIR= ${PORTNAME}${DISTVERSION2}2
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
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
CONFLICTS= libjpeg-turbo-[0-9]*
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION2}
2000-10-03 02:54:04 +02: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
MAKE_JOBS_SAFE= yes
2000-10-03 02:54:04 +02:00
ADDITIONAL_HEADER= jinclude.h jpegint.h
# 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}
.endif
MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
post-extract:
@${CP} ${DISTDIR}/${DIST_SUBDIR}/jpegexiforient.c ${WRKSRC}/
@${CP} ${DISTDIR}/${DIST_SUBDIR}/exifautotran.txt ${WRKSRC}/exifautotran
post-build:
@cd ${WRKSRC} && ${CC} ${CFLAGS} -o jpegexiforient jpegexiforient.c
test: build
${SETENV} LD_LIBRARY_PATH=${WRKSRC}/.libs ${MAKE} -C ${WRKSRC} test
regression-test: test
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
@${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
.for header in ${ADDITIONAL_HEADER}
@${INSTALL_DATA} ${WRKSRC}/${header} ${PREFIX}/include/
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/jpegexiforient ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/exifautotran ${PREFIX}/bin/
.include <bsd.port.mk>