wok view p2c/receipt @ rev 13169
aircrack-ng: Add WANTED package called aircrack-ng-scripts.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Jul 30 04:24:03 2012 +0000 (2012-07-30) |
parents | 4faeee6669ef |
children | 51a1ebbda768 |
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.tar.gz"
9 WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
10 WGET_URL="http://darkstar.ist.utl.pt/slackware/slackware_source/d/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 }