blob: de29f9b5ade25f939e8b89b643a544e84104551e (
plain)
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
|
$NetBSD: patch-aa,v 1.2 2007/12/20 15:11:06 obache Exp $
--- Makefile.orig 2003-08-12 01:34:35.000000000 +0000
+++ Makefile
@@ -3,6 +3,8 @@
SONAME = 1
SOVERSION = $(SONAME).0
+PREFIX?= /usr/local
+
#TARGETS = libftp.a libftp.so
TARGETS = libftp.so
OBJECTS = ftplib.o
@@ -21,16 +23,16 @@ clean :
rm -f libftp.so.*
uninstall :
- rm -f /usr/local/lib/libftp.so.*
- rm -f /usr/local/include/libftp.h
+ rm -f ${PREFIX}/lib/libftp.so.*
+ rm -f ${PREFIX}/include/libftp.h
install : all
- install -m 644 libftp.so.$(SOVERSION) /usr/local/lib
- install -m 644 ftplib.h /usr/local/include
- (cd /usr/local/lib && \
+ ${BSD_INSTALL_LIB} libftp.so.$(SOVERSION) ${DESTDIR}${PREFIX}/lib
+ ${BSD_INSTALL_DATA} ftplib.h ${DESTDIR}${PREFIX}/include
+ (cd ${DESTDIR}${PREFIX}/lib && \
ln -sf libftp.so.$(SOVERSION) libftp.so.$(SONAME) && \
ln -sf libftp.so.$(SONAME) libftp.so)
-# -(cd /usr/local/bin && \
+# -(cd ${DESTDIR}${PREFIX}/bin && \
# for f in ftpdir ftpget ftplist ftprm ftpsend; \
# do ln -s qftp $$f; done)
|