blob: 07cdfa2acf2765367c0c0ab6561bd0d4719f03d6 (
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
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.20 2008/03/04 16:38:12 jlam Exp $
DISTNAME= pfthpc21
PKGNAME= pforth-21
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://www.softsynth.com/pforth/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.softsynth.com/pforth/
COMMENT= Portable ANS-like Forth
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_LANGUAGES= c++
USE_TOOLS+= gmake
MAKE_FILE= ${WRKSRC}/makefile
NOT_FOR_PLATFORM= *-*-alpha #segfaults when running ./pforth during build
INSTALLATION_DIRS= bin
post-extract:
${MKDIR} ${WRKSRC}/objects
post-patch:
${MV} ${WRKSRC}/csrc/pf_main.c ${WRKSRC}/csrc/pf_main.c.dist
${SED} -e 's:@PREFIX@:${PREFIX}:g' ${WRKSRC}/csrc/pf_main.c.dist \
> ${WRKSRC}/csrc/pf_main.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pforth ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/pforth
${INSTALL_DATA} ${WRKSRC}/pforth.dic ${DESTDIR}${PREFIX}/lib/pforth
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/pforth
${INSTALL_DATA} ${WRKSRC}/readme.txt ${WRKSRC}/docs/* \
${DESTDIR}${PREFIX}/share/doc/pforth/
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pforth
${INSTALL_DATA} ${WRKSRC}/*.fth ${DESTDIR}${PREFIX}/share/pforth/
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pforth/utils
${INSTALL_DATA} ${WRKSRC}/utils/*.fth \
${DESTDIR}${PREFIX}/share/pforth/utils/
.include "../../mk/bsd.pkg.mk"
|