added hdlmaker package
authorhackbard <hackbard>
Mon, 19 Jun 2006 14:16:54 +0000 (14:16 +0000)
committerhackbard <hackbard>
Mon, 19 Jun 2006 14:16:54 +0000 (14:16 +0000)
doc/CHANGELOG
packages/devel/hdlmaker/hdlmaker [new file with mode: 0644]

index e16167f..aefaced 100644 (file)
@@ -1,3 +1,7 @@
+*) 2006-06-19
+
+- added hdlmaker package (somehow not nice ...)
+
 *) 2006-06-03
 
 - ci of (forgotten) unrar package
diff --git a/packages/devel/hdlmaker/hdlmaker b/packages/devel/hdlmaker/hdlmaker
new file mode 100644 (file)
index 0000000..805be02
--- /dev/null
@@ -0,0 +1,48 @@
+# hdw - linux hdlmaker package
+#
+# author: hackbard@hackdaworld.org
+#
+# [V] 7.9.4
+# [S] 3-9
+# [D] hdlmaker_install.tar http://www.polybus.com/
+
+prefix=$root/opt/hdlmaker
+
+custmain=1
+
+custmain()     {
+       # directory structure
+       mkdir -p $prefix/{bin,lib,doc}
+
+       # extract source
+       tar xvf $archdir/hdlmaker_install.tar
+       cd hdlmaker_install
+       mkdir -p libz
+       tar xvfz hdlmaker_lib.tar.gz -C libz
+       cd libz/hdlmaker_lib
+
+       # symlinks (according to hdlmaker install.csh)
+       ln -svf xc4000 xc4000e
+       ln -svf xc4000 xc4000ex
+       ln -svf xc4000 xc4000xl
+       ln -svf spartan spartan-xl
+       ln -svf orca2c orca2ca
+
+       # copy sample environment file
+       cp csh/hdlmaker.* $prefix/doc
+       cp README $prefix/doc
+
+       # patch source
+       cd sources/hdlmaker_sources
+       sed 's%csh -f%sh%' makepmacs > tmp~
+       mv tmp~ makepmacs
+       chmod 750 makepmacs
+
+       # build
+       export HDLMAKER_LIB=$prefix
+       export CPU=""
+       make clean
+       make -j 2 install
+       cd ../../
+       mv * $prefix/lib
+               }