openbsd-ports/graphics/tiff34/Makefile
1999-06-09 19:43:22 +00:00

52 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 1999/06/09 19:43:22 brad Exp $
# NOTE:
# At one time this port was installed as libtiff34.a to get rid of a
# rumored incompatibility between libtiff3.3 and 3.4. This is no longer
# the case. However, since there may be code someplace/somewhere that
# depends upon libtiff34 the following symbolic links are created:
# libtiff34.a -> libtiff.a
# libtiff34.so.1.0 -> libtiff.so.3.4
# tiff34.h -> tiff.h
# tiffio34.h -> tiffio.h
DISTNAME= tiff-v3.4beta037
PKGNAME= tiff-3.4b37
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.sgi.com/graphics/tiff/ \
ftp://ftp.wizards.dupont.com/pub/ImageMagick/delegates/ \
ftp://ftp.fifi.org/pub/ImageMagick/delegates/
NEED_VERSION= 1.64
MAINTAINER= ports@openbsd.org
LIB_DEPENDS= jpeg.62:${PORTSDIR}/graphics/jpeg
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-ZIP --with-JPEG --with-DIR_BIN=${PREFIX}/bin \
--with-DIR_LIB=${PREFIX}/lib --with-DIR_INC=${PREFIX}/include \
--with-CC="${CC}" --with-GCOPTS="${CFLAGS}" \
--with-DIRS_LIBINC=${PREFIX}/include \
--with-DIR_GZLIB=/usr/lib \
--with-DIR_JPEGLIB=${PREFIX}/lib \
--with-LIBGL=no --with-LIBIMAGE=no \
--with-INSTALL="${SH} ${WRKSRC}/port/install.sh" \
--noninteractive
DOCDIR= ${PREFIX}/share/doc/tiff34
# Create symbolic links for backwards compatibility
post-install:
${LN} -sf libtiff.a ${PREFIX}/lib/libtiff34.a
@if [ ! -f libtiff.so.3.4 ]; then \
${LN} -sf libtiff.so.3.4 ${PREFIX}/lib/libtiff34.so.1.0; \
fi
${LN} -sf tiff.h ${PREFIX}/include/tiff34.h
${LN} -sf tiffio.h ${PREFIX}/include/tiffio34.h
@${MKDIR} ${DOCDIR}/images
${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/html/images/* ${DOCDIR}/images
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>