wok annotate p2c/receipt @ rev 15060

dahdi-tools: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 13 10:47:54 2013 +0000 (2013-08-13)
parents 4faeee6669ef
children 51a1ebbda768
rev   line source
pascal@4393 1 # SliTaz package receipt.
pascal@4393 2
pascal@4393 3 PACKAGE="p2c"
pascal@4393 4 VERSION="1.21alpha2"
pascal@4393 5 CATEGORY="development"
pascal@4393 6 SHORT_DESC="A Pascal to C translator."
pascal@4393 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@13036 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4393 9 WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
pascal@13035 10 WGET_URL="http://darkstar.ist.utl.pt/slackware/slackware_source/d/p2c/$TARBALL"
pascal@4393 11 DEPENDS="perl"
pascal@13034 12 TAGS="pascal"
pascal@4393 13
pascal@4393 14 # Rules to configure and make the package.
pascal@4393 15 compile_rules()
pascal@4393 16 {
pascal@4393 17 cd $src/src
pascal@4393 18 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
pascal@4393 19 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
pascal@4393 20 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
pascal@4393 21 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
pascal@4393 22 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
pascal@4393 23 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
pascal@4393 24 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
pascal@4393 25 Makefile
pascal@4393 26 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
pascal@4393 27 make all p2cc
pascal@4393 28 mkdir -p ../_pkg/usr/lib/p2c ../_pkg/usr/include/p2c ../_pkg/usr/bin
pascal@4393 29 cp p2c p2cc ../_pkg/usr/bin
pascal@4393 30 cp libp2c.a ../_pkg/usr/lib
pascal@4393 31 ranlib ../_pkg/usr/lib/libp2c.a
pascal@4393 32 cp p2c.h ../_pkg/usr/include/p2c
pascal@4393 33 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
pascal@4393 34 ../_pkg/usr/lib/p2c
pascal@4393 35 mv ../_pkg/usr/lib/p2c/sys.p2crc ../_pkg/usr/lib/p2c/p2crc
pascal@4393 36
pascal@4393 37 }
pascal@4393 38
pascal@4393 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4393 40 genpkg_rules()
pascal@4393 41 {
pascal@4393 42 cp -a $_pkg/* $fs
pascal@4393 43 }
pascal@4393 44