diff options
author | joerg <joerg> | 2007-12-19 18:43:37 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-12-19 18:43:37 +0000 |
commit | 449923266cde156b86b7bbe1c3248320a188cda8 (patch) | |
tree | eaff009bc6d3de09543b8617527a6d87e3e8215b /sysutils | |
parent | 2a445387e3fd5529020bef1715238f320f252b24 (diff) | |
download | pkgsrc-449923266cde156b86b7bbe1c3248320a188cda8.tar.gz |
DESTDIR support. When patching uninstall, make it remove the right
files.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/i810switch/Makefile | 4 | ||||
-rw-r--r-- | sysutils/i810switch/distinfo | 4 | ||||
-rw-r--r-- | sysutils/i810switch/patches/patch-aa | 27 |
3 files changed, 19 insertions, 16 deletions
diff --git a/sysutils/i810switch/Makefile b/sysutils/i810switch/Makefile index 3e45aaba6bf..566677504f2 100644 --- a/sysutils/i810switch/Makefile +++ b/sysutils/i810switch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2006/12/04 04:42:03 christos Exp $ +# $NetBSD: Makefile,v 1.2 2007/12/19 18:43:37 joerg Exp $ # DISTNAME= i810switch-0.6.5 @@ -9,6 +9,8 @@ MAINTAINER= christos@NetBSD.org HOMEPAGE= http://www16.plala.or.jp/mano-a-mano/i810switch/ COMMENT= Switch LCD/CRT 855/865/915 Intel chips +PKG_DESTDIR_SUPPORT= user-destdir + ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64 Linux-*-i386 .include "../../mk/bsd.prefs.mk" diff --git a/sysutils/i810switch/distinfo b/sysutils/i810switch/distinfo index 8f6b1ca09f0..a33312906e7 100644 --- a/sysutils/i810switch/distinfo +++ b/sysutils/i810switch/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.1 2006/12/04 04:42:03 christos Exp $ +$NetBSD: distinfo,v 1.2 2007/12/19 18:43:37 joerg Exp $ SHA1 (i810switch-0.6.5.tar.gz) = 437adeb38f6530b5e68810fc5ee65fb5adaafd97 RMD160 (i810switch-0.6.5.tar.gz) = 4acaea0c7c4197cdff30885a51f65cda3d3a6df9 Size (i810switch-0.6.5.tar.gz) = 24287 bytes -SHA1 (patch-aa) = b4c7d7ab390e62d44ad08d9d15ce21748e6c46b8 +SHA1 (patch-aa) = 1800d6b690d495a33f99347235c31cd24120ed25 SHA1 (patch-ab) = 2f1635cc81e409043a6cd63d0609983428564f68 SHA1 (patch-ac) = 7fab3fadeaabb34372a63b8bd0b7f10492a7fffe diff --git a/sysutils/i810switch/patches/patch-aa b/sysutils/i810switch/patches/patch-aa index 6850b0c4eff..81233b64bed 100644 --- a/sysutils/i810switch/patches/patch-aa +++ b/sysutils/i810switch/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.1 2006/12/04 04:42:03 christos Exp $ +$NetBSD: patch-aa,v 1.2 2007/12/19 18:43:38 joerg Exp $ --- Makefile.orig 2003-12-31 09:51:40.000000000 -0500 +++ Makefile 2006-12-03 23:40:16.000000000 -0500 @@ -1,7 +1,4 @@ @@ -10,7 +10,7 @@ $NetBSD: patch-aa,v 1.1 2006/12/04 04:42:03 christos Exp $ all: i810switch -@@ -9,16 +6,19 @@ +@@ -9,16 +6,20 @@ $(CC) $(CFLAGS) -o $@ $(OBJECTS) install: i810switch @@ -18,23 +18,24 @@ $NetBSD: patch-aa,v 1.1 2006/12/04 04:42:03 christos Exp $ - install -d $(DESTDIR)/usr/share/man/man1 - install i810switch i810rotate $(DESTDIR)/usr/bin - install i810switch.1.gz i810rotate.1.gz $(DESTDIR)/usr/share/man/man1 -+ install -d $(PREFIX)/bin -+ install -d $(PREFIX)/man/man1 -+ install i810switch $(PREFIX)/sbin -+ ln $(PREFIX)/sbin/i810switch $(PREFIX)/sbin/i810rotate -+ install i810switch.1.gz i810rotate.1.gz $(PREFIX)/man/man1 -+ gunzip $(PREFIX)/man/man1/i810switch.1.gz -+ gunzip $(PREFIX)/man/man1/i810rotate.1.gz ++ install -d ${DESTDIR}$(PREFIX)/bin ++ install -d ${DESTDIR}$(PREFIX)/sbin ++ install -d ${DESTDIR}$(PREFIX)/man/man1 ++ install i810switch ${DESTDIR}$(PREFIX)/sbin ++ ln i810switch ${DESTDIR}$(PREFIX)/sbin/i810rotate ++ install i810switch.1.gz i810rotate.1.gz ${DESTDIR}$(PREFIX)/man/man1 ++ gunzip ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1/i810switch.1.gz ++ gunzip ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1/i810rotate.1.gz uninstall: - rm -f $(DESTDIR)/usr/bin/i810switch - rm -f $(DESTDIR)/usr/bin/i810rotate - rm -f $(DESTDIR)/usr/share/man/man1/i810switch.1.gz - rm -f $(DESTDIR)/usr/share/man/man1/i810rotate.1.gz -+ rm -f $(PREFIX)/usr/bin/i810switch -+ rm -f $(PREFIX)/usr/bin/i810rotate -+ rm -f $(PREFIX)/usr/share/man/man1/i810switch.1.gz -+ rm -f $(PREFIX)/usr/share/man/man1/i810rotate.1.gz ++ rm -f ${DESTDIR}$(PREFIX)/i810switch ++ rm -f ${DESTDIR}$(PREFIX)/i810rotate ++ rm -f ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1/i810switch.1.gz ++ rm -f ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1/i810rotate.1.gz clean: @rm -f $(OBJECTS) i810switch |