wok view sdcc/receipt @ rev 25801
created recipe for xfce4-calculator-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 02 14:21:07 2024 +0100 (2 weeks ago) |
parents | 7dd01dedad38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="sdcc"
4 VERSION="4.0.0"
5 CATEGORY="development"
6 TAGS="cross compiler C 8051 Z80 68HC08 assembler"
7 SHORT_DESC="Retargettable C compiler for 8051, Z80 and 68HC08."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sdcc.sourceforge.net/"
12 TARBALL="$PACKAGE-src-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
15 DEPENDS="gcc83-lib-base"
16 BUILD_DEPENDS="automake flex gcc83 gcc83-lib-base gputils libboost-graph-dev texinfo"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/sdcc/files/sdcc/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/sdcc/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 CC=gcc-83 \
31 CXX=g++-83 \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --mandir=/usr/share/man \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/usr $fs
44 }