summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorobache <obache>2006-11-13 04:15:02 +0000
committerobache <obache>2006-11-13 04:15:02 +0000
commit270369a6880f3935c9235dcc3fc8d33c0c944103 (patch)
tree32db731c4c6354dea082aaaec8fa592cb92568b0 /sysutils
parentd1c9e8cd7be5492c135edbe80d63d22e53a7e318 (diff)
downloadpkgsrc-270369a6880f3935c9235dcc3fc8d33c0c944103.tar.gz
Support NetBSD/amd64. This should close PR 35044.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/915resolution/Makefile10
-rw-r--r--sysutils/915resolution/distinfo6
-rw-r--r--sysutils/915resolution/patches/patch-aa20
-rw-r--r--sysutils/915resolution/patches/patch-ab13
4 files changed, 28 insertions, 21 deletions
diff --git a/sysutils/915resolution/Makefile b/sysutils/915resolution/Makefile
index b42674c56a2..653cde34332 100644
--- a/sysutils/915resolution/Makefile
+++ b/sysutils/915resolution/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+# $NetBSD: Makefile,v 1.2 2006/11/13 04:15:02 obache Exp $
#
DISTNAME= 915resolution-0.5.2
@@ -9,10 +9,16 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.geocities.com/stomljen/
COMMENT= BIOS VESA resolution utility for 8XX/9XX Intel chips
-ONLY_FOR_PLATFORM= NetBSD-*-i386
+ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64 Linux-*-i386
USE_TOOLS+= gmake
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+MAKE_ENV+= LDLIBS=-l${MACHINE_ARCH}
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/915resolution
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/915resolution
diff --git a/sysutils/915resolution/distinfo b/sysutils/915resolution/distinfo
index b5c5a0216e5..3ff576a5e4d 100644
--- a/sysutils/915resolution/distinfo
+++ b/sysutils/915resolution/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+$NetBSD: distinfo,v 1.2 2006/11/13 04:15:02 obache Exp $
SHA1 (915resolution-0.5.2.tar.gz) = 9f26eb1b728ca0b2d28c948207b034a49b477089
RMD160 (915resolution-0.5.2.tar.gz) = 722b352a83f41f0e9822ed4e096e8064f239dcc1
Size (915resolution-0.5.2.tar.gz) = 21183 bytes
-SHA1 (patch-aa) = 00223a909139f74713aeb66d20ec5079f5afbfc0
-SHA1 (patch-ab) = 9bd666c93dcaa54ae01e140ed00c3f08874d694b
+SHA1 (patch-aa) = 8556275046ccc2a9ebabe03b422b2b764bacbc9d
+SHA1 (patch-ab) = b65a38c9c7edd95f295619c9cdedc26449b3f177
diff --git a/sysutils/915resolution/patches/patch-aa b/sysutils/915resolution/patches/patch-aa
index 7f04c8d1d3e..1f663978182 100644
--- a/sysutils/915resolution/patches/patch-aa
+++ b/sysutils/915resolution/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+$NetBSD: patch-aa,v 1.2 2006/11/13 04:15:02 obache Exp $
---- 915resolution.c.orig 2006-06-06 22:55:58.000000000 +1200
+--- 915resolution.c.orig 2006-02-02 23:28:34.000000000 +0900
+++ 915resolution.c
-@@ -22,7 +22,18 @@
+@@ -22,7 +22,22 @@
#include <string.h>
#include <sys/mman.h>
#include <fcntl.h>
@@ -14,14 +14,18 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+#ifdef __NetBSD__
+#include <machine/pio.h>
+#include <machine/sysarch.h>
++# if defined(__i386__)
+#define iopl(a) i386_iopl(a)
++# elif defined(__x86_64__)
++#define iopl(a) x86_64_iopl(a)
++# endif
+#define OUTL(a, b) outl(b, a)
+#define OUTB(a, b) outb(b, a)
+#endif
#include <unistd.h>
#include <assert.h>
-@@ -169,7 +180,7 @@ void initialize_system(char * filename)
+@@ -169,7 +184,7 @@ void initialize_system(char * filename)
}
cardinal get_chipset_id(void) {
@@ -30,7 +34,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
return inl(0xcfc);
}
-@@ -476,11 +487,11 @@ void unlock_vbios(vbios_map * map) {
+@@ -476,11 +491,11 @@ void unlock_vbios(vbios_map * map) {
case CT_UNKWN:
break;
case CT_855GM:
@@ -45,7 +49,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
break;
case CT_845G:
case CT_865G:
-@@ -488,13 +499,13 @@ void unlock_vbios(vbios_map * map) {
+@@ -488,13 +503,13 @@ void unlock_vbios(vbios_map * map) {
case CT_915GM:
case CT_945G:
case CT_945GM:
@@ -63,7 +67,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
break;
}
}
-@@ -526,8 +537,8 @@ void relock_vbios(vbios_map * map) {
+@@ -526,8 +541,8 @@ void relock_vbios(vbios_map * map) {
case CT_UNKWN:
break;
case CT_855GM:
@@ -74,7 +78,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
break;
case CT_845G:
case CT_865G:
-@@ -535,9 +546,9 @@ void relock_vbios(vbios_map * map) {
+@@ -535,9 +550,9 @@ void relock_vbios(vbios_map * map) {
case CT_915GM:
case CT_945G:
case CT_945GM:
diff --git a/sysutils/915resolution/patches/patch-ab b/sysutils/915resolution/patches/patch-ab
index 988cda90148..9ed72db7337 100644
--- a/sysutils/915resolution/patches/patch-ab
+++ b/sysutils/915resolution/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+$NetBSD: patch-ab,v 1.2 2006/11/13 04:15:02 obache Exp $
---- Makefile.orig 2006-02-03 03:01:38.000000000 +1300
+--- Makefile.orig 2006-02-02 23:01:38.000000000 +0900
+++ Makefile
-@@ -1,9 +1,13 @@
+@@ -1,9 +1,10 @@
PRG=915resolution
+PREFIX?=/usr
@@ -10,17 +10,14 @@ $NetBSD: patch-ab,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
OBJS=${SRCS:.c=.o}
-CFLAGS:=-s -Wall -ggdb
-+#CFLAGS:=-s -Wall -ggdb
-+LDLIBS=-li386
-+
+all: ${PRG}
${PRG}: ${OBJS}
-@@ -11,5 +15,5 @@ clean:
+@@ -11,5 +12,5 @@ clean:
rm -f ${OBJS} ${PRG} *~
install: ${PRG}
- cp ${PRG} /usr/sbin
-+ install -m 555 ${PRG} ${PREFIX}/sbin
++ ${BSD_INSTALL_PROGRAM} ${PRG} ${PREFIX}/sbin