]> www.hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/devel/hdlmaker/hdlmaker
805be02898d93fb527d5ca96eb228aa0cd3f512b
[hdw-linux/hdw-linux.git] / packages / devel / hdlmaker / hdlmaker
1 # hdw - linux hdlmaker package
2 #
3 # author: hackbard@hackdaworld.org
4 #
5 # [V] 7.9.4
6 # [S] 3-9
7 # [D] hdlmaker_install.tar http://www.polybus.com/
8
9 prefix=$root/opt/hdlmaker
10
11 custmain=1
12
13 custmain()      {
14         # directory structure
15         mkdir -p $prefix/{bin,lib,doc}
16
17         # extract source
18         tar xvf $archdir/hdlmaker_install.tar
19         cd hdlmaker_install
20         mkdir -p libz
21         tar xvfz hdlmaker_lib.tar.gz -C libz
22         cd libz/hdlmaker_lib
23
24         # symlinks (according to hdlmaker install.csh)
25         ln -svf xc4000 xc4000e
26         ln -svf xc4000 xc4000ex
27         ln -svf xc4000 xc4000xl
28         ln -svf spartan spartan-xl
29         ln -svf orca2c orca2ca
30
31         # copy sample environment file
32         cp csh/hdlmaker.* $prefix/doc
33         cp README $prefix/doc
34
35         # patch source
36         cd sources/hdlmaker_sources
37         sed 's%csh -f%sh%' makepmacs > tmp~
38         mv tmp~ makepmacs
39         chmod 750 makepmacs
40
41         # build
42         export HDLMAKER_LIB=$prefix
43         export CPU=""
44         make clean
45         make -j 2 install
46         cd ../../
47         mv * $prefix/lib
48                 }