wok-next annotate p2c/receipt @ rev 15666

Add ddumbfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 13 16:18:29 2013 +0000 (2013-12-13)
parents ccb41e668740
children 8e1b2a143eb3
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@15375 8 LICENSE="GPL2"
pascal@13036 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4393 10 WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
pascal@13035 11 WGET_URL="http://darkstar.ist.utl.pt/slackware/slackware_source/d/p2c/$TARBALL"
pascal@15375 12 TAGS="pascal"
pascal@15375 13
pascal@4393 14 DEPENDS="perl"
pascal@4393 15
pascal@4393 16 # Rules to configure and make the package.
pascal@4393 17 compile_rules()
pascal@4393 18 {
pascal@4393 19 cd $src/src
pascal@4393 20 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
pascal@4393 21 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
pascal@4393 22 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
pascal@4393 23 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
pascal@4393 24 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
pascal@4393 25 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
pascal@4393 26 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
pascal@4393 27 Makefile
pascal@4393 28 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
pascal@4393 29 make all p2cc
pascal@15375 30 mkdir -p $DESTDIR/usr/lib/p2c $DESTDIR/usr/include/p2c $DESTDIR/usr/bin
pascal@15375 31 cp p2c p2cc $DESTDIR/usr/bin
pascal@15375 32 cp libp2c.a $DESTDIR/usr/lib
pascal@15375 33 ranlib $DESTDIR/usr/lib/libp2c.a
pascal@15375 34 cp p2c.h $DESTDIR/usr/include/p2c
pascal@4393 35 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
pascal@15375 36 $DESTDIR/usr/lib/p2c
pascal@15375 37 mv $DESTDIR/usr/lib/p2c/sys.p2crc $DESTDIR/usr/lib/p2c/p2crc
pascal@4393 38
pascal@4393 39 }
pascal@4393 40
pascal@4393 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4393 42 genpkg_rules()
pascal@4393 43 {
pascal@15375 44 cp -a $install/* $fs
pascal@4393 45 }
pascal@4393 46