wok-4.x view p2c/receipt @ rev 8938
masqmail, mplayer-svn, nagios-nrpe, notify-python, openvas-administrator, openvas-client, openvas-manager, openvas-scanner, perl-xml-entities, pgadmin, python-ipy: update BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 01 16:28:33 2011 +0100 (2011-03-01) |
parents | |
children |
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 }