DESTDIR support.diff -r1.12 -r1.13 pkgsrc/x11/imwheel/Makefile
(joerg)
@@ -1,22 +1,24 @@ | @@ -1,22 +1,24 @@ | |||
1 | # $NetBSD: Makefile,v 1.12 2008/01/15 12:42:52 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.13 2009/02/16 18:21:24 joerg Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= imwheel-0.9.9 | 4 | DISTNAME= imwheel-0.9.9 | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | CATEGORIES= x11 | 6 | CATEGORIES= x11 | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=imwheel/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=imwheel/} | |
8 | 8 | |||
9 | MAINTAINER= zuntum@NetBSD.org | 9 | MAINTAINER= zuntum@NetBSD.org | |
10 | HOMEPAGE= http://imwheel.sourceforge.net/ | 10 | HOMEPAGE= http://imwheel.sourceforge.net/ | |
11 | COMMENT= Tool which helps to use mousewheels | 11 | COMMENT= Tool which helps to use mousewheels | |
12 | 12 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | |||
14 | ||||
13 | USE_X11BASE= YES | 15 | USE_X11BASE= YES | |
14 | 16 | |||
15 | GNU_CONFIGURE= YES | 17 | GNU_CONFIGURE= YES | |
16 | CONFIGURE_ARGS+= --disable-gpm | 18 | CONFIGURE_ARGS+= --disable-gpm | |
17 | 19 | |||
18 | .include "../../x11/libXext/buildlink3.mk" | 20 | .include "../../x11/libXext/buildlink3.mk" | |
19 | .include "../../x11/libXmu/buildlink3.mk" | 21 | .include "../../x11/libXmu/buildlink3.mk" | |
20 | .include "../../x11/libXtst/buildlink3.mk" | 22 | .include "../../x11/libXtst/buildlink3.mk" | |
21 | .include "../../x11/xextproto/buildlink3.mk" | 23 | .include "../../x11/xextproto/buildlink3.mk" | |
22 | .include "../../mk/bsd.pkg.mk" | 24 | .include "../../mk/bsd.pkg.mk" |
@@ -1,8 +1,8 @@ | @@ -1,8 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2005/02/23 17:36:12 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.4 2009/02/16 18:21:24 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (imwheel-0.9.9.tar.gz) = cbf5d40f764d4b7382538954b68bb9a6c4faa336 | 3 | SHA1 (imwheel-0.9.9.tar.gz) = cbf5d40f764d4b7382538954b68bb9a6c4faa336 | |
4 | RMD160 (imwheel-0.9.9.tar.gz) = 960aae8a7eabc113e3c4b875f58c4c50e5d87934 | 4 | RMD160 (imwheel-0.9.9.tar.gz) = 960aae8a7eabc113e3c4b875f58c4c50e5d87934 | |
5 | Size (imwheel-0.9.9.tar.gz) = 411882 bytes | 5 | Size (imwheel-0.9.9.tar.gz) = 411882 bytes | |
6 | SHA1 (patch-aa) = f869d434415e526b24451205383009be76829f28 | 6 | SHA1 (patch-aa) = f869d434415e526b24451205383009be76829f28 | |
7 | SHA1 (patch-ab) = 2547c10c55626568e9447f2a5f2258e83d26e506 | 7 | SHA1 (patch-ab) = 0fc4fb90dd32223b5dff124fb58760a48f0beebd | |
8 | SHA1 (patch-ac) = ce2d5ef56c685a68ae735b1d5a354b7b163e5ee5 | 8 | SHA1 (patch-ac) = ce2d5ef56c685a68ae735b1d5a354b7b163e5ee5 |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | $NetBSD: patch-ab,v 1.1.1.1 2001/04/27 13:32:01 zuntum Exp $ | 1 | $NetBSD: patch-ab,v 1.2 2009/02/16 18:21:24 joerg Exp $ | |
2 | 2 | |||
3 | --- Makefile.in.orig Thu Feb 22 08:41:40 2001 | 3 | --- Makefile.in.orig Thu Feb 22 08:41:40 2001 | |
4 | +++ Makefile.in | 4 | +++ Makefile.in | |
5 | @@ -581,9 +581,11 @@ | 5 | @@ -581,9 +581,11 @@ | |
6 | @SUID_TRUE@ progname=$(DESTDIR)$(bindir)/`echo imwheel|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'` ; \ | 6 | @SUID_TRUE@ progname=$(DESTDIR)$(bindir)/`echo imwheel|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'` ; \ | |
7 | @SUID_TRUE@ chown @suid@ $$progname ; \ | 7 | @SUID_TRUE@ chown @suid@ $$progname ; \ | |
8 | @SUID_TRUE@ chmod u+s $$progname | 8 | @SUID_TRUE@ chmod u+s $$progname | |
9 | -@SUID_TRUE@ install -m 644 imwheelrc /etc/imwheelrc | 9 | -@SUID_TRUE@ install -m 644 imwheelrc /etc/imwheelrc | |
10 | +@SUID_TRUE@ install -d ${PREFIX}/share/examples/imwheel | 10 | +@SUID_TRUE@ install -d ${DESTDIR}${PREFIX}/share/examples/imwheel | |
11 | +@SUID_TRUE@ install -c -m 644 imwheelrc ${PREFIX}/share/examples/imwheel/imwheelrc | 11 | +@SUID_TRUE@ install -c -m 644 imwheelrc ${DESTDIR}${PREFIX}/share/examples/imwheel/imwheelrc | |
12 | @SUID_FALSE@install-exec-hook: | 12 | @SUID_FALSE@install-exec-hook: | |
13 | -@SUID_FALSE@ install -m 644 imwheelrc /etc/imwheelrc | 13 | -@SUID_FALSE@ install -m 644 imwheelrc /etc/imwheelrc | |
14 | +@SUID_FALSE@ install -d ${PREFIX}/share/examples/imwheel | 14 | +@SUID_FALSE@ install -d ${DESTDIR}${PREFIX}/share/examples/imwheel | |
15 | +@SUID_FALSE@ install -c -m 644 imwheelrc ${PREFIX}/share/examples/imwheel/imwheelrc | 15 | +@SUID_FALSE@ install -c -m 644 imwheelrc ${DESTDIR}${PREFIX}/share/examples/imwheel/imwheelrc | |
16 | 16 | |||
17 | extras: $(EXTRA_PROGRAMS) | 17 | extras: $(EXTRA_PROGRAMS) | |
18 | 18 |