wok view p2c/receipt @ rev 16958

Add mate-common-dev and mate-desktop-dev
author Yuri Pourre <yuripourre@gmail.com>
date Mon Jul 28 20:21:05 2014 -0300 (2014-07-28)
parents ccb41e668740
children 8dd8bab3f0ca
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
11 WGET_URL="http://darkstar.ist.utl.pt/slackware/slackware_source/d/p2c/$TARBALL"
12 TAGS="pascal"
14 DEPENDS="perl"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/src
20 sed -i -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
21 -e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
22 -e 's|^BINDIR.*|BINDIR=/usr/bin|' \
23 -e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
24 -e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
25 -e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
26 -e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
27 Makefile
28 grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
29 make all p2cc
30 mkdir -p $DESTDIR/usr/lib/p2c $DESTDIR/usr/include/p2c $DESTDIR/usr/bin
31 cp p2c p2cc $DESTDIR/usr/bin
32 cp libp2c.a $DESTDIR/usr/lib
33 ranlib $DESTDIR/usr/lib/libp2c.a
34 cp p2c.h $DESTDIR/usr/include/p2c
35 cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
36 $DESTDIR/usr/lib/p2c
37 mv $DESTDIR/usr/lib/p2c/sys.p2crc $DESTDIR/usr/lib/p2c/p2crc
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs
45 }