summaryrefslogtreecommitdiff
path: root/www/httrack/files/patch-ab
blob: 2acec06f6b24bc7db39569b9f9113bc9d3b1c084 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- Makefile.in.orig	Thu Jul 11 07:15:47 2002
+++ Makefile.in	Sat Aug  3 17:53:46 2002
@@ -22,7 +22,6 @@
 ### Makefile commands
 SHELL     = /bin/sh
 MAIN      =
-CC        = gcc 
 CFLAGS    = __CFLAGS__
 # threads
 LFLAGS    = __LFLAGS__ __LFLAGS2__ __LFLAGS3__
@@ -50,7 +49,7 @@
 MAINBIN = httrack.c
 
 BOUTPUT     = httrack
-BOUTPUTSO   = libhttrack.so
+BOUTPUTSO   = libhttrack.so.1
 DOCS      = ../HelpHtml ../templates ../httrack-doc.html ../COPYING ../INSTALL ../README ../*.txt
 HTSSYSTEM = htssystem.h
 BINPATH   = __BINPATH__
@@ -346,7 +345,8 @@
 	chmod a+rx $(BOUTPUT)
 
 build_binso : $(SOBINARIES)
-	$(CC) $(CFLAGS) -shared -Wl,-x,-soname,$(BOUTPUTSO) -o $(BOUTPUTSO) $(SOBINARIES) -lc $(LFLAGS)
+	$(CC) $(CFLAGS) -shared -Wl,-x,-soname,$(BOUTPUTSO) -o $(BOUTPUTSO) $(SOBINARIES) $(LFLAGS)
+	/bin/ln -sf $(BOUTPUTSO) libhttrack.so
 	$(CC) -L. -lhttrack $(MAINBIN) -o $(BOUTPUT)
 	chmod a+rx $(BOUTPUT)
 
@@ -377,12 +377,12 @@
 
 # Install docs
 docinstall :
-	mkdir -p "$(PREFIX)/doc/httrack" && chmod a+rx "$(PREFIX)/doc/httrack"
-	cp -fR $(DOCS) "$(PREFIX)/doc/httrack/"
+	mkdir -p "$(PREFIX)/share/doc/httrack" && chmod a+rx "$(PREFIX)/share/doc/httrack"
+	cp -fR $(DOCS) "$(PREFIX)/share/doc/httrack/"
 
 # Uninstall docs
 docremove :
-	rm -rf "$(PREFIX)/doc/httrack"
+	rm -rf "$(PREFIX)/share/doc/httrack"
 
 # Install binaries and conf files
 bininstall :
@@ -399,7 +399,7 @@
 	test ! -d  "$(LIBPATH)" && (mkdir -p "$(LIBPATH)" && chmod a+rx "$(LIBPATH)") || true
 	cp -f $(BOUTPUTSO) $(LIBPATH)/
 	chmod a+rx $(LIBPATH)/$(BOUTPUTSO)
-	ln -sf "$(BOUTPUTSO)" "$(PREFIX)/lib/$(BOUTPUTSO).1"
+	ln -sf "$(BOUTPUTSO)" "$(PREFIX)/lib/libhttrack.so"
 
 
 # Uninstall binaries