Add user-destdir installation support.

This commit is contained in:
obache 2011-03-28 13:02:25 +00:00
parent 84b638de0e
commit e3d1c1edfb
4 changed files with 15 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.49 2010/08/25 09:59:52 jmcneill Exp $
# $NetBSD: Makefile,v 1.50 2011/03/28 13:02:25 obache Exp $
DISTNAME= ircii-pana-1.1-final
PKGNAME= bitchx-1.1
@ -13,6 +13,8 @@ COMMENT= IRC client based on ircII
# This package is not even remotely 64-bit clean
NOT_FOR_PLATFORM= ${LP64PLATFORMS}
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= bash
WRKSRC= ${WRKDIR}/BitchX
@ -31,6 +33,9 @@ SUBST_STAGE.manpage= post-patch
SUBST_FILES.manpage+= doc/BitchX.1
SUBST_SED.manpage+= -e 's,@PREFIX@,${PREFIX},g'
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2010/08/16 09:48:00 wiz Exp $
# $NetBSD: Makefile,v 1.13 2011/03/28 13:11:21 obache Exp $
#
DISTNAME= tzc-2.6.15
@ -10,9 +10,13 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.cmu.edu/People/dkindred/zephyr/zephyr.html
COMMENT= Back-end program for zephyr-mode
PKG_DESTDIR_SUPPORT= user-destdir
CPPFLAGS+= -I/usr/include/kerberosIV -I/usr/include/krb5
LDFLAGS+= -lroken -lcrypto -lcom_err
INSTALLATION_DIRS+= bin
.include "../../chat/zephyr/buildlink3.mk"
.include "../../security/kth-krb4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.3 2006/06/18 19:36:53 joerg Exp $
$NetBSD: distinfo,v 1.4 2011/03/28 13:11:21 obache Exp $
SHA1 (tzc-2.6.15.tar.gz) = 13385b849f6e5142c94393da253eca70f6ec4bf6
RMD160 (tzc-2.6.15.tar.gz) = ce5be93fc31b57f41e433446f4ebfe06b9a7eb14
Size (tzc-2.6.15.tar.gz) = 22726 bytes
SHA1 (patch-aa) = f876da61bb5da7ce695c3515a2c4c650f2e08e51
SHA1 (patch-aa) = 182fdb72b4ac90ac06a957756e4f1ad730e95c01
SHA1 (patch-ab) = 8996eb2c93d5605d57dbb32093f62baaa0af1111

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.1.1.1 2002/12/30 17:41:04 sommerfeld Exp $
$NetBSD: patch-aa,v 1.2 2011/03/28 13:11:21 obache Exp $
--- Makefile.orig Tue Jul 10 22:17:31 2001
+++ Makefile
@ -33,4 +33,4 @@ $NetBSD: patch-aa,v 1.1.1.1 2002/12/30 17:41:04 sommerfeld Exp $
/bin/rm -f *.o tzc tzc.new core
+
+install:
+ ${INSTALL} tzc ${LOCALBASE}/bin/tzc
+ ${INSTALL} tzc ${DESTDIR}${LOCALBASE}/bin/tzc