54a0b86543
in bsd.autotools.mk essentially makes this a no-op given that all the old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in exactly the same way as USE_AUTOTOOLS itself. Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME team -- all GNOME 2.12.x ports use it. Preliminary documentation can be found at: http://people.FreeBSD.org/~ade/autotools.txt which is in the process of being SGMLized before introduction into the Porters Handbook. Light blue touch-paper. Run.
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
# New ports collection makefile for: jpeg
|
|
# Date created: 6 November 1994
|
|
# Whom: smace
|
|
#
|
|
# $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= 3
|
|
CATEGORIES= graphics
|
|
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}
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= IJG's jpeg compression utilities
|
|
|
|
WRKSRC= ${WRKDIR}/jpeg-6b
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
INSTALLS_SHLIB= yes
|
|
CONFIGURE_ARGS= --enable-shared --enable-static
|
|
|
|
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)
|
|
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
|
|
@${LN} -sf ${LIBTOOL} ${WRKSRC}/libtool
|
|
|
|
post-build:
|
|
@cd ${WRKSRC} && ${CC} ${CFLAGS} -o jpegexiforient jpegexiforient.c
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${PREFIX}/share/doc/jpeg
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/jpeg
|
|
@${INSTALL_DATA} ${WRKSRC}/*.doc ${PREFIX}/share/doc/jpeg
|
|
.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>
|