~vojtech-horky/helenos/coastline-qemu

« back to all changes in this revision

Viewing changes to jainja/HARBOUR

  • Committer: Vojtech Horky
  • Date: 2017-08-07 14:28:40 UTC
  • mfrom: (104.1.27 coastline)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170807142840-nj7i0b2i0py5o5qh
MergeĀ upstreamĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
shipname=jainja
30
30
shipversion=0.8
31
 
shipsources="http://sourceforge.net/projects/${shipname}/files/${shipname}-${shipversion}/${shipname}-${shipversion}-helenos.tar.gz Makefile jainja.batch"
 
31
shipsources="http://sourceforge.net/projects/${shipname}/files/${shipname}-${shipversion}/${shipname}-${shipversion}.tar.gz jainja.batch Makefile.patch headers.patch"
32
32
shipfunnels=0
33
33
 
34
34
build() {
35
 
        run tar xzf "${shipname}-${shipversion}-helenos.tar.gz"
36
 
        run cp Makefile "${shipname}-${shipversion}-helenos/jainja/"
37
 
        run cp jainja.batch "${shipname}-${shipversion}-helenos/"
38
 
        
39
 
        cd "${shipname}-${shipversion}-helenos"
40
 
        
41
 
        run make -C jainja -j$shipfunnels \
 
35
        run tar xzf "${shipname}-${shipversion}.tar.gz"
 
36
        
 
37
        patch -p0 <Makefile.patch
 
38
        patch -p0 <headers.patch
 
39
        
 
40
        cd "${shipname}-${shipversion}/platforms/c"
 
41
        
 
42
        run make -j$shipfunnels \
 
43
                OS=HelenOS \
42
44
                STATIC_ONLY=y \
43
45
                CC="$HSCT_CC" \
44
 
                HSCT_CFLAGS="$HSCT_CFLAGS" \
45
 
                LD="$HSCT_LD" \
46
 
                HSCT_LDFLAGS="$HSCT_LDFLAGS" \
47
 
                HSCT_CACHE_INCLUDE="$HSCT_CACHE_INCLUDE" \
48
 
                HSCT_CACHE_LIB="$HSCT_CACHE_LIB"
 
46
                CUSTOM_CFLAGS="$HSCT_CFLAGS -L$HSCT_LIB_DIR"
49
47
}
50
48
 
51
49
package() {
52
 
        cd "${shipname}-${shipversion}-helenos"
53
 
        
54
50
        run mkdir -p "$HSCT_MY_DIR/app/"
55
 
        run cp "jainja/${shipname}" "$HSCT_MY_DIR/app/"
56
 
        run cp "rt.jar" "$HSCT_MY_DIR/app/"
57
 
        run cp "jainja.batch" "$HSCT_MY_DIR/app/"
 
51
        run mkdir -p "$HSCT_MY_DIR/lib/"
 
52
        run mkdir -p "$HSCT_MY_DIR/tests/"
 
53
        
 
54
        run cp "jainja.batch" "$HSCT_MY_DIR/tests/"
 
55
        
 
56
        cd "${shipname}-${shipversion}/platforms/c"
 
57
        run cp "jainja" "$HSCT_MY_DIR/app/" || exit 1
 
58
        run cp "rt.jar" "$HSCT_MY_DIR/lib/"
58
59
}