wok view p2c/receipt @ rev 8246
Fixed dbus for new tazwok-experimental.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jan 29 03:30:51 2011 +0000 (2011-01-29) |
parents | |
children | e53e5e4b0f9e |
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"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src/src
17 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
18 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
19 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
20 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
21 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
22 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
23 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
24 Makefile
25 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
26 make all p2cc
27 mkdir -p ../_pkg/usr/lib/p2c ../_pkg/usr/include/p2c ../_pkg/usr/bin
28 cp p2c p2cc ../_pkg/usr/bin
29 cp libp2c.a ../_pkg/usr/lib
30 ranlib ../_pkg/usr/lib/libp2c.a
31 cp p2c.h ../_pkg/usr/include/p2c
32 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
33 ../_pkg/usr/lib/p2c
34 mv ../_pkg/usr/lib/p2c/sys.p2crc ../_pkg/usr/lib/p2c/p2crc
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $_pkg/* $fs
42 }