summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorrillig <rillig>2016-07-07 13:26:16 +0000
committerrillig <rillig>2016-07-07 13:26:16 +0000
commitdab5281a1968035118d8de6f3a3fa7887f213b92 (patch)
tree4d10964b6d5c161a9e2f587c42de294410d560ba /cross
parent95b47c000fe919256cb812ea6a23a0835a7a08fc (diff)
downloadpkgsrc-dab5281a1968035118d8de6f3a3fa7887f213b92.tar.gz
Fixed pkglint warnings about using SED and MV instead of SUBST.
Diffstat (limited to 'cross')
-rw-r--r--cross/nios2-gcc41/options.mk39
1 files changed, 19 insertions, 20 deletions
diff --git a/cross/nios2-gcc41/options.mk b/cross/nios2-gcc41/options.mk
index f391d31c0ae..3a75a28eca0 100644
--- a/cross/nios2-gcc41/options.mk
+++ b/cross/nios2-gcc41/options.mk
@@ -1,8 +1,9 @@
-# $NetBSD: options.mk,v 1.2 2013/12/03 02:34:52 mef Exp $
+# $NetBSD: options.mk,v 1.3 2016/07/07 13:26:16 rillig Exp $
+
### Set options
-PKG_OPTIONS_VAR= PKG_OPTIONS.nios2-gcc
-PKG_SUPPORTED_OPTIONS= doc sysroot
-PKG_SUGGESTED_OPTIONS= sysroot
+PKG_OPTIONS_VAR= PKG_OPTIONS.nios2-gcc
+PKG_SUPPORTED_OPTIONS= doc sysroot
+PKG_SUGGESTED_OPTIONS= sysroot
.include "../../mk/bsd.options.mk"
@@ -13,15 +14,14 @@ CFLAGS+= -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE
# conditional SUBST_CLASSES
.if empty(PKG_OPTIONS:Mdoc)
-post-patch:
- (cd ${WRKSRC}; \
- ${MV} gcc/Makefile.in gcc/Makefile.in.orig; \
- ${SED} '-e s/@@DOC@@//' \
- '-e s/@@INSTALL_HTML@@//' \
- '-e s/@@INSTALL_PDF@@//' \
- gcc/Makefile.in.orig > gcc/Makefile.in; \
- )
+SUBST_CLASSES+= nios
+SUBST_STAGE.nios= post-patch
+SUBST_FILES.nios= gcc/Makefile.in
+SUBST_SED.nios= -e s/@@DOC@@//
+SUBST_SED.nios+= -e s/@@INSTALL_HTML@@//
+SUBST_SED.nios+= -e s/@@INSTALL_PDF@@//
.else
+
# bin/tex is required
BUILD_DEPENDS+= web2c-[0-9]*:../../print/web2c
BUILD_DEPENDS+= tex-cm-[0-9]*:../../fonts/tex-cm
@@ -30,12 +30,11 @@ BUILD_DEPENDS+= tex-pdftex-doc-[0-9]*:../../print/tex-pdftex-doc
BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
PLIST.doc= yes
-post-patch:
- (cd ${WRKSRC}; \
- ${MV} gcc/Makefile.in gcc/Makefile.in.orig; \
- ${SED} '-e s/@@DOC@@/doc/' \
- '-e s/@@INSTALL_HTML@@/install-html/' \
- '-e s/@@INSTALL_PDF@@/install-pdf/' \
- gcc/Makefile.in.orig > gcc/Makefile.in; \
- )
+
+SUBST_CLASSES+= nios
+SUBST_STAGE.nios= post-patch
+SUBST_FILES.nios= gcc/Makefile.in
+SUBST_SED.nios= -e s/@@DOC@@/doc/
+SUBST_SED.nios+= -e s/@@INSTALL_HTML@@/install-html/
+SUBST_SED.nios+= -e s/@@INSTALL_PDF@@/install-pdf/
.endif