From c5d791661a4aea6513b8d7d3e971a43db611ab14 Mon Sep 17 00:00:00 2001 From: "pancake ;)" Date: Tue, 2 Nov 2004 15:36:12 +0000 Subject: [PATCH] Add support for non-gnu AWK --- apstget/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apstget/Makefile b/apstget/Makefile index 910b073019..b4ae025dc3 100644 --- a/apstget/Makefile +++ b/apstget/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2004/11/02 14:05:38 poppnk Exp $ +# $NetBSD: Makefile,v 1.7 2004/11/02 15:36:12 poppnk Exp $ DISTNAME= apstget-20041102 CATEGORIES= pkgtools wip @@ -26,10 +26,16 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/apst-get ${PREFIX}/bin/apst-get ${INSTALL_SCRIPT} ${WRKSRC}/apstget-wrapper ${PREFIX}/libexec/ -SUBST_CLASSES= etc +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} != "Linux" +SUBST_SED.etc= -e "s,-W interactive,," +.endif + +SUBST_CLASSES+= etc SUBST_STAGE.etc= post-patch SUBST_FILES.etc= apst-get apstget-wrapper -SUBST_SED.etc= -e "s,_etc_,${PKG_SYSCONFDIR},g" \ +SUBST_SED.etc+= -e "s,_etc_,${PKG_SYSCONFDIR},g" \ -e "s,_pfx_,${PREFIX},g" \ -e "s,_psd_,${PKGSRCDIR},g" \ -e "s,_makebin_,${MAKE},g"