wok-6.x annotate p2c/receipt @ rev 5944

Up catalyst (10.7)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 03 11:41:52 2010 +0200 (2010-08-03)
parents
children e53e5e4b0f9e
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@4393 8 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
pascal@4393 9 WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
pascal@4393 10 WGET_URL="http://ftp.de.debian.org/debian/pool/main/p/p2c/$TARBALL"
pascal@4393 11 DEPENDS="perl"
pascal@4393 12
pascal@4393 13 # Rules to configure and make the package.
pascal@4393 14 compile_rules()
pascal@4393 15 {
pascal@4393 16 cd $src/src
pascal@4393 17 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
pascal@4393 18 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
pascal@4393 19 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
pascal@4393 20 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
pascal@4393 21 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
pascal@4393 22 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
pascal@4393 23 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
pascal@4393 24 Makefile
pascal@4393 25 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
pascal@4393 26 make all p2cc
pascal@4393 27 mkdir -p ../_pkg/usr/lib/p2c ../_pkg/usr/include/p2c ../_pkg/usr/bin
pascal@4393 28 cp p2c p2cc ../_pkg/usr/bin
pascal@4393 29 cp libp2c.a ../_pkg/usr/lib
pascal@4393 30 ranlib ../_pkg/usr/lib/libp2c.a
pascal@4393 31 cp p2c.h ../_pkg/usr/include/p2c
pascal@4393 32 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
pascal@4393 33 ../_pkg/usr/lib/p2c
pascal@4393 34 mv ../_pkg/usr/lib/p2c/sys.p2crc ../_pkg/usr/lib/p2c/p2crc
pascal@4393 35
pascal@4393 36 }
pascal@4393 37
pascal@4393 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4393 39 genpkg_rules()
pascal@4393 40 {
pascal@4393 41 cp -a $_pkg/* $fs
pascal@4393 42 }
pascal@4393 43