pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add Arachne-pnr to prepare. At the moment it expects wip/icestorm to be installed & is requires some files to build correctly. Will need to add buildlink support to wip/icestorm.
Module Name: pkgsrc-wip
Committed By: Sevan Janiyan <venture37%geeklan.co.uk@localhost>
Pushed By: sevan
Date: Sun Dec 4 04:16:05 2016 +0000
Changeset: 3b672b8726093c24de9d2e59dccbbae884a1ce9a
Added Files:
arachne-pnr-git/DESCR
arachne-pnr-git/Makefile
arachne-pnr-git/PLIST
arachne-pnr-git/distinfo
arachne-pnr-git/patches/patch-Makefile
Log Message:
Add Arachne-pnr to prepare.
At the moment it expects wip/icestorm to be installed & is requires some files
to build correctly.
Will need to add buildlink support to wip/icestorm.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3b672b8726093c24de9d2e59dccbbae884a1ce9a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
arachne-pnr-git/DESCR | 2 ++
arachne-pnr-git/Makefile | 25 ++++++++++++++++++++
arachne-pnr-git/PLIST | 4 ++++
arachne-pnr-git/distinfo | 3 +++
arachne-pnr-git/patches/patch-Makefile | 42 ++++++++++++++++++++++++++++++++++
5 files changed, 76 insertions(+)
diffs:
diff --git a/arachne-pnr-git/DESCR b/arachne-pnr-git/DESCR
new file mode 100644
index 0000000..adfc0e7
--- /dev/null
+++ b/arachne-pnr-git/DESCR
@@ -0,0 +1,2 @@
+Arachne-pnr implements the place and route step of the hardware compilation
+process for FPGAs.
diff --git a/arachne-pnr-git/Makefile b/arachne-pnr-git/Makefile
new file mode 100644
index 0000000..cc8048e
--- /dev/null
+++ b/arachne-pnr-git/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= arachne-pnr-52e69ed
+CATEGORIES= cross
+MASTER_SITES= ${MASTER_SITE_GITHUB:=cliffordwolf/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/cliffordwolf/
+COMMENT= Place and route tool for FPGAs
+LICENSE= mit
+
+USE_LANGUAGES+= c++
+USE_TOOLS+= gmake
+LIBS+= -lm
+
+GIT_REPOSITORIES= arachne-pnr
+GIT_REPO.arachne-pnr= git://github.com/cseed/arachne-pnr.git
+GIT_REVISION.arachne-pnr= 52e69ed207342710080d85c7c639480e74a021d7
+WRKSRC= ${WRKDIR}/arachne-pnr
+MAKE_ENV+= ICEBOX=${PREFIX}/share/icebox
+MAKE_ENV+= DESTDIR=${DESTDIR}
+MAKE_ENV+= PREFIX=${PREFIX}
+
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/arachne-pnr-git/PLIST b/arachne-pnr-git/PLIST
new file mode 100644
index 0000000..65f392c
--- /dev/null
+++ b/arachne-pnr-git/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/arachne-pnr
+share/arachne-pnr/chipdb-1k.bin
+share/arachne-pnr/chipdb-8k.bin
diff --git a/arachne-pnr-git/distinfo b/arachne-pnr-git/distinfo
new file mode 100644
index 0000000..996b48a
--- /dev/null
+++ b/arachne-pnr-git/distinfo
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-Makefile) = e5dda0f3de2cc5f1b6b8409485de47d43ae519b6
diff --git a/arachne-pnr-git/patches/patch-Makefile b/arachne-pnr-git/patches/patch-Makefile
new file mode 100644
index 0000000..87e1771
--- /dev/null
+++ b/arachne-pnr-git/patches/patch-Makefile
@@ -0,0 +1,42 @@
+$NetBSD$
+
+Allow variables to be overridden and integrated into a build system.
+
+--- Makefile.orig 2016-12-04 03:42:47.000000000 +0000
++++ Makefile
+@@ -13,8 +13,9 @@ SRC = src
+ CXXFLAGS = -I$(SRC) -std=c++11 -MD $(OPTDEBUGFLAGS) -Wall -Wshadow -Wsign-compare -Werror
+ LIBS = -lm
+
+-DESTDIR = /usr/local
+-ICEBOX = /usr/local/share/icebox
++DESTDIR ?= /usr/local
++ICEBOX ?= /usr/local/share/icebox
++PREFIX ?=
+
+ .PHONY: all
+ all: bin/arachne-pnr share/arachne-pnr/chipdb-1k.bin share/arachne-pnr/chipdb-8k.bin
+@@ -104,16 +105,16 @@ mxebin:
+
+ .PHONY: install
+ install: all
+- mkdir -p $(DESTDIR)/bin
+- cp bin/arachne-pnr $(DESTDIR)/bin/arachne-pnr
+- mkdir -p $(DESTDIR)/share/arachne-pnr
+- cp share/arachne-pnr/chipdb-1k.bin $(DESTDIR)/share/arachne-pnr/chipdb-1k.bin
+- cp share/arachne-pnr/chipdb-8k.bin $(DESTDIR)/share/arachne-pnr/chipdb-8k.bin
++ mkdir -p $(DESTDIR)$(PREFIX)/bin
++ cp bin/arachne-pnr $(DESTDIR)$(PREFIX)/bin/arachne-pnr
++ mkdir -p $(DESTDIR)$(PREFIX)/share/arachne-pnr
++ cp share/arachne-pnr/chipdb-1k.bin $(DESTDIR)$(PREFIX)/share/arachne-pnr/chipdb-1k.bin
++ cp share/arachne-pnr/chipdb-8k.bin $(DESTDIR)$(PREFIX)/share/arachne-pnr/chipdb-8k.bin
+
+ .PHONY: uninstall
+ uninstall:
+- rm -f $(DESTDIR)/bin/arachne-pnr
+- rm -f $(DESTDIR)/bin/share/arachne-pnr/*.bin
++ rm -f $(DESTDIR)$(PREFIX)/bin/arachne-pnr
++ rm -f $(DESTDIR)$(PREFIX)/bin/share/arachne-pnr/*.bin
+
+ .PHONY: clean
+ clean:
Home |
Main Index |
Thread Index |
Old Index