summaryrefslogtreecommitdiffstats
path: root/graphics/tkpng/Makefile
blob: 049b26e0cab1b76f86013a3f30d2b8fe206fa42a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:	tkpng
# Date created:		08 October 2006
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	tkpng
PORTVERSION=	0.7
PORTREVISION=	1
CATEGORIES=	graphics tk84
MASTER_SITES=	SF
DISTNAME=	${PORTNAME}${PORTVERSION}-src
EXTRACT_SUFX=	.tgz

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	PNG support for Tcl/Tk

USE_TK=		yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-tcl=${LOCALBASE}/lib/tcl${TK_VER} \
		--with-tk=${LOCALBASE}/lib/tk${TK_VER} \
		--with-tclinclude=${LOCALBASE}/include/tcl${TK_VER}/generic \
		--with-tkinclude=${LOCALBASE}/include/tk${TK_VER}/generic \
		--exec-prefix=${PREFIX} --enable-shared
CPPFLAGS=	-I${LOCALBASE}/include/tk${TK_VER}/generic -I${X11BASE}/include
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}"
TKPKG=		${PORTNAME}${PORTVERSION}
PLIST_SUB=	VER=${PORTVERSION} TKPKG=${TKPKG} TKLIBVER=${TKLIBVER}
USE_LDCONFIG=	${PREFIX}/lib/${TKPKG}
WRKSRC=		${WRKDIR}/${TKPKG}

post-install:
	@${LN} -sf ${PREFIX}/lib/${TKPKG}/lib${TKPKG}.so \
		${PREFIX}/lib/${TKPKG}/lib${TKPKG}.so.0

.include <bsd.port.mk>
OpenPOWER on IntegriCloud