From 168a3246f0e3c46b0ef3b5dcf5d18607cff1583f Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 12 Jun 2008 02:14:13 +0000 Subject: Add DESTDIR support. --- games/aop/Makefile | 4 +++- games/aop/distinfo | 4 ++-- games/aop/patches/patch-aa | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) (limited to 'games/aop') diff --git a/games/aop/Makefile b/games/aop/Makefile index 5a82e2867fa..a582a340873 100644 --- a/games/aop/Makefile +++ b/games/aop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2006/03/12 15:18:12 rillig Exp $ +# $NetBSD: Makefile,v 1.2 2008/06/12 02:14:29 joerg Exp $ DISTNAME= aop-0.6 CATEGORIES= games @@ -8,6 +8,8 @@ MAINTAINER= tonio@NetBSD.org HOMEPAGE= http://raffi.at/view/code/aop/ COMMENT= Aop is a curses based arcade game with only 64 lines of sourcecode +PKG_DESTDIR_SUPPORT= user-destdir + SUBST_CLASSES+= destination SUBST_FILES.destination=aop.c Makefile SUBST_STAGE.destination=pre-configure diff --git a/games/aop/distinfo b/games/aop/distinfo index 44902fb7f70..80c4c370e32 100644 --- a/games/aop/distinfo +++ b/games/aop/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2006/03/12 15:18:12 rillig Exp $ +$NetBSD: distinfo,v 1.2 2008/06/12 02:14:29 joerg Exp $ SHA1 (aop-0.6.tar.gz) = 88bc2216f1898c42d8223ebaf0bfe665d03d0074 RMD160 (aop-0.6.tar.gz) = 2c329b08f14455b181bf2be15e90790a718f50e4 Size (aop-0.6.tar.gz) = 11811 bytes -SHA1 (patch-aa) = 5bd877de15ad1546f37d830e75013364d6727c19 +SHA1 (patch-aa) = 4b34486acba7e1ecc38845536d168436b1c52c42 diff --git a/games/aop/patches/patch-aa b/games/aop/patches/patch-aa index c33781b476b..3c9583aaaee 100644 --- a/games/aop/patches/patch-aa +++ b/games/aop/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.1.1.1 2006/03/12 15:18:12 rillig Exp $ +$NetBSD: patch-aa,v 1.2 2008/06/12 02:14:30 joerg Exp $ --- Makefile.orig 2005-04-25 23:27:12.000000000 +0200 +++ Makefile 2005-04-25 23:30:38.000000000 +0200 @@ -10,10 +10,10 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/03/12 15:18:12 rillig Exp $ - install -d /usr/local/share/aop - install -m 755 aop /usr/local/bin/aop - install -m 644 aop-level-*.txt /usr/local/share/aop/ -+ ${BSD_INSTALL_PROGRAM_DIR} ${PREFIX}/bin -+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/aop -+ ${BSD_INSTALL_PROGRAM} aop ${PREFIX}/bin/aop -+ ${BSD_INSTALL_DATA} aop-level-*.txt ${PREFIX}/share/aop/ ++ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin ++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/aop ++ ${BSD_INSTALL_PROGRAM} aop ${DESTDIR}${PREFIX}/bin/aop ++ ${BSD_INSTALL_DATA} aop-level-*.txt ${DESTDIR}${PREFIX}/share/aop/ clean: rm -f aop core* *~ -- cgit v1.2.3