1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/graphics/libimg/Makefile
Mikhail Teterin 4ba76fa965 A number of enhancements:
. compile cleanly against 8.4 with -Wall on i386 and amd64;
	. use OS' run-time linker instead of dlopen-ing libpng,
	  libjpeg, libtiff inside;
	. stop using TIFF's _internal_ headers for anything.

This changes are quite radical, but seem to work with anything I have.
Vendor's own tests pass except for some differences in PNG images --
most likely due to changes in PNG library since 2002.

Stop requiring specific versions of jpeg, tiff, png -- we don't really care.

Bump up PORTREVISION.
2005-06-10 01:21:05 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: img
# Date Created: 20 February 1999
# Whom: Glenn Johnson
#
# $FreeBSD$
#
PORTNAME= libimg
PORTVERSION= 1.2.4
PORTREVISION= 2
CATEGORIES= graphics tk84
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tkimg
DISTNAME= img${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A library of image format handlers for Tk4.1 and later
LIB_DEPENDS= tk84:${PORTSDIR}/x11-toolkits/tk84 \
png:${PORTSDIR}/graphics/png \
jpeg:${PORTSDIR}/graphics/jpeg \
tiff:${PORTSDIR}/graphics/tiff
WRKSRC= ${WRKDIR}/img${PORTVERSION}
# We don't need the bundled libraries:
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude '*/libz/*' \
--exclude '*/compat/*' --exclude '*/libtiff/*' \
--exclude '*/libjpeg/*' --exclude '*/libpng/*'
MAKEFILE= ${FILESDIR}/Makefile.bsd
MAKE_ARGS= PORTVERSION="${PORTVERSION}" LOCALBASE="${LOCALBASE}" \
MKDIR="${MKDIR}" INSTALL_DATA="${INSTALL_DATA}"
INSTALLS_SHLIB= yes
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${LOCALBASE}/share/doc/Img1.2
${INSTALL_DATA} ${WRKSRC}/doc/* ${LOCALBASE}/share/doc/Img1.2
.endif
.include <bsd.port.mk>
PLIST_SUBP!= ${SETENV} TCL_VER=${TCL_VER} ${MAKE} -f ${MAKEFILE} environ
PLIST_SUB+= ${PLIST_SUBP}