aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jpeg/Makefile
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-03-18 22:53:47 +0800
committerdinoex <dinoex@FreeBSD.org>2004-03-18 22:53:47 +0800
commit7bab82777232174a5b09f21c258e67143b79b88a (patch)
treeb9ac9d413532e19ff8fd5de7ce595ce6258c23ee /graphics/jpeg/Makefile
parentc48ffc8c32c5acfc4eb1a2187e073119994cf709 (diff)
downloadfreebsd-ports-gnome-7bab82777232174a5b09f21c258e67143b79b88a.tar.gz
freebsd-ports-gnome-7bab82777232174a5b09f21c258e67143b79b88a.tar.zst
freebsd-ports-gnome-7bab82777232174a5b09f21c258e67143b79b88a.zip
- Patches from
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106060 , http://sylvana.net/jpegcrop/exifpatch.html Which add EXIF support to jpegtran (lossless JPEG transforms) and to rdjpgcom to add reporting of EXIF orientation in verbose mode. - Tools from http://sylvana.net/jpegcrop/exif_orientation.html which allow automatic JPEG orientation using the EXIF tag from the camera. (I think it should be done with DISTFILES rather than with PATCH_SITES, though). Roman Shterenzon (some cleanup done)
Diffstat (limited to 'graphics/jpeg/Makefile')
-rw-r--r--graphics/jpeg/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/graphics/jpeg/Makefile b/graphics/jpeg/Makefile
index 0798e25df3ad..adedafc4f985 100644
--- a/graphics/jpeg/Makefile
+++ b/graphics/jpeg/Makefile
@@ -9,11 +9,15 @@
PORTNAME= jpeg
PORTVERSION= 6b
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.ijg.org/files/ \
- ftp://ftp.uu.net/graphics/jpeg/
+ 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}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= IJG's jpeg compression utilities
@@ -33,6 +37,13 @@ CONFIGURE_ARGS+= --enable-maxmem=${J_MAXMEM}
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:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/jpeg
@@ -42,5 +53,7 @@ post-install:
.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>