summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorobache <obache>2006-11-13 15:00:56 +0000
committerobache <obache>2006-11-13 15:00:56 +0000
commitea5d94a1883f10cdd35eb7dcb3a93ed180df5294 (patch)
tree540a06677f0df104270977e97d135c49b85a07ea /sysutils
parente1750f1e598a2fc08dca12617655a008be780460 (diff)
downloadpkgsrc-ea5d94a1883f10cdd35eb7dcb3a93ed180df5294.tar.gz
Support NetBSD/amd64. This is also suggested in PR 35044.
Diffstat (limited to 'sysutils')
-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}