From: hackbard Date: Mon, 19 Jun 2006 14:16:54 +0000 (+0000) Subject: added hdlmaker package X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=e8784dab56e3d98e598d36006ecdafb76874d723;p=hdw-linux%2Fhdw-linux.git added hdlmaker package --- diff --git a/doc/CHANGELOG b/doc/CHANGELOG index e16167f..aefaced 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -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 index 0000000..805be02 --- /dev/null +++ b/packages/devel/hdlmaker/hdlmaker @@ -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 + }