wok-next annotate p2c/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
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"
al@21020 6 SHORT_DESC="A Pascal to C translator"
pascal@4393 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
pascal@21157 9 WEB_SITE="http://users.fred.net/tds/lab/p2c/"
al@21020 10
pascal@13036 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13035 12 WGET_URL="http://darkstar.ist.utl.pt/slackware/slackware_source/d/p2c/$TARBALL"
pascal@15375 13
al@21020 14 compile_rules() {
pascal@4393 15 cd $src/src
al@21020 16 sed \
al@21020 17 -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|' \
al@21020 24 -i Makefile
pascal@4393 25 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
al@21020 26
al@21020 27 make all p2cc || return 1
al@21020 28
al@21020 29 mkdir -p $install/usr/lib/p2c $install/usr/include/p2c $install/usr/bin
al@21020 30 cp p2c p2cc $install/usr/bin
al@21020 31 cp libp2c.a $install/usr/lib
al@21020 32 ranlib $install/usr/lib/libp2c.a
al@21020 33 cp p2c.h $install/usr/include/p2c
pascal@4393 34 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
al@21020 35 $install/usr/lib/p2c
al@21020 36 mv $install/usr/lib/p2c/sys.p2crc $install/usr/lib/p2c/p2crc
pascal@4393 37 }
pascal@4393 38
al@21020 39 genpkg_rules() {
pascal@15375 40 cp -a $install/* $fs
al@21020 41 DEPENDS="perl"
al@21020 42 TAGS="pascal"
pascal@4393 43 }