$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)