summaryrefslogtreecommitdiff
path: root/cross/nios2-gcc/options.mk
diff options
context:
space:
mode:
authormef <mef>2013-11-18 06:41:27 +0000
committermef <mef>2013-11-18 06:41:27 +0000
commit63941e0f4f37fa7e153f984fbf21d36c16a3ee14 (patch)
treea9e292f1a63df8adf1ccb0ea388ae813783057f2 /cross/nios2-gcc/options.mk
parent24766010b8e8e462f4867e5f3351fad73b71287a (diff)
downloadpkgsrc-63941e0f4f37fa7e153f984fbf21d36c16a3ee14.tar.gz
As proposed in following mail:
http://mail-index.netbsd.org/pkgsrc-users/2013/11/16/msg018897.html (1) Import nios2-binutils 2.23 (CodeSourcery derived) from wip. (2) nios2-gcc41 now does not include nios2/Makefile.common, and unnecessary buildlink3 line to kpathsea removed. (3) Switch nios2/Makefile.common to provide above (1) package. (4) Import nios2-gcc 4.7.3 (CodeSourcery derived) from wip, including file (3) nios2/Makefile.common and DEPENDS (1) binutils. (5) Switch all gcc's, nios2-gcc{3,41} to DEPENDS above (1) binutils. (6) Delete nios2-binutils220 (2.20).
Diffstat (limited to 'cross/nios2-gcc/options.mk')
-rw-r--r--cross/nios2-gcc/options.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/cross/nios2-gcc/options.mk b/cross/nios2-gcc/options.mk
new file mode 100644
index 00000000000..8ce12e3b538
--- /dev/null
+++ b/cross/nios2-gcc/options.mk
@@ -0,0 +1,36 @@
+# $NetBSD: options.mk,v 1.1 2013/11/18 06:41:27 mef Exp $
+### Set options
+PKG_OPTIONS_VAR= PKG_OPTIONS.nios2-gcc
+PKG_SUPPORTED_OPTIONS= doc
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+# 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; \
+ )
+.else
+# bin/tex is required
+BUILD_DEPENDS+= web2c-[0-9]*:../../print/web2c
+BUILD_DEPENDS+= tex-cm-[0-9]*:../../fonts/tex-cm
+BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts
+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; \
+ )
+.endif