wok-next rev 4253

Up tcc (0.9.25)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 25 09:09:41 2009 +0200 (2009-09-25)
parents cb80219b4f26
children afd01c3e849d
files tcc/receipt tcc/stuff/Makefile.u
line diff
     1.1 --- a/tcc/receipt	Fri Sep 25 04:09:04 2009 +0200
     1.2 +++ b/tcc/receipt	Fri Sep 25 09:09:41 2009 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tcc"
     1.7 -VERSION="0.9.24"
     1.8 +VERSION="0.9.25"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="fast Tiny C Compiler."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -17,6 +17,7 @@
    1.13  		patch < ../stuff/Makefile.u || return 1
    1.14  		touch done.Makefile.u
    1.15  	fi
    1.16 +	sed -i 's/cp -u/cp/' tests/Makefile
    1.17  	./configure --prefix=/usr $CONFIGURE_ARGS &&
    1.18  	make &&
    1.19  	make test &&
     2.1 --- a/tcc/stuff/Makefile.u	Fri Sep 25 04:09:04 2009 +0200
     2.2 +++ b/tcc/stuff/Makefile.u	Fri Sep 25 09:09:41 2009 +0200
     2.3 @@ -1,60 +1,84 @@
     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 +--- tcc-0.9.25/Makefile
     2.9 ++++ tcc-0.9.25/Makefile
    2.10 +@@ -197,48 +197,48 @@
    2.11   
    2.12 - tcc_install: $(PROGS) tcc.1 libtcc1.a $(BCHECK_O) tcc-doc.html
    2.13 + ifndef CONFIG_WIN32
    2.14 + install: $(PROGS) $(LIBTCC1) $(BCHECK_O) libtcc.a tcc.1 tcc-doc.html
    2.15  -	mkdir -p "$(bindir)"
    2.16  -	$(INSTALL) -s -m755 $(PROGS) "$(bindir)"
    2.17 +-	mkdir -p "$(mandir)/man1"
    2.18 +-	$(INSTALL) tcc.1 "$(mandir)/man1"
    2.19 +-	mkdir -p "$(tccdir)"
    2.20 +-	mkdir -p "$(tccdir)/include"
    2.21  +	mkdir -p "$(DESTDIR)/$(bindir)"
    2.22  +	$(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(bindir)"
    2.23 - ifndef CONFIG_WIN32
    2.24 --	mkdir -p "$(mandir)/man1"
    2.25 --	$(INSTALL) tcc.1 "$(mandir)/man1"
    2.26  +	mkdir -p "$(DESTDIR)/$(mandir)/man1"
    2.27  +	$(INSTALL) tcc.1 "$(DESTDIR)/$(mandir)/man1"
    2.28 - endif
    2.29 --	mkdir -p "$(tccdir)"
    2.30 --	mkdir -p "$(tccdir)/include"
    2.31  +	mkdir -p "$(DESTDIR)/$(tccdir)"
    2.32  +	mkdir -p "$(DESTDIR)/$(tccdir)/include"
    2.33 - ifdef CONFIG_WIN32
    2.34 + ifneq ($(LIBTCC1),)
    2.35 +-	$(INSTALL) -m644 $(LIBTCC1) "$(tccdir)"
    2.36 ++	$(INSTALL) -m644 $(LIBTCC1) "$(DESTDIR)/$(tccdir)"
    2.37 + endif
    2.38 + ifneq ($(BCHECK_O),)
    2.39 +-	$(INSTALL) -m644 $(BCHECK_O) "$(tccdir)"
    2.40 ++	$(INSTALL) -m644 $(BCHECK_O) "$(DESTDIR)/$(tccdir)"
    2.41 + endif
    2.42 +-	$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
    2.43 +-	mkdir -p "$(docdir)"
    2.44 +-	$(INSTALL) -m644 tcc-doc.html "$(docdir)"
    2.45 +-	mkdir -p "$(libdir)"
    2.46 +-	$(INSTALL) -m644 libtcc.a "$(libdir)"
    2.47 +-	mkdir -p "$(includedir)"
    2.48 +-	$(INSTALL) -m644 libtcc.h "$(includedir)"
    2.49 ++	$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(DESTDIR)/$(tccdir)/include"
    2.50 ++	mkdir -p "$(DESTDIR)/$(docdir)"
    2.51 ++	$(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)"
    2.52 ++	mkdir -p "$(DESTDIR)/$(libdir)"
    2.53 ++	$(INSTALL) -m644 libtcc.a "$(DESTDIR)/$(libdir)"
    2.54 ++	mkdir -p "$(DESTDIR)/$(includedir)"
    2.55 ++	$(INSTALL) -m644 libtcc.h "$(DESTDIR)/$(includedir)"
    2.56 + 
    2.57 + uninstall:
    2.58 +-	rm -fv $(foreach P,$(PROGS),"$(bindir)/$P")
    2.59 +-	rm -fv $(foreach P,$(LIBTCC1) $(BCHECK_O),"$(tccdir)/$P")
    2.60 +-	rm -fv $(foreach P,$(TCC_INCLUDES),"$(tccdir)/include/$P")
    2.61 +-	rm -fv "$(docdir)/tcc-doc.html" "$(mandir)/man1/tcc.1"
    2.62 +-	rm -fv "$(libdir)/libtcc.a" "$(includedir)/libtcc.h"
    2.63 ++	rm -fv $(foreach P,$(PROGS),"$(DESTDIR)/$(bindir)/$P")
    2.64 ++	rm -fv $(foreach P,$(LIBTCC1) $(BCHECK_O),"$(DESTDIR)/$(tccdir)/$P")
    2.65 ++	rm -fv $(foreach P,$(TCC_INCLUDES),"$(DESTDIR)/$(tccdir)/include/$P")
    2.66 ++	rm -fv "$(docdir)/tcc-doc.html" "$(DESTDIR)/$(mandir)/man1/tcc.1"
    2.67 ++	rm -fv "$(libdir)/libtcc.a" "$(DESTDIR)/$(includedir)/libtcc.h"
    2.68 + 
    2.69 + else
    2.70 + install: $(PROGS) $(LIBTCC1) libtcc.a tcc-doc.html
    2.71 +-	mkdir -p "$(tccdir)"
    2.72  -	mkdir -p "$(tccdir)/lib"
    2.73 --	$(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(tccdir)/lib"
    2.74 +-	mkdir -p "$(tccdir)/include"
    2.75 +-	mkdir -p "$(tccdir)/examples"
    2.76 +-	mkdir -p "$(tccdir)/doc"
    2.77 +-	mkdir -p "$(tccdir)/libtcc"
    2.78 +-	$(INSTALL) -s -m755 $(PROGS) "$(tccdir)"
    2.79 +-	$(INSTALL) -m644 $(LIBTCC1) win32/lib/*.def "$(tccdir)/lib"
    2.80  -	cp -r win32/include/. "$(tccdir)/include"
    2.81  -	cp -r win32/examples/. "$(tccdir)/examples"
    2.82 +-#	$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
    2.83 +-	$(INSTALL) -m644 tcc-doc.html win32/tcc-win32.txt "$(tccdir)/doc"
    2.84 +-	$(INSTALL) -m644 libtcc.a libtcc.h "$(tccdir)/libtcc"
    2.85 ++	mkdir -p "$(DESTDIR)/$(tccdir)"
    2.86  +	mkdir -p "$(DESTDIR)/$(tccdir)/lib"
    2.87 -+	$(INSTALL) -m644 libtcc1.a win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib"
    2.88 ++	mkdir -p "$(DESTDIR)/$(tccdir)/include"
    2.89 ++	mkdir -p "$(DESTDIR)/$(tccdir)/examples"
    2.90 ++	mkdir -p "$(DESTDIR)/$(tccdir)/doc"
    2.91 ++	mkdir -p "$(DESTDIR)/$(tccdir)/libtcc"
    2.92 ++	$(INSTALL) -s -m755 $(PROGS) "$(DESTDIR)/$(tccdir)"
    2.93 ++	$(INSTALL) -m644 $(LIBTCC1) win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib"
    2.94  +	cp -r win32/include/. "$(DESTDIR)/$(tccdir)/include"
    2.95  +	cp -r win32/examples/. "$(DESTDIR)/$(tccdir)/examples"
    2.96 - else
    2.97 --	$(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(tccdir)"
    2.98 -+	$(INSTALL) -m644 libtcc1.a $(BCHECK_O) "$(DESTDIR)/$(tccdir)"
    2.99 - 	$(INSTALL) -m644 stdarg.h stddef.h stdbool.h float.h varargs.h \
   2.100 --                   tcclib.h "$(tccdir)/include"
   2.101 -+                   tcclib.h "$(DESTDIR)/$(tccdir)/include"
   2.102 - endif
   2.103 --	mkdir -p "$(docdir)"
   2.104 --	$(INSTALL) -m644 tcc-doc.html "$(docdir)"
   2.105 -+	mkdir -p "$(DESTDIR)/$(docdir)"
   2.106 -+	$(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)"
   2.107 - ifdef CONFIG_WIN32
   2.108 --	$(INSTALL) -m644 win32/readme.txt "$(docdir)"
   2.109 -+	$(INSTALL) -m644 win32/readme.txt "$(DESTDIR)/$(docdir)"
   2.110 ++#	$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(DESTDIR)/$(tccdir)/include"
   2.111 ++	$(INSTALL) -m644 tcc-doc.html win32/tcc-win32.txt "$(DESTDIR)/$(tccdir)/doc"
   2.112 ++	$(INSTALL) -m644 libtcc.a libtcc.h "$(DESTDIR)/$(tccdir)/libtcc"
   2.113   endif
   2.114   
   2.115 - clean:
   2.116 -@@ -242,10 +242,10 @@
   2.117 - 
   2.118 - # libtcc generation and example
   2.119 - libinstall: libtcc.a 
   2.120 --	mkdir -p "$(libdir)"
   2.121 --	$(INSTALL) -m644 libtcc.a "$(libdir)"
   2.122 -+	mkdir -p "$(DESTDIR)/$(libdir)"
   2.123 -+	$(INSTALL) -m644 libtcc.a "$(DESTDIR)/$(libdir)"
   2.124 - 	mkdir -p "$(includedir)"
   2.125 --	$(INSTALL) -m644 libtcc.h "$(includedir)"
   2.126 -+	$(INSTALL) -m644 libtcc.h "$(DESTDIR)/$(includedir)"
   2.127 - 
   2.128 - libtcc.o: tcc.c i386-gen.c Makefile
   2.129 - ifdef CONFIG_WIN32
   2.130 + # documentation and man page