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