wok rev 769
Add tcc (Tiny C Compiler)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 11 11:36:09 2008 +0000 (2008-05-11) |
parents | 17481ec4d76e |
children | a98ae02c2022 |
files | tcc/receipt tcc/stuff/Makefile.u |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tcc/receipt Sun May 11 11:36:09 2008 +0000 1.3 @@ -0,0 +1,29 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="tcc" 1.7 +VERSION="0.9.24" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="fast Tiny C Compiler." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.12 +WEB_SITE="http://bellard.org/$PACKAGE/" 1.13 +WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL" 1.14 + 1.15 +# Rules to configure and make the package. 1.16 +compile_rules() 1.17 +{ 1.18 + cd $src 1.19 + patch < ../stuff/Makefile.u || return 1 1.20 + ./configure --prefix=/usr $CONFIGURE_ARGS 1.21 + make 1.22 + make test 1.23 + make DESTDIR=$PWD/_pkg install 1.24 +} 1.25 + 1.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.27 +genpkg_rules() 1.28 +{ 1.29 + mkdir -p $fs/usr 1.30 + cp -a $_pkg/usr/bin $_pkg/usr/lib $fs 1.31 +} 1.32 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/tcc/stuff/Makefile.u Sun May 11 11:36:09 2008 +0000 2.3 @@ -0,0 +1,60 @@ 2.4 +--- tcc-0.9.24/Makefile 2.5 ++++ tcc-0.9.24/Makefile 2.6 +@@ -203,28 +203,28 @@ 2.7 + install: tcc_install libinstall 2.8 + 2.9 + tcc_install: $(PROGS) tcc.1 libtcc1.a $(BCHECK_O) tcc-doc.html 2.10 +- mkdir -p "$(bindir)" 2.11 +- $(INSTALL) -s -m755 $(PROGS) "$(bindir)" 2.12 ++ mkdir -p "$(DESTDIR)/$(bindir)" 2.13 ++ $(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(bindir)" 2.14 + ifndef CONFIG_WIN32 2.15 +- mkdir -p "$(mandir)/man1" 2.16 +- $(INSTALL) tcc.1 "$(mandir)/man1" 2.17 ++ mkdir -p "$(DESTDIR)/$(mandir)/man1" 2.18 ++ $(INSTALL) tcc.1 "$(DESTDIR)/$(mandir)/man1" 2.19 + endif 2.20 +- mkdir -p "$(tccdir)" 2.21 +- mkdir -p "$(tccdir)/include" 2.22 ++ mkdir -p "$(DESTDIR)/$(tccdir)" 2.23 ++ mkdir -p "$(DESTDIR)/$(tccdir)/include" 2.24 + ifdef CONFIG_WIN32 2.25 +- mkdir -p "$(tccdir)/lib" 2.26 +- $(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(tccdir)/lib" 2.27 +- cp -r win32/include/. "$(tccdir)/include" 2.28 +- cp -r win32/examples/. "$(tccdir)/examples" 2.29 ++ mkdir -p "$(DESTDIR)/$(tccdir)/lib" 2.30 ++ $(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib" 2.31 ++ cp -r win32/include/. "$(DESTDIR)/$(tccdir)/include" 2.32 ++ cp -r win32/examples/. "$(DESTDIR)/$(tccdir)/examples" 2.33 + else 2.34 +- $(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(tccdir)" 2.35 ++ $(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(DESTDIR)/$(tccdir)" 2.36 + $(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \ 2.37 +- tcclib.h "$(tccdir)/include" 2.38 ++ tcclib.h "$(DESTDIR)/$(tccdir)/include" 2.39 + endif 2.40 +- mkdir -p "$(docdir)" 2.41 +- $(INSTALL) -m644 tcc-doc.html "$(docdir)" 2.42 ++ mkdir -p "$(DESTDIR)/$(docdir)" 2.43 ++ $(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)" 2.44 + ifdef CONFIG_WIN32 2.45 +- $(INSTALL) -m644 win32/readme.txt "$(docdir)" 2.46 ++ $(INSTALL) -m644 win32/readme.txt "$(DESTDIR)/$(docdir)" 2.47 + endif 2.48 + 2.49 + clean: 2.50 +@@ -242,10 +242,10 @@ 2.51 + 2.52 + # libtcc generation and example 2.53 + libinstall: libtcc.a 2.54 +- mkdir -p "$(libdir)" 2.55 +- $(INSTALL) -m644 libtcc.a "$(libdir)" 2.56 ++ mkdir -p "$(DESTDIR)/$(libdir)" 2.57 ++ $(INSTALL) -m644 libtcc.a "$(DESTDIR)/$(libdir)" 2.58 + mkdir -p "$(includedir)" 2.59 +- $(INSTALL) -m644 libtcc.h "$(includedir)" 2.60 ++ $(INSTALL) -m644 libtcc.h "$(DESTDIR)/$(includedir)" 2.61 + 2.62 + libtcc.o: tcc.c i386-gen.c Makefile 2.63 + ifdef CONFIG_WIN32