wok-current view p2c/receipt @ rev 19617
Up SliTaz projects: cookutils(863), slitaz-base-files(319), slitaz-boot-scripts(436), slitaz-configs(299), slitaz-tools(1008), ssfs(108), tazbug(94), tazinst(86), tazirc(18), tazlito(445), tazpanel(610), tazpkg(932), tazusb(194), tazweb(174).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jan 10 14:28:40 2017 +0200 (2017-01-10) |
parents | ccb41e668740 |
children | 8dd8bab3f0ca |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
11 WGET_URL="http://darkstar.ist.utl.pt/slackware/slackware_source/d/p2c/$TARBALL"
12 TAGS="pascal"
14 DEPENDS="perl"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/src
20 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
21 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
22 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
23 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
24 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
25 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
26 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
27 Makefile
28 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
29 make all p2cc
30 mkdir -p $DESTDIR/usr/lib/p2c $DESTDIR/usr/include/p2c $DESTDIR/usr/bin
31 cp p2c p2cc $DESTDIR/usr/bin
32 cp libp2c.a $DESTDIR/usr/lib
33 ranlib $DESTDIR/usr/lib/libp2c.a
34 cp p2c.h $DESTDIR/usr/include/p2c
35 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
36 $DESTDIR/usr/lib/p2c
37 mv $DESTDIR/usr/lib/p2c/sys.p2crc $DESTDIR/usr/lib/p2c/p2crc
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs
45 }