summaryrefslogtreecommitdiff
path: root/lang/bwbasic/Makefile
blob: 61b29e4fb36c8d2c9058b024bfb7e43e99bc4c2e (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
# $NetBSD: Makefile,v 1.10 2005/11/03 22:19:01 rillig Exp $

PKGNAME=	${DISTNAME:=pl2}
DISTNAME=	bwbasic-2.20
CATEGORIES=	lang
MASTER_SITES=	http://www.nicholson.com/rhn/files/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	jspath@bcpl.net
COMMENT=	The Bywater Basic interpreter

WRKSRC=		${WRKDIR}/bwbasic-2.20p2
BWBASIC_WRKSRC=	${WRKSRC}/bwbasic-2.20
DIST_SUBDIR=	${PKGNAME_NOREV}
GNU_CONFIGURE=	yes
CONFIGURE_DIRS=	${BWBASIC_WRKSRC}
BUILD_DIRS=	${CONFIGURE_DIRS}

SHARE_DIR=	${PREFIX}/share/bwbasic

pre-patch:
	${CP} ${WRKSRC}/bwb-2.20-patch01/* ${BWBASIC_WRKSRC}
	${CP} ${WRKSRC}/bwb-2.20-patch02/* ${BWBASIC_WRKSRC}

post-install:
	${INSTALL_DATA_DIR} ${SHARE_DIR}
	${CP} -r ${BWBASIC_WRKSRC}/bwbtest ${SHARE_DIR}
	${FIND} ${SHARE_DIR} -type d -print | ${XARGS} ${CHMOD} ${BINMODE}
	${FIND} ${SHARE_DIR} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
	${INSTALL_MAN} ${BWBASIC_WRKSRC}/bwbasic.doc ${PREFIX}/man/man1/bwbasic.1

.include "../../mk/bsd.pkg.mk"