blob: 9f846aa90abb92c5110650703df48e58d4d0c4bc (
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
47
48
49
50
51
52
53
54
55
56
|
# $NetBSD: Makefile,v 1.22 2009/01/16 02:37:11 asau Exp $
#
DISTNAME= snobol4-1.2
PKGNAME= snobol-1.2
CATEGORIES= lang
MASTER_SITES= ftp://ftp.ultimate.com/snobol/
SITES.vanilla.zip= ftp://ftp.snobol4.com/ \
ftp://ftp.snobol4.org/snobol/old/
DISTFILES= vanilla.zip ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.snobol4.org/csnobol4/curr/
COMMENT= Macro implementation of SNOBOL4 in C
PKG_DESTDIR_SUPPORT= user-destdir
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
SUBST_CLASSES+= snobol-config
SUBST_STAGE.snobol-config= post-patch
SUBST_FILES.snobol-config= Makefile
SUBST_SED.snobol-config+= -e s\|M4=m4\|M4=${TOOLS_PATH.m4:Q}\|
HAS_CONFIGURE=yes
CONFIGURE_ARGS+=--prefix=${PREFIX}
# not yet
#CONFIGURE_ARGS+=--with-tcl
#CONFIGURE_ARGS+=--with-tk
BUILD_TARGET= all pv
USE_TOOLS+= gzip m4 unzip
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
MAKE_JOBS_SAFE= NO
post-build:
${CP} ${WRKSRC}/doc/head ${WRKSRC}/doc/tutorial
unzip -d ${WRKSRC} -joqqLC ${DISTDIR}/vanilla.zip pm.exe
unzip -p -opaaqqLC ${WRKSRC}/pm.exe >> ${WRKSRC}/doc/tutorial
${GZIP_CMD} ${WRKSRC}/doc/tutorial
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/snobol4
cd ${WRKSRC} && ${INSTALL_DATA} README \
${DESTDIR}${PREFIX}/share/doc/snobol4
cd ${WRKSRC}/doc && ${INSTALL_DATA} load.txt design.txt tutorial.gz \
${DESTDIR}${PREFIX}/share/doc/snobol4
@${ECHO} ''
@${ECHO} '***********************************************************'
@${ECHO} '* A helpful tutorial is at share/doc/snobol4/tutorial.gz *'
@${ECHO} '* within your package tree. *'
@${ECHO} '***********************************************************'
@${ECHO} ''
.include "../../mk/bsd.pkg.mk"
|