wok-6.x diff p2c/receipt @ rev 8690

Fix bdep: xfce4-appfinder needs intltool to compile
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Feb 17 19:01:42 2011 +0100 (2011-02-17)
parents
children e53e5e4b0f9e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/p2c/receipt	Thu Feb 17 19:01:42 2011 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="p2c"
     1.7 +VERSION="1.21alpha2"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="A Pascal to C translator."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
    1.12 +WEB_SITE="http://www.ccrnp.ncifcrf.gov/~toms/p2c/daves.index.html"
    1.13 +WGET_URL="http://ftp.de.debian.org/debian/pool/main/p/p2c/$TARBALL"
    1.14 +DEPENDS="perl"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src/src
    1.20 +	sed -i  -e 's|^HOMEDIR.*|HOMEDIR=/usr/lib/p2c|' \
    1.21 +		-e 's|^INCDIR.*|INCDIR=/usr/include/p2c|' \
    1.22 +		-e 's|^BINDIR.*|BINDIR=/usr/bin|' \
    1.23 +		-e 's|^LIBDIR.*|LIBDIR=/usr/lib|' \
    1.24 +		-e 's|^ABSHOMEDIR.*|ABSHOMEDIR=/usr/lib/p2c|' \
    1.25 +		-e 's|^ABSINCDIR.*|ABSINCDIR=/usr/include/p2c|' \
    1.26 +		-e 's|^ABSLIBDIR.*|ABSLIBDIR=/usr/lib|' \
    1.27 +	    Makefile
    1.28 +	grep -q getlinep2c lex.c || sed -i 's/getline/getlinep2c/' *
    1.29 +	make all p2cc
    1.30 +	mkdir -p ../_pkg/usr/lib/p2c ../_pkg/usr/include/p2c ../_pkg/usr/bin
    1.31 +	cp p2c p2cc ../_pkg/usr/bin
    1.32 +	cp libp2c.a ../_pkg/usr/lib
    1.33 +	ranlib ../_pkg/usr/lib/libp2c.a
    1.34 +	cp p2c.h ../_pkg/usr/include/p2c
    1.35 +	cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \
    1.36 +		../_pkg/usr/lib/p2c
    1.37 +	mv ../_pkg/usr/lib/p2c/sys.p2crc ../_pkg/usr/lib/p2c/p2crc
    1.38 +	
    1.39 +}
    1.40 +
    1.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 +genpkg_rules()
    1.43 +{
    1.44 +	cp -a $_pkg/* $fs
    1.45 +}
    1.46 +