diff options
author | obache <obache@pkgsrc.org> | 2009-08-21 11:55:50 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2009-08-21 11:55:50 +0000 |
commit | e350e8925b920d4a0e36d206f1394721058215b7 (patch) | |
tree | 926eb34f0b6eb4259db7adb0ff4552cb3dde4220 /mail | |
parent | 08d7beb76630b4d4e58a06adae969a6da4364cf9 (diff) | |
download | pkgsrc-e350e8925b920d4a0e36d206f1394721058215b7.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/imap-uw/Makefile | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile index 2775247574c..b814fe58983 100644 --- a/mail/imap-uw/Makefile +++ b/mail/imap-uw/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.130 2009/05/17 16:03:08 plunky Exp $ +# $NetBSD: Makefile,v 1.131 2009/08/21 11:55:50 obache Exp $ # # ATTENTION: # The Kerberos support in this software is known to be problematic. If you @@ -20,6 +20,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.washington.edu/imap/ COMMENT= University of Washington's IMAP, POP2, and POP3 servers +PKG_DESTDIR_SUPPORT= user-destdir + USE_LIBTOOL= yes MAKE_ENV+= LIBTOOL=libtool MAKE_ENV+= LTCOMPILE="libtool --mode=compile" @@ -109,42 +111,42 @@ post-build: ${LIBTOOL} --mode=link ${CC} -o ${CCLIENT_PICLIB:.a=.la} *.lo do-install: install-headers install-lib install-doc - ${LTINSTALL_PROGRAM} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec - ${LTINSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec - ${LTINSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec - ${LTINSTALL_PROGRAM} ${WRKSRC}/mtest/mtest ${PREFIX}/sbin - ${LN} -sf ../libexec/imapd ${PREFIX}/sbin/rimapd - ${INSTALL_MAN} ${WRKSRC}/src/imapd/imapd.8 ${PREFIX}/${PKGMANDIR}/man8 - ${INSTALL_MAN} ${WRKSRC}/src/ipopd/ipopd.8 ${PREFIX}/${PKGMANDIR}/man8 - ${LN} -sf ipopd.8 ${PREFIX}/${PKGMANDIR}/man8/ipop2d.8 - ${LN} -sf ipopd.8 ${PREFIX}/${PKGMANDIR}/man8/ipop3d.8 - ${LTINSTALL_PROGRAM} ${WRKSRC}/mailutil/mailutil ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/src/mailutil/mailutil.1 ${PREFIX}/${PKGMANDIR}/man1 - ${LTINSTALL_PROGRAM} ${WRKSRC}/dmail/dmail ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/src/dmail/dmail.1 ${PREFIX}/${PKGMANDIR}/man1 - ${LTINSTALL_PROGRAM} ${WRKSRC}/mlock/mlock ${PREFIX}/bin - ${LTINSTALL_PROGRAM} ${WRKSRC}/tmail/tmail ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/src/tmail/tmail.1 ${PREFIX}/${PKGMANDIR}/man1 + ${LTINSTALL_PROGRAM} ${WRKSRC}/imapd/imapd ${DESTDIR}${PREFIX}/libexec + ${LTINSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop2d ${DESTDIR}${PREFIX}/libexec + ${LTINSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop3d ${DESTDIR}${PREFIX}/libexec + ${LTINSTALL_PROGRAM} ${WRKSRC}/mtest/mtest ${DESTDIR}${PREFIX}/sbin + ${LN} -sf ../libexec/imapd ${DESTDIR}${PREFIX}/sbin/rimapd + ${INSTALL_MAN} ${WRKSRC}/src/imapd/imapd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 + ${INSTALL_MAN} ${WRKSRC}/src/ipopd/ipopd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 + ${LN} -sf ipopd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/ipop2d.8 + ${LN} -sf ipopd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/ipop3d.8 + ${LTINSTALL_PROGRAM} ${WRKSRC}/mailutil/mailutil ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/src/mailutil/mailutil.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${LTINSTALL_PROGRAM} ${WRKSRC}/dmail/dmail ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/src/dmail/dmail.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${LTINSTALL_PROGRAM} ${WRKSRC}/mlock/mlock ${DESTDIR}${PREFIX}/bin + ${LTINSTALL_PROGRAM} ${WRKSRC}/tmail/tmail ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/src/tmail/tmail.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .PHONY: install-headers install-lib install-doc install-headers: - ${INSTALL_DATA_DIR} ${PREFIX}/include/c-client + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/c-client ${CAT} ${PKGDIR}/PLIST | \ while read entry; do \ case "$$entry" in \ include/c-client/*) \ src="${WRKSRC}/c-client/`${BASENAME} $$entry`"; \ - dest="${PREFIX}/$$entry"; \ + dest="${DESTDIR}${PREFIX}/$$entry"; \ ${INSTALL_DATA} $$src $$dest; \ esac; \ done install-lib: - ${LTINSTALL_LIB} ${WRKSRC}/c-client/${CCLIENT_LIB} ${PREFIX}/lib - ${INSTALL_LIB} ${WRKSRC}/c-client/.libs/${CCLIENT_PICLIB} ${PREFIX}/lib - ${RANLIB} ${PREFIX}/lib/${CCLIENT_PICLIB} + ${LTINSTALL_LIB} ${WRKSRC}/c-client/${CCLIENT_LIB} ${DESTDIR}${PREFIX}/lib + ${INSTALL_LIB} ${WRKSRC}/c-client/.libs/${CCLIENT_PICLIB} ${DESTDIR}${PREFIX}/lib + ${RANLIB} ${DESTDIR}${PREFIX}/lib/${CCLIENT_PICLIB} -DOCDIR= ${PREFIX}/share/doc/${PKGBASE} +DOCDIR= ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} install-doc: ${INSTALL_DATA_DIR} ${DOCDIR} ${CP} -R ${WRKSRC}/docs/* ${DOCDIR} |