1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/graphics/libimg/Makefile
Mikhail Teterin 964fc8842b Bring up to the latest 1.2.4. Install documentation (modulo NOPORTDOCS).
Some day  the rest of  the world  will wise up  and realize, that  it is
often easier and  neater to create a Makefile from  scratch, than to try
to patch  the configure/Makefile.in/Makefile.am/etc  nonsense to  do the
right thing.
2001-02-12 21:46:33 +00:00

46 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
CATEGORIES= graphics tk83
MASTER_SITES= ftp://ftp.neosoft.com/pub/tcl/sorted/packages-8.0/graphics/Img/1.2/
DISTNAME= img${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83 \
png.4:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff
WRKSRC= ${WRKDIR}/img${PORTVERSION}
# We don't need the bundled libraries at all, except for a few headers
# from libtiff, see comment in files/Makefile.bsd:
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude '*/libz/*' \
--exclude '*/compat/*' --exclude '*/libtiff/*.c' \
--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!= ${ENV} TCL_VER=${TCL_VER} ${MAKE} -f ${MAKEFILE} environ
PLIST_SUB+= ${PLIST_SUBP}