1999-04-10 22:28:42 +02:00
|
|
|
# New ports collection makefile for: img
|
|
|
|
# Date Created: 20 February 1999
|
|
|
|
# Whom: Glenn Johnson
|
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-04-10 22:28:42 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= libimg
|
2001-02-12 22:46:33 +01:00
|
|
|
PORTVERSION= 1.2.4
|
2003-12-09 22:45:48 +01:00
|
|
|
PORTREVISION= 1
|
|
|
|
CATEGORIES= graphics tk84
|
2005-03-08 23:05:19 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= tkimg
|
2000-04-14 12:48:02 +02:00
|
|
|
DISTNAME= img${PORTVERSION}
|
1999-04-10 22:28:42 +02:00
|
|
|
|
1999-11-25 22:33:34 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= A library of image format handlers for Tk4.1 and later
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2003-12-09 22:45:48 +01:00
|
|
|
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84 \
|
2001-09-11 04:22:51 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
1999-04-10 22:28:42 +02:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
1999-09-07 12:45:31 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2001-02-12 22:46:33 +01:00
|
|
|
WRKSRC= ${WRKDIR}/img${PORTVERSION}
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2001-02-12 22:46:33 +01:00
|
|
|
# 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}"
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2001-02-12 22:46:33 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-04-10 22:28:42 +02:00
|
|
|
post-install:
|
2001-02-12 22:46:33 +01:00
|
|
|
${MKDIR} ${LOCALBASE}/share/doc/Img1.2
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${LOCALBASE}/share/doc/Img1.2
|
|
|
|
.endif
|
1999-04-10 22:28:42 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2001-02-12 22:46:33 +01:00
|
|
|
|
2001-05-01 11:55:09 +02:00
|
|
|
PLIST_SUBP!= ${SETENV} TCL_VER=${TCL_VER} ${MAKE} -f ${MAKEFILE} environ
|
2001-02-12 22:46:33 +01:00
|
|
|
PLIST_SUB+= ${PLIST_SUBP}
|