summaryrefslogtreecommitdiff
path: root/emulators/p-interp/Makefile
blob: 543be2df71e9ddad4e900440bddd482f1e98adeb (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
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    p-interp
# Date created:         21 Aug 2001
# Whom:                 Nick Sayer <nsayer@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	p-interp
PORTVERSION=	0.5
PORTREVISION=	2
CATEGORIES=	emulators
MASTER_SITES=	http://www.klebsch.de/ \
		ftp://ftp.apple.asimov.net/pub/apple_II/images/utility/programming/apple_pascal/:disks \
		ftp://ftp1.au.apple.asimov.net/pub/apple2/images/utility/programming/apple_pascal/:disks

DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		apple_pascal_0.dsk.gz:disks apple_pascal_1.dsk.gz:disks \
		apple_pascal_2.dsk.gz:disks apple_pascal_3.dsk.gz:disks
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A UCSD (Apple) Pascal p-code interpreter environment

BUILD_DEPENDS=	gccmakedep:${PORTSDIR}/devel/gccmakedep

USE_XORG=	x11 xt

RESTRICTED=	"Redistribution rights for Apple Pascal disk images are unclear"

MAN1=	ucsd.1 svolio.1 svolcvt.1

.include <bsd.port.pre.mk>

post-extract:
		@${CP} ${DISTDIR}/apple_pascal_?.dsk.gz ${WRKDIR}/${DISTNAME}
		@${GUNZIP_CMD} ${WRKDIR}/${DISTNAME}/apple_pascal_?.dsk.gz

pre-build:
		cd ${WRKDIR}/${DISTNAME} && ${MAKE} depend

post-build:
		cd ${WRKDIR}/${DISTNAME} && ${MAKE} work.svol

pre-install:
		${MKDIR} ${PREFIX}/share/p-interp
		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README ${PREFIX}/share/p-interp
		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/COPYING ${PREFIX}/share/p-interp
		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/system.svol ${PREFIX}/share/p-interp
		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/work.svol ${PREFIX}/share/p-interp

.include <bsd.port.post.mk>