From 17c20eeea4daffc3948a1087a749e35d6d74285f Mon Sep 17 00:00:00 2001 From: ghen Date: Fri, 4 Jan 2008 12:17:16 +0000 Subject: Full DESTDIR support and use REPLACE_INTERPRETER framework instead of SUBST. --- lang/wsbasic/Makefile | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'lang') 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" -- cgit v1.2.3