diff options
author | ghen <ghen@pkgsrc.org> | 2008-01-04 12:17:16 +0000 |
---|---|---|
committer | ghen <ghen@pkgsrc.org> | 2008-01-04 12:17:16 +0000 |
commit | 17c20eeea4daffc3948a1087a749e35d6d74285f (patch) | |
tree | 00ba1c9b1090b52e70f7ca08689ab1647c050a98 /lang | |
parent | 33752c4499598df30c3cc922652fbd09c50bf94c (diff) | |
download | pkgsrc-17c20eeea4daffc3948a1087a749e35d6d74285f.tar.gz |
Full DESTDIR support and use REPLACE_INTERPRETER framework instead of SUBST.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/wsbasic/Makefile | 37 |
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" |