aa675e0571
ftplibpp is a C++ class providing ftp client functionality. It is a direct derivate from the great ftplib C library by Thomas Pfau.
36 lines
985 B
Text
36 lines
985 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2004/09/06 16:27:03 cjep Exp $
|
|
|
|
--- Makefile.orig 2003-08-12 02:34:35.000000000 +0100
|
|
+++ 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 && \
|
|
+ install -m 644 libftp.so.$(SOVERSION) ${PREFIX}/lib
|
|
+ install -m 644 ftplib.h ${PREFIX}/include
|
|
+ (cd ${PREFIX}/lib && \
|
|
ln -sf libftp.so.$(SOVERSION) libftp.so.$(SONAME) && \
|
|
ln -sf libftp.so.$(SONAME) libftp.so)
|
|
-# -(cd /usr/local/bin && \
|
|
+# -(cd ${PREFIX}/bin && \
|
|
# for f in ftpdir ftpget ftplist ftprm ftpsend; \
|
|
# do ln -s qftp $$f; done)
|
|
|