wok-next view p2c/receipt @ rev 21331

updated libvips (7.42.3 -> 8.8.4)
author Hans-G?nter Theisgen
date Thu Dec 12 17:17:36 2019 +0100 (2019-12-12)
parents d5aab818505e
children
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 LICENSE="GPL2"
9 WEB_SITE="http://users.fred.net/tds/lab/p2c/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://darkstar.ist.utl.pt/slackware/slackware_source/d/p2c/$TARBALL"
14 compile_rules() {
15 cd $src/src
16 sed \
17 -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
18 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
19 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
20 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
21 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
22 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
23 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
24 -i Makefile
25 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
27 make all p2cc || return 1
29 mkdir -p $install/usr/lib/p2c $install/usr/include/p2c $install/usr/bin
30 cp p2c p2cc $install/usr/bin
31 cp libp2c.a $install/usr/lib
32 ranlib $install/usr/lib/libp2c.a
33 cp p2c.h $install/usr/include/p2c
34 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
35 $install/usr/lib/p2c
36 mv $install/usr/lib/p2c/sys.p2crc $install/usr/lib/p2c/p2crc
37 }
39 genpkg_rules() {
40 cp -a $install/* $fs
41 DEPENDS="perl"
42 TAGS="pascal"
43 }