summaryrefslogtreecommitdiff
path: root/sysutils/855resolution
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2006-11-13 15:00:56 +0000
committerobache <obache@pkgsrc.org>2006-11-13 15:00:56 +0000
commit31c53dee4757b2b7d73768386b3ef0fb52365f4e (patch)
tree540a06677f0df104270977e97d135c49b85a07ea /sysutils/855resolution
parent5a8d162462e9f0b7814da56573dd995e83548c04 (diff)
downloadpkgsrc-31c53dee4757b2b7d73768386b3ef0fb52365f4e.tar.gz
Support NetBSD/amd64. This is also suggested in PR 35044.
Diffstat (limited to 'sysutils/855resolution')
-rw-r--r--sysutils/855resolution/Makefile10
-rw-r--r--sysutils/855resolution/distinfo6
-rw-r--r--sysutils/855resolution/patches/patch-aa8
-rw-r--r--sysutils/855resolution/patches/patch-ab6
4 files changed, 20 insertions, 10 deletions
diff --git a/sysutils/855resolution/Makefile b/sysutils/855resolution/Makefile
index 7c4017bb97d..0695e37d035 100644
--- a/sysutils/855resolution/Makefile
+++ b/sysutils/855resolution/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/10/04 21:59:34 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2006/11/13 15:00:56 obache Exp $
#
DISTNAME= 855resolution-0.4
@@ -11,11 +11,17 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://perso.orange.fr/apoirier/
COMMENT= BIOS VESA resolution utility for 855/865/915 Intel chips
-ONLY_FOR_PLATFORM= NetBSD-*-i386
+ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64 Linux-*-i386
WRKSRC= ${WRKDIR}/855resolution
USE_TOOLS+= gmake
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+MAKE_ENV+= EXTRA_LIBS=-l${MACHINE_ARCH}
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/855resolution
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/855resolution
diff --git a/sysutils/855resolution/distinfo b/sysutils/855resolution/distinfo
index cec80ead46a..2af3c4831e4 100644
--- a/sysutils/855resolution/distinfo
+++ b/sysutils/855resolution/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2006/10/02 21:02:43 rillig Exp $
+$NetBSD: distinfo,v 1.4 2006/11/13 15:00:56 obache Exp $
SHA1 (855resolution-0.4.tgz) = aabba504d0592cac676188f1ce73bd25389d8fda
RMD160 (855resolution-0.4.tgz) = d075d239257b778f509c8fd96619bfd810194d3b
Size (855resolution-0.4.tgz) = 6740 bytes
-SHA1 (patch-aa) = 61308f93c5825b4f374e86fc852dcc67fea1e078
-SHA1 (patch-ab) = 03dfcce60e6ed34a890e2cdec0d3ee6c9adab88e
+SHA1 (patch-aa) = b230470c91957efc67b448233140b91a600e7def
+SHA1 (patch-ab) = bb8c918da7af28567f05072399170c7cf4293f58
diff --git a/sysutils/855resolution/patches/patch-aa b/sysutils/855resolution/patches/patch-aa
index 26272209e2c..8f722932b9d 100644
--- a/sysutils/855resolution/patches/patch-aa
+++ b/sysutils/855resolution/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2005/10/12 02:15:30 christos Exp $
+$NetBSD: patch-aa,v 1.3 2006/11/13 15:00:56 obache Exp $
--- 855resolution.c 2005-05-08 15:46:02.000000000 -0400
+++ 855resolution.c 2005-10-11 17:24:05.000000000 -0400
@@ -118,7 +118,7 @@ $NetBSD: patch-aa,v 1.2 2005/10/12 02:15:30 christos Exp $
--- vbios.h 2005-05-08 15:47:45.000000000 -0400
+++ vbios.h 2005-10-11 17:21:51.000000000 -0400
-@@ -16,6 +16,20 @@
+@@ -16,6 +16,24 @@
#define VBIOS_SIZE 0x10000
@@ -131,7 +131,11 @@ $NetBSD: patch-aa,v 1.2 2005/10/12 02:15:30 christos 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
diff --git a/sysutils/855resolution/patches/patch-ab b/sysutils/855resolution/patches/patch-ab
index 5c741d40f33..3de8d49a5ee 100644
--- a/sysutils/855resolution/patches/patch-ab
+++ b/sysutils/855resolution/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.1 2005/10/12 02:15:30 christos Exp $
+$NetBSD: patch-ab,v 1.2 2006/11/13 15:00:56 obache Exp $
--- Makefile.orig 2005-05-08 11:27:59.000000000 -0400
+++ Makefile 2005-10-11 18:12:19.000000000 -0400
@@ -16,7 +16,7 @@ $NetBSD: patch-ab,v 1.1 2005/10/12 02:15:30 christos Exp $
PLUGINS_ADDR:=${shell echo ${PLUGINS_LIST} | sed -e 's/^/\&/g' -e 's/,/,\&/g' }
VERSION:=${shell cat VERSION.txt}
-LDLIBS:=-lm
-+LDLIBS:=-lm -li386
++LDLIBS:=-lm ${EXTRA_LIBS}
CFLAGS:=-Wall -I`pwd` -DVERSION='"${VERSION}"' -DPLUGINS='${PLUGINS_LIST}' -DREF_PLUGINS='${PLUGINS_ADDR}' ${VBIOS_FILE}
LDFLAGS:=-s
@@ -25,7 +25,7 @@ $NetBSD: patch-ab,v 1.1 2005/10/12 02:15:30 christos Exp $
install: ${PRG}
- cp ${PRG} /usr/sbin
-+ install -m 555 ${PRG} ${PREFIX}/sbin
++ ${BSD_INSTALL_PROGRAM} ${PRG} ${PREFIX}/sbin
distrib: clean
tar -C .. -zcvf /tmp/${PRG}-`cat VERSION.txt`.tgz --exclude '.*' ${PRG}