1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/graphics/jpeg/Makefile

60 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: jpeg
# Date created: 6 November 1994
# Whom: smace
#
1999-08-25 06:16:32 +00:00
# $FreeBSD$
#
# PLEASE update print/ghostscript5 (there's a symlink that uses a hardwired
# version number) when updating this port. Thank you.
PORTNAME= jpeg
PORTVERSION= 6b
PORTREVISION= 4
CATEGORIES= graphics
2002-06-23 18:06:32 +00:00
MASTER_SITES= http://www.ijg.org/files/ \
ftp://ftp.uu.net/graphics/jpeg/ \
http://sylvana.net/jpegcrop/:exif
DISTNAME= jpegsrc.v${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
jpegexiforient.c:exif exifautotran.txt:exif
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
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
WRKSRC= ${WRKDIR}/jpeg-6b
2000-10-03 00:54:04 +00:00
USE_AUTOTOOLS= libtool:15
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
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 13:08:47 +00:00
CONFIGURE_ARGS+= --enable-maxmem=${J_MAXMEM}
.endif
MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
post-extract:
@${CP} ${DISTDIR}/jpegexiforient.c ${WRKSRC}/
@${CP} ${DISTDIR}/exifautotran.txt ${WRKSRC}/exifautotran
post-build:
@cd ${WRKSRC} && ${CC} ${CFLAGS} -o jpegexiforient jpegexiforient.c
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
.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>