summaryrefslogtreecommitdiff
path: root/lang/wsbasic/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/wsbasic/Makefile')
-rw-r--r--lang/wsbasic/Makefile37
1 files changed, 20 insertions, 17 deletions
diff --git a/lang/wsbasic/Makefile b/lang/wsbasic/Makefile
index 8bdaa6b1b91..c0139c6e862 100644
--- a/lang/wsbasic/Makefile
+++ b/lang/wsbasic/Makefile
@@ -1,25 +1,28 @@
-# $NetBSD: Makefile,v 1.4 2006/06/01 21:03:43 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2008/01/04 12:17:16 ghen Exp $
-DISTNAME= wsbasic-1_2_5
-PKGNAME= ${DISTNAME:S/_/./g}
-CATEGORIES= lang
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wsbasic/}
+DISTNAME= wsbasic-1_2_5
+PKGNAME= ${DISTNAME:S/_/./g}
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wsbasic/}
-MAINTAINER= ghen@NetBSD.org
-HOMEPAGE= http://wsbasic.sourceforge.net/
-COMMENT= Simple BASIC interpreter
+MAINTAINER= ghen@NetBSD.org
+HOMEPAGE= http://wsbasic.sourceforge.net/
+COMMENT= Simple BASIC interpreter
-USE_LANGUAGES= c++
+PKG_DESTDIR_SUPPORT= user-destdir
-SUBST_CLASSES+= interpreter
-SUBST_STAGE.interpreter= pre-install
-SUBST_FILES.interpreter= scripts/*.b
-SUBST_SED.interpreter= -e 's,^\#!\.\./wsbasic,\#!${PREFIX}/bin/wsbasic,'
+USE_LANGUAGES= c++
+
+REPLACE_INTERPRETER+= wsbasic
+REPLACE.wsbasic.old= \.\./wsbasic
+REPLACE.wsbasic.new= ${PREFIX}/bin/wsbasic
+REPLACE_FILES.wsbasic= ${WRKSRC}/scripts/*
+
+INSTALLATION_DIRS= bin share/wsbasic
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/wsbasic ${PREFIX}/bin/
- ${INSTALL_SCRIPT_DIR} ${PREFIX}/share/wsbasic
- ${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.b ${PREFIX}/share/wsbasic/
- ${INSTALL_DATA} ${WRKSRC}/scripts/*.txt ${PREFIX}/share/wsbasic/
+ ${INSTALL_PROGRAM} ${WRKSRC}/wsbasic ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.b ${DESTDIR}${PREFIX}/share/wsbasic/
+ ${INSTALL_DATA} ${WRKSRC}/scripts/*.txt ${DESTDIR}${PREFIX}/share/wsbasic/
.include "../../mk/bsd.pkg.mk"