1 # $NetBSD: Makefile,v 1.24 2011/04/22 23:05:26 joerg Exp $
7 MASTER_SITES
= ftp
://ftp.snobol4.org
/snobol
/ \
8 ftp
://ftp.ultimate.com
/snobol
/
9 DISTFILES
= ${DISTNAME}${EXTRACT_SUFX} vanilla.
tar.gz
11 MAINTAINER
= pkgsrc-users@NetBSD.org
12 HOMEPAGE
= http
://www.snobol4.org
/csnobol4
/curr
/
13 COMMENT
= Macro implementation of SNOBOL4 in C
16 BROKEN
= Distfile doesn
't match
18 EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
20 SUBST_CLASSES+= snobol-config
21 SUBST_STAGE.snobol-config= post-patch
22 SUBST_FILES.snobol-config= Makefile
23 SUBST_SED.snobol-config+= -e s\|M4=m4\|M4=${TOOLS_PATH.m4:Q}\|
26 CONFIGURE_ARGS+=--prefix=${PREFIX}
28 #CONFIGURE_ARGS+=--with-tcl
29 #CONFIGURE_ARGS+=--with-tk
33 USE_TOOLS+= gzip m4 unzip
34 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
38 ${CP} ${WRKSRC}/doc/head ${WRKSRC}/doc/tutorial
39 unzip -d ${WRKSRC} -joqqLC ${DISTDIR}/vanilla.zip pm.exe
40 unzip -p -opaaqqLC ${WRKSRC}/pm.exe >> ${WRKSRC}/doc/tutorial
41 ${GZIP_CMD} ${WRKSRC}/doc/tutorial
44 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/snobol4
45 cd ${WRKSRC} && ${INSTALL_DATA} README \
46 ${DESTDIR}${PREFIX}/share/doc/snobol4
47 cd ${WRKSRC}/doc && ${INSTALL_DATA} load.txt design.txt tutorial.gz \
48 ${DESTDIR}${PREFIX}/share/doc/snobol4
50 @${ECHO} '***********************************************************'
51 @${ECHO} '* A helpful tutorial is at share
/doc
/snobol4
/tutorial.gz
*'
52 @${ECHO} '* within your package tree.
*'
53 @${ECHO} '***********************************************************'
56 .include "../../mk/bsd.pkg.mk"