wok-next view p2c/receipt @ rev 13034
Add compiler & vnc tags
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 12 20:04:51 2012 +0200 (2012-06-12) |
parents | 5764912a266c |
children | 4faeee6669ef |
line source
1 # SliTaz package receipt.
3 PACKAGE="p2c"
4 VERSION="1.21alpha2"
5 CATEGORY="development"
6 SHORT_DESC="A Pascal to C translator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
9 WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
10 WGET_URL="http://ftp.de.debian.org/debian/pool/main/p/p2c/$TARBALL"
11 DEPENDS="perl"
12 TAGS="pascal"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src/src
18 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
19 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
20 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
21 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
22 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
23 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
24 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
25 Makefile
26 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
27 make all p2cc
28 mkdir -p ../_pkg/usr/lib/p2c ../_pkg/usr/include/p2c ../_pkg/usr/bin
29 cp p2c p2cc ../_pkg/usr/bin
30 cp libp2c.a ../_pkg/usr/lib
31 ranlib ../_pkg/usr/lib/libp2c.a
32 cp p2c.h ../_pkg/usr/include/p2c
33 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
34 ../_pkg/usr/lib/p2c
35 mv ../_pkg/usr/lib/p2c/sys.p2crc ../_pkg/usr/lib/p2c/p2crc
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $_pkg/* $fs
43 }