Ticket #44593: port-webcrawl.diff
File port-webcrawl.diff, 3.2 KB (added by anddam (Andrea D'Amore), 10 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 name webcrawl 5 5 version 1.10 6 revision 0 6 license permissive 7 7 categories www 8 8 maintainers mac.com:lomion 9 description webcrawl is a program which downloads entire web sites,\ 10 following links in HTML documents. 9 description download entire web sites 11 10 long_description webcrawl is a program which downloads entire web sites,\ 12 11 following links in HTML documents. 13 12 homepage http://freecode.com/projects/webcrawl/ … … 14 13 platforms darwin 15 14 master_sites sunsite:apps/www/mirroring 16 15 extract.suffix .tgz 17 checksums md5 68dec8705d86fcc7e9d05b2ea74c53fd 18 patchfiles patch-Makefile 16 checksums md5 68dec8705d86fcc7e9d05b2ea74c53fd \ 17 rmd160 c81168236462927efa7b8b274468aa5b5a4e980c \ 18 sha256 f0bdac391c0f2a87d9db100232ad8aff5d3c10bc32e06880c9ee69cbbd3b4a79 19 patchfiles patch-Makefile.diff 19 20 20 configure {21 reinplace "s|__DSTROOT|${destroot}${prefix}|g" ${worksrcpath}/Makefile22 }23 21 22 use_configure no 24 23 build.target 24 build.args CC=${configure.cc} \ 25 CPPFLAGS=${configure.cppflags} \ 26 CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \ 27 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" 28 destroot.args-append PREFIX=${prefix} \ 29 DESTDIR=${destroot.destdir} 30 -
files/patch-Makefile
1 --- Makefile.orig Wed Mar 24 14:15:44 20042 +++ Makefile Wed Mar 24 14:17:53 20043 @@ -1,6 +1,6 @@4 OBJ=webcrawl.o http.o path.o getxref.o url.o rewrite.o rename.o5 -INSTDIR=/usr/local/bin6 -MAN=/usr/local/man7 +INSTDIR=__DSTROOT/bin8 +MAN=__DSTROOT/share/man9 10 webcrawl: $(OBJ)11 gcc -o webcrawl $(OBJ) -
files/patch-Makefile.diff
1 --- Makefile.orig Wed Mar 24 14:15:44 20042 +++ Makefile Wed Mar 24 14:17:53 20043 @@ -1, 6 +1,6@@1 --- Makefile.orig 2014-08-10 18:53:10.000000000 +0200 2 +++ Makefile 2014-08-10 18:53:25.000000000 +0200 3 @@ -1,16 +1,17 @@ 4 4 OBJ=webcrawl.o http.o path.o getxref.o url.o rewrite.o rename.o 5 5 -INSTDIR=/usr/local/bin 6 6 -MAN=/usr/local/man 7 +INSTDIR=__DSTROOT/bin 8 +MAN=__DSTROOT/share/man 7 +PREFIX ?= /usr/local 8 +INSTDIR = $(DESTDIR)$(PREFIX)/bin 9 +MAN = $(DESTDIR)$(PREFIX)/share/man 9 10 10 11 webcrawl: $(OBJ) 11 gcc -o webcrawl $(OBJ) 12 - gcc -o webcrawl $(OBJ) 13 + $(CC) -o webcrawl $(LDFLAGS) $(OBJ) 14 clean: 15 rm -f *.o *~ webcrawl 16 install: webcrawl 17 install webcrawl $(INSTDIR) 18 install webcrawl.1 $(MAN)/man1 19 .c.o: 20 - gcc -Wall -c $*.c 21 + $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -c $*.c 22 23 webcrawl.o: webcrawl.c web.h 24 http.o: http.c web.h