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
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 4
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES?= graphics tk
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF/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
|
|
|
|
2007-03-13 13:12:01 +01:00
|
|
|
LIB_DEPENDS= png:${PORTSDIR}/graphics/png \
|
2005-06-10 03:21:05 +02:00
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
tiff:${PORTSDIR}/graphics/tiff
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2008-04-09 16:19:00 +02:00
|
|
|
.if defined(USE_TK) && ${USE_TK} == 83
|
2007-03-13 13:12:01 +01:00
|
|
|
PKGNAMESUFFIX= -tk83
|
|
|
|
USE_TK= 83
|
|
|
|
USE_TK_BUILD= 83
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile.bsd
|
|
|
|
MAKE_ENV+= TCL_VER=8.3
|
|
|
|
PATCHDIR=
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/pre-tk84-warnings
|
|
|
|
CONFLICTS= libimg-1.* libimg-tkstep-1.*
|
|
|
|
.else
|
|
|
|
USE_TK= 84
|
|
|
|
USE_TK_BUILD= 84
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile.bsd
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/tk84-Tk_PhotoPutBlock ${FILESDIR}/tk84-warnings
|
|
|
|
CONFLICTS= libimg-tk83-1.* libimg-tkstep-1.*
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DIR= lib/Img1.2
|
|
|
|
|
|
|
|
SHLIB_NAME= libimg.so.1
|
|
|
|
SHLIB_LINK= ${SHLIB_NAME:R}
|
|
|
|
|
|
|
|
PLIST_SUB+= DIR="${DIR}" SHLIB_NAME="${SHLIB_NAME}" \
|
|
|
|
SHLIB_LINK="${SHLIB_LINK}"
|
|
|
|
|
2001-02-12 22:46:33 +01:00
|
|
|
WRKSRC= ${WRKDIR}/img${PORTVERSION}
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2005-06-10 03:21:05 +02:00
|
|
|
# We don't need the bundled libraries:
|
2001-02-12 22:46:33 +01:00
|
|
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude '*/libz/*' \
|
2005-06-10 03:21:05 +02:00
|
|
|
--exclude '*/compat/*' --exclude '*/libtiff/*' \
|
2001-02-12 22:46:33 +01:00
|
|
|
--exclude '*/libjpeg/*' --exclude '*/libpng/*'
|
|
|
|
|
|
|
|
MAKE_ARGS= PORTVERSION="${PORTVERSION}" LOCALBASE="${LOCALBASE}" \
|
2007-03-13 13:12:01 +01:00
|
|
|
MKDIR="${MKDIR}" INSTALL_DATA="${INSTALL_DATA}" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
SHLIB_NAME="${SHLIB_NAME}" \
|
2007-03-13 13:12:01 +01:00
|
|
|
DIR="${DIR}"
|
1999-04-10 22:28:42 +02:00
|
|
|
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= 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:
|
2007-03-13 13:12:01 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
2001-02-12 22:46:33 +01:00
|
|
|
.endif
|
1999-04-10 22:28:42 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|