wok view sdcc/receipt @ rev 13081

gpgme-dev: Update deps.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jun 25 08:58:46 2012 +0000 (2012-06-25)
parents 4c16797dce28
children c4289b5fcf5d
line source
1 # SliTaz package receipt.
3 PACKAGE="sdcc"
4 VERSION="3.1.0"
5 CATEGORY="development"
6 SHORT_DESC="Retargettable C compiler for 8051, Z80 and 68HC08."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-src-$VERSION.tar.bz2"
9 WEB_SITE="http://sdcc.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
11 TAGS="cross compiler C 8051 Z80 68HC08 assembler"
12 BUILD_DEPENDS="flex gcc3 libboost-graph-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mv $PACKAGE $src 2> /dev/null
18 cd $src
19 sed -i 's/exec/[ "$1" == ":" ] || &/' device/lib/pic16/depcomp
20 sed -i 's/ -u$//' device/lib/Makefile*
21 sed -i '1i\#include <stdio.h>' sim/ucsim/cmd.src/cmdlex.cc
22 sed -i 's/all %/%/' device/lib/pic/Makefile.in
23 find -name getline.h | xargs sed -i \
24 's/char.*getline/#define getline sdcc_getline\nchar *sdcc_getline/'
26 # 1- build hang forever with gcc 4.6.3 for SDCCicode.c
27 # 2- pic14 & pic16 needs http://gputils.sourceforge.net/
28 ./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 --disable-pic14-port --disable-pic16-port \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $_pkg/usr $fs
40 }