mtasc/mtasc.spec

changeset 113
29f149b6e2be
parent 112
6052d0605a74
child 128
f64e7bdded52
equal deleted inserted replaced
0:75979e8bd6b8 1:8fcd7f7cc3c1
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: EVAL 35 Class: EVAL
36 Group: Flash 36 Group: Flash
37 License: GPL/BSD 37 License: GPL/BSD
38 Version: %{V_release}.%{V_snapshot} 38 Version: %{V_release}.%{V_snapshot}
39 Release: 20080914 39 Release: 20090106
40 40
41 # list of sources 41 # list of sources
42 Source0: ftp://ftp.openpkg.org/sources/CPY/mtasc/mtasc-%{V_snapshot}.tar.bz2 42 Source0: ftp://ftp.openpkg.org/sources/CPY/mtasc/mtasc-%{V_snapshot}.tar.bz2
43 Source1: mtasc.sh 43 Source1: mtasc.sh
44 Patch0: mtasc.patch 44 Patch0: mtasc.patch
45 45
46 # build information 46 # build information
47 Prefix: %{l_prefix} 47 Prefix: %{l_prefix}
48 BuildRoot: %{l_buildroot} 48 BuildRoot: %{l_buildroot}
49 BuildPreReq: OpenPKG, openpkg >= 20060823, ocaml 49 BuildPreReq: OpenPKG, openpkg >= 20060823, zlib, ocaml
50 PreReq: OpenPKG, openpkg >= 20060823 50 PreReq: OpenPKG, openpkg >= 20060823, zlib
51 AutoReq: no 51 AutoReq: no
52 AutoReqProv: no 52 AutoReqProv: no
53 53
54 %description 54 %description
55 MTASC is a free ActionScript 2 compiler and the predecessor to 55 MTASC is a free ActionScript 2 compiler and the predecessor to
65 } 65 }
66 66
67 %prep 67 %prep
68 %setup -q -n mtasc 68 %setup -q -n mtasc
69 %patch -p0 69 %patch -p0
70 %{l_shtool} subst \
71 -e "s;\(let c_opts = .*-ccopt\);\1 -I %{l_prefix}/include;" \
72 -e "s;\(let c_opts = .* else \"\);\1 -I %{l_prefix}/include;" \
73 install.ml
70 74
71 %build 75 %build
72 %{l_prefix}/bin/ocaml install.ml 76 %{l_prefix}/bin/ocaml install.ml
73 77
74 %install 78 %install

mercurial