wok-6.x rev 14345

tcc: remove patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 14 15:05:45 2013 +0200 (2013-04-14)
parents 012b01cf2c1d
children bac33b17992d
files tcc/receipt tcc/stuff/Makefile.u
line diff
     1.1 --- a/tcc/receipt	Sun Apr 14 14:51:53 2013 +0200
     1.2 +++ b/tcc/receipt	Sun Apr 14 15:05:45 2013 +0200
     1.3 @@ -12,7 +12,7 @@
     1.4  HOST_ARCH="i486 arm"
     1.5  
     1.6  DEPENDS="tcc-common"
     1.7 -BUILD_DEPENDS="perl"
     1.8 +BUILD_DEPENDS="perl texinfo"
     1.9  
    1.10  # Perl is installed in a cross env.
    1.11  case "$ARCH" in
    1.12 @@ -23,10 +23,6 @@
    1.13  compile_rules()
    1.14  {
    1.15  	cd $src
    1.16 -	if [ ! -f done.Makefile.u ]; then
    1.17 -		patch < $stuff/Makefile.u || return 1
    1.18 -		touch done.Makefile.u
    1.19 -	fi
    1.20  	./configure \
    1.21  		--prefix=/usr \
    1.22  		--enable-cross \
     2.1 --- a/tcc/stuff/Makefile.u	Sun Apr 14 14:51:53 2013 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,142 +0,0 @@
     2.4 ---- tcc-0.9.26/Makefile
     2.5 -+++ tcc-0.9.26/Makefile
     2.6 -@@ -218,84 +218,84 @@
     2.7 - 
     2.8 - ifndef CONFIG_WIN32
     2.9 - install: $(PROGS) $(TCCLIBS) $(TCCDOCS)
    2.10 --	mkdir -p "$(bindir)"
    2.11 -+	mkdir -p "$(DESTDIR)/$(bindir)"
    2.12 - ifeq ($(CC),tcc)
    2.13 --	$(INSTALL) -m755 $(PROGS) "$(bindir)"
    2.14 -+	$(INSTALL) -m755 $(PROGS) "$(DESTDIR)/$(bindir)"
    2.15 - else
    2.16 --	$(INSTALLBIN) -m755 $(PROGS) "$(bindir)"
    2.17 -+	$(INSTALLBIN) -m755 $(PROGS) "$(DESTDIR)/$(bindir)"
    2.18 - endif
    2.19 --	mkdir -p "$(mandir)/man1"
    2.20 --	-$(INSTALL) tcc.1 "$(mandir)/man1"
    2.21 --	mkdir -p "$(infodir)"
    2.22 --	-$(INSTALL) tcc-doc.info "$(infodir)"
    2.23 --	mkdir -p "$(tccdir)"
    2.24 --	mkdir -p "$(tccdir)/include"
    2.25 -+	mkdir -p "$(DESTDIR)/$(mandir)/man1"
    2.26 -+	-$(INSTALL) tcc.1 "$(DESTDIR)/$(mandir)/man1"
    2.27 -+	mkdir -p "$(DESTDIR)/$(infodir)"
    2.28 -+	-$(INSTALL) tcc-doc.info "$(DESTDIR)/$(infodir)"
    2.29 -+	mkdir -p "$(DESTDIR)/$(tccdir)"
    2.30 -+	mkdir -p "$(DESTDIR)/$(tccdir)/include"
    2.31 - ifneq ($(LIBTCC1),)
    2.32 --	$(INSTALL) -m644 $(LIBTCC1) "$(tccdir)"
    2.33 -+	$(INSTALL) -m644 $(LIBTCC1) "$(DESTDIR)/$(tccdir)"
    2.34 - endif
    2.35 --	$(INSTALL) -m644 $(addprefix $(top_srcdir)/include/,$(TCC_INCLUDES)) "$(tccdir)/include"
    2.36 -+	$(INSTALL) -m644 $(addprefix $(top_srcdir)/include/,$(TCC_INCLUDES)) "$(DESTDIR)/$(tccdir)/include"
    2.37 - 	mkdir -p "$(libdir)"
    2.38 --	$(INSTALL) -m755 $(LIBTCC) "$(libdir)"
    2.39 -+	$(INSTALL) -m755 $(LIBTCC) "$(DESTDIR)/$(libdir)"
    2.40 - ifdef DISABLE_STATIC
    2.41 --	ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(libdir)/libtcc.so.1"
    2.42 --	ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(libdir)/libtcc.so"
    2.43 -+	ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(DESTDIR)/$(libdir)/libtcc.so.1"
    2.44 -+	ln -sf "$(ln_libdir)/libtcc.so.1.0" "$(DESTDIR)/$(libdir)/libtcc.so"
    2.45 - endif
    2.46 --	mkdir -p "$(includedir)"
    2.47 --	$(INSTALL) -m644 $(top_srcdir)/libtcc.h "$(includedir)"
    2.48 --	mkdir -p "$(docdir)"
    2.49 --	-$(INSTALL) -m644 tcc-doc.html "$(docdir)"
    2.50 -+	mkdir -p "$(DESTDIR)/$(includedir)"
    2.51 -+	$(INSTALL) -m644 $(top_srcdir)/libtcc.h "$(DESTDIR)/$(includedir)"
    2.52 -+	mkdir -p "$(DESTDIR)/$(docdir)"
    2.53 -+	-$(INSTALL) -m644 tcc-doc.html "$(DESTDIR)/$(docdir)"
    2.54 - ifdef CONFIG_CROSS
    2.55 --	mkdir -p "$(tccdir)/win32/lib/32"
    2.56 --	mkdir -p "$(tccdir)/win32/lib/64"
    2.57 -+	mkdir -p "$(DESTDIR)/$(tccdir)/win32/lib/32"
    2.58 -+	mkdir -p "$(DESTDIR)/$(tccdir)/win32/lib/64"
    2.59 - ifeq ($(ARCH),x86-64)
    2.60 --	mkdir -p "$(tccdir)/i386"
    2.61 --	$(INSTALL) -m644 lib/i386/libtcc1.a "$(tccdir)/i386"
    2.62 --	cp -r "$(tccdir)/include" "$(tccdir)/i386"
    2.63 -+	mkdir -p "$(DESTDIR)/$(tccdir)/i386"
    2.64 -+	$(INSTALL) -m644 lib/i386/libtcc1.a "$(DESTDIR)/$(tccdir)/i386"
    2.65 -+	cp -r "$(tccdir)/include" "$(DESTDIR)/$(tccdir)/i386"
    2.66 - endif
    2.67 --	$(INSTALL) -m644 win32/lib/*.def "$(tccdir)/win32/lib"
    2.68 --	$(INSTALL) -m644 lib/i386-win32/libtcc1.a "$(tccdir)/win32/lib/32"
    2.69 --	$(INSTALL) -m644 lib/x86_64-win32/libtcc1.a "$(tccdir)/win32/lib/64"
    2.70 --	cp -r win32/include/. "$(tccdir)/win32/include"
    2.71 --	cp -r include/. "$(tccdir)/win32/include"
    2.72 -+	$(INSTALL) -m644 win32/lib/*.def "$(DESTDIR)/$(tccdir)/win32/lib"
    2.73 -+	$(INSTALL) -m644 lib/i386-win32/libtcc1.a "$(DESTDIR)/$(tccdir)/win32/lib/32"
    2.74 -+	$(INSTALL) -m644 lib/x86_64-win32/libtcc1.a "$(DESTDIR)/$(tccdir)/win32/lib/64"
    2.75 -+	cp -r win32/include/. "$(DESTDIR)/$(tccdir)/win32/include"
    2.76 -+	cp -r include/. "$(DESTDIR)/$(tccdir)/win32/include"
    2.77 - endif
    2.78 - 
    2.79 - uninstall:
    2.80 --	rm -fv $(foreach P,$(PROGS),"$(bindir)/$P")
    2.81 --	rm -fv $(foreach P,$(LIBTCC1),"$(tccdir)/$P")
    2.82 --	rm -fv $(foreach P,$(TCC_INCLUDES),"$(tccdir)/include/$P")
    2.83 --	rm -fv "$(docdir)/tcc-doc.html" "$(mandir)/man1/tcc.1" "$(infodir)/tcc-doc.info"
    2.84 --	rm -fv "$(libdir)/$(LIBTCC)" "$(includedir)/libtcc.h"
    2.85 --	rm -fv "$(libdir)/libtcc.so*"
    2.86 --	rm -rf "$(tccdir)/win32"
    2.87 --	-rmdir $(tccdir)/include
    2.88 -+	rm -fv $(foreach P,$(PROGS),"$(DESTDIR)/$(bindir)/$P")
    2.89 -+	rm -fv $(foreach P,$(LIBTCC1),"$(DESTDIR)/$(tccdir)/$P")
    2.90 -+	rm -fv $(foreach P,$(TCC_INCLUDES),"$(DESTDIR)/$(tccdir)/include/$P")
    2.91 -+	rm -fv "$(DESTDIR)/$(docdir)/tcc-doc.html" "$(DESTDIR)/$(mandir)/man1/tcc.1" "$(DESTDIR)/$(infodir)/tcc-doc.info"
    2.92 -+	rm -fv "$(DESTDIR)/$(libdir)/$(LIBTCC)" "$(DESTDIR)/$(includedir)/libtcc.h"
    2.93 -+	rm -fv "$(DESTDIR)/$(libdir)/libtcc.so*"
    2.94 -+	rm -rf "$(DESTDIR)/$(tccdir)/win32"
    2.95 -+	-rmdir $(DESTDIR)/$(tccdir)/include
    2.96 - ifeq ($(ARCH),x86-64)
    2.97 --	rm -rf "$(tccdir)/i386"
    2.98 -+	rm -rf "$(DESTDIR)/$(tccdir)/i386"
    2.99 - endif
   2.100 - else
   2.101 - # on windows
   2.102 - install: $(PROGS) $(TCCLIBS) $(TCCDOCS)
   2.103 --	mkdir -p "$(tccdir)"
   2.104 --	mkdir -p "$(tccdir)/lib"
   2.105 --	mkdir -p "$(tccdir)/include"
   2.106 --	mkdir -p "$(tccdir)/examples"
   2.107 --	mkdir -p "$(tccdir)/doc"
   2.108 --	mkdir -p "$(tccdir)/libtcc"
   2.109 --	$(INSTALLBIN) -m755 $(PROGS) "$(tccdir)"
   2.110 --	$(INSTALL) -m644 $(LIBTCC1) win32/lib/*.def "$(tccdir)/lib"
   2.111 --	cp -r win32/include/. "$(tccdir)/include"
   2.112 --	cp -r win32/examples/. "$(tccdir)/examples"
   2.113 --	$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(tccdir)/include"
   2.114 --	$(INSTALL) -m644 tcc-doc.html win32/tcc-win32.txt "$(tccdir)/doc"
   2.115 --	$(INSTALL) -m644 $(LIBTCC) libtcc.h "$(tccdir)/libtcc"
   2.116 -+	mkdir -p "$(DESTDIR)/$(tccdir)"
   2.117 -+	mkdir -p "$(DESTDIR)/$(tccdir)/lib"
   2.118 -+	mkdir -p "$(DESTDIR)/$(tccdir)/include"
   2.119 -+	mkdir -p "$(DESTDIR)/$(tccdir)/examples"
   2.120 -+	mkdir -p "$(DESTDIR)/$(tccdir)/doc"
   2.121 -+	mkdir -p "$(DESTDIR)/$(tccdir)/libtcc"
   2.122 -+	$(INSTALLBIN) -m755 $(PROGS) "$(DESTDIR)/$(tccdir)"
   2.123 -+	$(INSTALL) -m644 $(LIBTCC1) win32/lib/*.def "$(DESTDIR)/$(tccdir)/lib"
   2.124 -+	cp -r win32/include/. "$(DESTDIR)/$(tccdir)/include"
   2.125 -+	cp -r win32/examples/. "$(DESTDIR)/$(tccdir)/examples"
   2.126 -+	$(INSTALL) -m644 $(addprefix include/,$(TCC_INCLUDES)) "$(DESTDIR)/$(tccdir)/include"
   2.127 -+	$(INSTALL) -m644 tcc-doc.html win32/tcc-win32.txt "$(DESTDIR)/$(tccdir)/doc"
   2.128 -+	$(INSTALL) -m644 $(LIBTCC) libtcc.h "$(DESTDIR)/$(tccdir)/libtcc"
   2.129 - ifdef CONFIG_CROSS
   2.130 --	mkdir -p "$(tccdir)/lib/32"
   2.131 --	mkdir -p "$(tccdir)/lib/64"
   2.132 --	-$(INSTALL) -m644 lib/i386-win32/libtcc1.a "$(tccdir)/lib/32"
   2.133 --	-$(INSTALL) -m644 lib/x86_64-win32/libtcc1.a "$(tccdir)/lib/64"
   2.134 -+	mkdir -p "$(DESTDIR)/$(tccdir)/lib/32"
   2.135 -+	mkdir -p "$(DESTDIR)/$(tccdir)/lib/64"
   2.136 -+	-$(INSTALL) -m644 lib/i386-win32/libtcc1.a "$(DESTDIR)/$(tccdir)/lib/32"
   2.137 -+	-$(INSTALL) -m644 lib/x86_64-win32/libtcc1.a "$(DESTDIR)/$(tccdir)/lib/64"
   2.138 - endif
   2.139 - 
   2.140 - uninstall:
   2.141 --	rm -rfv "$(tccdir)/*"
   2.142 -+	rm -rfv "$(DESTDIR)/$(tccdir)/*"
   2.143 - endif
   2.144 - 
   2.145 - # documentation and man page