X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=packages%2Fdevel%2Fhdlmaker%2Fhdlmaker;fp=packages%2Fdevel%2Fhdlmaker%2Fhdlmaker;h=805be02898d93fb527d5ca96eb228aa0cd3f512b;hp=0000000000000000000000000000000000000000;hb=e8784dab56e3d98e598d36006ecdafb76874d723;hpb=a9d58eebfe45f2d70639e483e6e55143b93e2337 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 + }