summaryrefslogtreecommitdiff
path: root/net/scotty/Makefile
blob: 0e164d4770379af9964803fa61f0b3cd897ba5cb (plain) (blame)
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
38
# New ports collection makefile for:	scotty
# Version required:	1.2.0
# Date created:		18 Februar 1995
# Whom:			gena
#
# $Id: Makefile,v 1.1.1.1 1995/02/21 17:07:49 jkh Exp $
#

DISTNAME=	scotty-1.2.0
DISTFILES=	scotty-1.2.0.tar.gz scotty-1.2.0-1.2.1.diff.gz \
		scotty-1.2.1-1.2.2.diff.gz

EXTRACT_ONLY=	scotty-1.2.0.tar.gz
MASTER_SITES=	ftp://ftp.ibr.cs.tu-bs.de/pub/local/tkined/
HAS_CONFIGURE=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=	yes
DEPENDS=	${PORTSDIR}/x11/tk ${PORTSDIR}/lang/tclX ${PORTSDIR}/lang/tcl
CONFIGURE_ARGS= --with-x --prefix=${PREFIX} --with-tcl-include=${PORTSDIR}/lang/tcl/work/tcl7.3 --with-tcl-library=${PORTSDIR}/lang/tcl/work/tcl7.3 --with-tk-include=${PORTSDIR}/x11/tk/work/tk3.6 --with-tk-library=${PORTSDIR}/x11/tk/work/tk3.6 --with-blt-library=${PORTSDIR}/lang/tclX/work/tclX7.3b/tclmaster/lib

pre-patch:
	@echo "===>  Pre-patching for ${DISTNAME}"
	@if [ ! -f ${CONFIGURE_COOKIE} ]; then \
		ln -s ${WRKSRC} ${WRKDIR}/scotty-1.2.1; \
		ln -s ${WRKSRC} ${WRKDIR}/scotty-1.2.2; \
		zcat ${DISTDIR}/scotty-1.2.0-1.2.1.diff.gz | \
			patch --quiet -E -p0 -d ${WRKDIR}; \
		zcat ${DISTDIR}/scotty-1.2.1-1.2.2.diff.gz | \
			patch --quiet -E -p0 -d ${WRKDIR}; \
		rm -f ${WRKDIR}/scotty-1.2.1; \
		rm -f ${WRKDIR}/scotty-1.2.2; \
	fi

pre-install:
	@echo "===>  Pre-installing for ${DISTNAME}"
	@cd ${WRKSRC};make sinstall

.include <bsd.port.mk>