pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xf86-video-chips xf86-video-chips: remove obsolete...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2a3c35a5070
branches:  trunk
changeset: 376763:e2a3c35a5070
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Mar 08 12:58:33 2018 +0000

description:
xf86-video-chips: remove obsolete workaround for missing file in distfile.

diffstat:

 x11/xf86-video-chips/Makefile     |  10 +-----
 x11/xf86-video-chips/files/iopl.h |  60 ---------------------------------------
 2 files changed, 1 insertions(+), 69 deletions(-)

diffs (88 lines):

diff -r 9c0f51c3aa43 -r e2a3c35a5070 x11/xf86-video-chips/Makefile
--- a/x11/xf86-video-chips/Makefile     Thu Mar 08 12:49:18 2018 +0000
+++ b/x11/xf86-video-chips/Makefile     Thu Mar 08 12:58:33 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2018/03/07 11:57:42 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2018/03/08 12:58:33 wiz Exp $
 
 DISTNAME=      xf86-video-chips-1.2.7
 PKGREVISION=   1
@@ -16,14 +16,6 @@
 
 CONFIGURE_ENV.SunOS+=  DRIVER_MAN_SUFFIX=4
 
-#
-# it appears the 1.2.5 tarball forgot something
-#
-post-extract:
-.if !exists(${WRKSRC}/util/iopl.h)
-       ${CP} ${FILESDIR}/iopl.h ${WRKSRC}/util/
-.endif
-
 .include "../../x11/modular-xorg-server/buildlink3.mk"
 .include "../../x11/xorgproto/buildlink3.mk"
 BUILDLINK_DEPMETHOD.libXext?=  build
diff -r 9c0f51c3aa43 -r e2a3c35a5070 x11/xf86-video-chips/files/iopl.h
--- a/x11/xf86-video-chips/files/iopl.h Thu Mar 08 12:49:18 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-#ifdef __NetBSD__
-#  include <sys/types.h>
-#  include <machine/pio.h>
-#  include <machine/sysarch.h>
-#else
-#  if defined(__linux__)
-/* Can't because <sys/iopl.h> provides conflicting inb, outb, etc
- * #    include <sys/io.h>
- */
-int iopl(int level);
-#  endif
-#  if defined(SVR4) && defined(i386)
-#    include <sys/types.h>
-#    ifdef NCR
-       /* broken NCR <sys/sysi86.h> */
-#      define __STDC
-#      include <sys/sysi86.h>
-#      undef __STDC
-#    else
-#      include <sys/sysi86.h>
-#    endif
-#    ifdef SVR4
-#      if !defined(sun)
-#        include <sys/seg.h>
-#      endif
-#    endif
-#    include <sys/v86.h>
-#    if defined(sun)
-#      include <sys/psw.h>
-#    endif
-#  endif
-#  include "AsmMacros.h"
-#endif /* NetBSD */
-
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#ifdef __NetBSD__
-#  define SET_IOPL() i386_iopl(3)
-#  define RESET_IOPL() i386_iopl(0)
-#else
-#  if defined(SVR4) && defined(i386)
-#    ifndef SI86IOPL
-#      define SET_IOPL() sysi86(SI86V86,V86SC_IOPL,PS_IOPL)
-#      define RESET_IOPL() sysi86(SI86V86,V86SC_IOPL,0)
-#    else
-#      define SET_IOPL() sysi86(SI86IOPL,3)
-#      define RESET_IOPL() sysi86(SI86IOPL,0)
-#    endif
-#  else
-#    ifdef linux
-#      define SET_IOPL() iopl(3)
-#      define RESET_IOPL() iopl(0)
-#    else
-#      define SET_IOPL() (void)0
-#      define RESET_IOPL() (void)0
-#    endif
-#  endif
-#endif



Home | Main Index | Thread Index | Old Index