]> gitweb @ CieloNegro.org - pkgsrc-xorg-server.git/commitdiff
At least it compiles now. Hope it works too...
authorPHO <pho@cielonegro.org>
Fri, 6 Mar 2009 10:55:40 +0000 (19:55 +0900)
committerPHO <pho@cielonegro.org>
Fri, 6 Mar 2009 10:55:40 +0000 (19:55 +0900)
25 files changed:
DEINSTALL [new file with mode: 0644]
DESCR
INSTALL [new file with mode: 0644]
Makefile
PLIST
README [deleted file]
buildlink3.mk [deleted file]
distinfo
files/modeline2c.awk [deleted file]
files/patch-mesa [deleted file]
files/prim_x86_gcc.h [deleted file]
mesaconfig.mk [deleted file]
options.mk
patches/patch-aa [new file with mode: 0644]
patches/patch-ab [new file with mode: 0644]
patches/patch-ac [new file with mode: 0644]
patches/patch-ad
patches/patch-ae [deleted file]
patches/patch-af [deleted file]
patches/patch-ag [deleted file]
patches/patch-ah [deleted file]
patches/patch-aj
patches/patch-ak [deleted file]
patches/patch-am [deleted file]
patches/patch-an [deleted file]

diff --git a/DEINSTALL b/DEINSTALL
new file mode 100644 (file)
index 0000000..88685e4
--- /dev/null
+++ b/DEINSTALL
@@ -0,0 +1,8 @@
+# -*- sh -*-
+# $NetBSD$
+#
+case ${STAGE} in
+    DEINSTALL)
+        rm -f "/Applications/Utilities/X11.app"
+        ;;
+esac
diff --git a/DESCR b/DESCR
index 232af8063fd6f21ee02d5b55e210fb5ea9fb52e3..414c88ce2744df1767d2ffbdd12d6b142da32e20 100644 (file)
--- a/DESCR
+++ b/DESCR
@@ -1,2 +1,2 @@
 The X.org X11 Server from the modularized source tree of
-X.org X11.
+X.org X11. This package is only for MacOS X.
diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..9878ca1
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,10 @@
+# -*- sh -*-
+# $NetBSD$
+#
+case ${STAGE} in
+    POST-INSTALL)
+        if [ ! -e "/Applications/Utilities/X11.app" ];
+            ln -s "@DARWIN_X11_APP_DIR@/X11.app" "/Applications/Utilities"
+        fi
+        ;;
+esac
index 4eb755d60733a0751e823c8eb5da24ed59b30ffe..e9d4d15f03b217ad14fc76b4c455ad3b0e8e0cd5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,41 +1,25 @@
 # $NetBSD$
 
-DISTNAME=      xorg-server-1.4.2
+DISTNAME=      xorg-server-1.4.2-apple35
 PKGNAME=       modular-${DISTNAME}
-PKGREVISION=   4
 CATEGORIES=    x11
 
-MASTER_SITES=  ${MASTER_SITE_XORG:=xserver/}
+MASTER_SITES=  http://static.macosforge.org/xquartz/downloads/src/
 EXTRACT_SUFX=  .tar.bz2
 
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "Darwin"
-DISTFILES+=            xserver-1.4.2-pkgsrc.patch
-.else
-PATCHFILES+=   xserver-1.4.2-pkgsrc.patch
-PATCH_DIST_STRIP=      -p1
-.endif
-SITES.xserver-1.4.2-pkgsrc.patch=\
-                       ftp://ftp.NetBSD.org/pub/NetBSD/misc/bjs/patchfiles/
-
-DISTFILES+=            xorg-server-1.4.2-apple35.tar.bz2
-SITES.xorg-server-1.4.2-apple35.tar.bz2=\
-       http://static.macosforge.org/xquartz/downloads/src/
-
-SPECIAL_PERMS+=                bin/Xorg ${SETUID_ROOT_PERMS}
+ONLY_FOR_PLATFORM= Darwin-*-*
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
-MAINTAINER=            bjs@NetBSD.org
-COMMENT=               Xorg X11 Server from modular X.org X11
+MAINTAINER=            pho@cielonegro.org
+COMMENT=               Xorg X11 Server from modular X.org X11 for MacOS X
 
 DEPENDS+=              xkbcomp-[0-9]*:../../x11/xkbcomp
 
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
 PKGCONFIG_OVERRIDE+=   xorg-server.pc.in
-USE_TOOLS+=            gmake pkg-config
+USE_TOOLS+=            gmake pkg-config perl
 
 BUILD_DEFS+=           VARBASE
 BUILD_DEFS_EFFECTS+=   XKB_OUTPUT_DIR
@@ -43,48 +27,16 @@ BUILD_DEFS_EFFECTS+=        XKB_OUTPUT_DIR
 OWN_DIRS+=             ${XKB_OUTPUT_DIR}
 XKB_OUTPUT_DIR?=       ${VARBASE}/db/xkb
 
+DARWIN_X11_APP_DIR?= ${PREFIX}/libexec/modular-xorg-server/
+
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE:Q}
 CONFIGURE_ARGS+=       --with-xkb-output=${XKB_OUTPUT_DIR:Q}
-
-.if ${OPSYS} == "Darwin"
-EXTRACT_ONLY=  xorg-server-1.4.2-apple35.tar.bz2
-WRKSRC=                        ${WRKDIR}/xorg-server-1.4.2-apple35
-.else
-EXTRACT_ONLY=  xorg-server-1.4.2.tar.bz2
-WRKSRC=                        ${WRKDIR}/xorg-server-1.4.2
-.endif
-
-CONFIGURE_ARGS+=       --with-release-version=${PKGNAME}
-CONFIGURE_ARGS+=       --with-vendor-name="The NetBSD Foundation"
-CONFIGURE_ARGS+=       --with-vendor-name-short="pkgsrc"
-.if ${OPSYS} == "NetBSD"
-CONFIGURE_ARGS+=       --with-builder-addr="tech-x11@NetBSD.org"
-CONFIGURE_ARGS+=       --with-os-vendor="The NetBSD Foundation"
-.endif
-CONFIGURE_ARGS+=       --with-os-name=${MACHINE_PLATFORM}
-CONFIGURE_ARGS+=       --with-vendor-web="http://www.pkgsrc.org/"
-
-.if ${OPSYS} != "Darwin"
-CONFIGURE_ARGS+=       --enable-xorg
-.endif
-CONFIGURE_ARGS+=       --disable-config-hal
-CONFIGURE_ARGS+=       --disable-dmx
-CONFIGURE_ARGS+=       --disable-xprint
-CONFIGURE_ARGS+=       --disable-xwin
-CONFIGURE_ARGS+=       --disable-xephyr
-CONFIGURE_ARGS+=       --disable-kdrive
-CONFIGURE_ARGS+=       --disable-kdrive-vesa
-CONFIGURE_ARGS+=       --disable-xfake
-CONFIGURE_ARGS+=       --disable-xsdl
-CONFIGURE_ARGS+=       --disable-xfbdev
-CONFIGURE_ARGS+=       --disable-kbd_mode      # deprecated
-CONFIGURE_ARGS+=       --enable-builtin-fonts
-CONFIGURE_ARGS+=       --enable-dri
-
-CONFIGURE_ARGS+=       --with-int10=x86emu
+CONFIGURE_ARGS+=       --with-apple-applications-dir=${DARWIN_X11_APP_DIR:Q}
 
 CONFIGURE_ENV+=                APP_MAN_SUFFIX=1 FILE_MAN_SUFFIX=5
 
+FILES_SUBST+=          DARWIN_X11_APP_DIR=${DARWIN_X11_APP_DIR}
+
 DEPENDS+=              xkeyboard-config-[0-9]*:../../x11/xkeyboard-config
 
 BUILDLINK_API_DEPENDS.compositeproto+= compositeproto>=0.4
@@ -103,13 +55,9 @@ BUILDLINK_API_DEPENDS.xf86dgaproto+=        xf86dgaproto>=2.0.3
 .endif
 BUILDLINK_API_DEPENDS.inputproto+=     inputproto>=1.4.2
 
-post-extract: dri-post-extract
-       ${CP} ${FILESDIR}/modeline2c.awk ${WRKSRC}/hw/xfree86/common
-#      ${CP} ${FILESDIR}/Xplugin.h ${WRKSRC}/miext/rootless/
-       ${CP} ${FILESDIR}/Xplugin.h ${WRKSRC}/hw/xquartz/xpr/
-#      ${RM} -f ${WRKDIR}/Mesa-7.0.2/src/mesa/Makefile.orig
-#      ${RM} -f ${WRKDIR}/Mesa-7.0.2/docs/README.MINGW32.orig
-#      ${CP} ${FILESDIR}/prim_x86_gcc.h ${WRKSRC}/hw/xfree86/x86emu/x86emu/
+# Workaround for missing Xplugin.h
+pre-configure:
+       ${CP} ${FILESDIR}/Xplugin.h ${BUILDLINK_DIR}/include
 
 .include "options.mk"
 
@@ -133,7 +81,6 @@ post-extract: dri-post-extract
 .include "../../x11/libXt/buildlink3.mk"
 .include "../../x11/libXxf86misc/buildlink3.mk"
 .include "../../x11/libXxf86vm/buildlink3.mk"
-.include "../../x11/libdrm/buildlink3.mk"
 .include "../../x11/libxkbfile/buildlink3.mk"
 .include "../../x11/libxkbui/buildlink3.mk"
 .include "../../x11/pixman/buildlink3.mk"
@@ -148,16 +95,12 @@ post-extract: dri-post-extract
 .include "../../x11/xextproto/buildlink3.mk"
 .include "../../x11/xf86bigfontproto/buildlink3.mk"
 .include "../../x11/xf86dgaproto/buildlink3.mk"
-.include "../../x11/xf86driproto/buildlink3.mk"
 .include "../../x11/xf86miscproto/buildlink3.mk"
 .include "../../x11/xf86vidmodeproto/buildlink3.mk"
 .include "../../x11/xineramaproto/buildlink3.mk"
 .include "../../x11/xproto/buildlink3.mk"
 .include "../../x11/xtrans/buildlink3.mk"
-
-.if ${OPSYS} == "Darwin"
 .include "../../wip/libAppleWM/buildlink3.mk"
 .include "../../wip/applewmproto/buildlink3.mk"
-.endif
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/PLIST b/PLIST
index 5e6d532dc2b96fb6f7ed71f29918a86b99801248..8a50e8057cdacb63c63f33e281aa826145b4d61b 100644 (file)
--- a/PLIST
+++ b/PLIST
 @comment $NetBSD$
-bin/X
-bin/Xnest
-bin/Xorg
-bin/Xvfb
-bin/cvt
-bin/gtf
-bin/inb
-bin/inl
-bin/inw
-bin/ioport
-bin/outb
-bin/outl
-bin/outw
-bin/pcitweak
-bin/xorgconfig
-include/xorg/BT.h
-include/xorg/IBM.h
-include/xorg/TI.h
-include/xorg/XIstubs.h
-include/xorg/afb.h
-include/xorg/assyntax.h
-include/xorg/atKeynames.h
-include/xorg/bstore.h
-include/xorg/bstorestr.h
-include/xorg/bt829.h
-include/xorg/cfb.h
-include/xorg/cfb16.h
-include/xorg/cfb32.h
-include/xorg/cfb8_16.h
-include/xorg/cfb8_32.h
-include/xorg/cfbmap.h
-include/xorg/cfbmskbits.h
-include/xorg/cfbunmap.h
-include/xorg/closestr.h
-include/xorg/closure.h
-include/xorg/colormap.h
-include/xorg/colormapst.h
-include/xorg/compiler.h
-include/xorg/cursor.h
-include/xorg/cursorstr.h
-include/xorg/damage.h
-include/xorg/damagestr.h
-include/xorg/dbestruct.h
-include/xorg/dgaproc.h
-include/xorg/dix.h
-include/xorg/dixevents.h
-include/xorg/dixfont.h
-include/xorg/dixfontstr.h
-include/xorg/dixgrabs.h
-include/xorg/dixstruct.h
-include/xorg/dri.h
-include/xorg/dristruct.h
-include/xorg/edid.h
-include/xorg/exa.h
-include/xorg/exevents.h
-include/xorg/extension.h
-include/xorg/extinit.h
-include/xorg/extnsionst.h
-include/xorg/fb.h
-include/xorg/fbdevhw.h
-include/xorg/fboverlay.h
-include/xorg/fbpseudocolor.h
-include/xorg/fbrop.h
-include/xorg/fi1236.h
-include/xorg/fourcc.h
-include/xorg/gc.h
-include/xorg/gcstruct.h
-include/xorg/globals.h
-include/xorg/glyphstr.h
-include/xorg/hotplug.h
-include/xorg/i2c_def.h
-include/xorg/input.h
-include/xorg/inputstr.h
-include/xorg/mfb.h
-include/xorg/mfbmap.h
-include/xorg/mfbunmap.h
-include/xorg/mi.h
-include/xorg/mibank.h
-include/xorg/mibstore.h
-include/xorg/micmap.h
-include/xorg/micoord.h
-include/xorg/mifillarc.h
-include/xorg/mifpoly.h
-include/xorg/migc.h
-include/xorg/miline.h
-include/xorg/mipict.h
-include/xorg/mipointer.h
-include/xorg/mipointrst.h
-include/xorg/misc.h
-include/xorg/miscstruct.h
-include/xorg/mispans.h
-include/xorg/mistruct.h
-include/xorg/miwideline.h
-include/xorg/mizerarc.h
-include/xorg/msp3430.h
-include/xorg/opaque.h
-include/xorg/os.h
-include/xorg/picture.h
-include/xorg/picturestr.h
-include/xorg/pixmap.h
-include/xorg/pixmapstr.h
-include/xorg/property.h
-include/xorg/propertyst.h
-include/xorg/randrstr.h
-include/xorg/region.h
-include/xorg/regionstr.h
-include/xorg/renderedge.h
-include/xorg/resource.h
-include/xorg/rgb.h
-include/xorg/sarea.h
-include/xorg/screenint.h
-include/xorg/scrnintstr.h
-include/xorg/selection.h
-include/xorg/servermd.h
-include/xorg/shadow.h
-include/xorg/shadowfb.h
-include/xorg/site.h
-include/xorg/swaprep.h
-include/xorg/swapreq.h
-include/xorg/tda8425.h
-include/xorg/tda9850.h
-include/xorg/tda9885.h
-include/xorg/uda1380.h
-include/xorg/validate.h
-include/xorg/vbe.h
-include/xorg/vbeModes.h
-include/xorg/vgaHW.h
-include/xorg/wfbrename.h
-include/xorg/window.h
-include/xorg/windowstr.h
-include/xorg/xaa.h
-include/xorg/xaaWrapper.h
-include/xorg/xaalocal.h
-include/xorg/xaarop.h
-include/xorg/xf1bpp.h
-include/xorg/xf4bpp.h
-include/xorg/xf86.h
-include/xorg/xf86Crtc.h
-include/xorg/xf86Cursor.h
-include/xorg/xf86DDC.h
-include/xorg/xf86Modes.h
-include/xorg/xf86Module.h
-include/xorg/xf86OSmouse.h
-include/xorg/xf86Opt.h
-include/xorg/xf86Optrec.h
-include/xorg/xf86Parser.h
-include/xorg/xf86Pci.h
-include/xorg/xf86PciInfo.h
-include/xorg/xf86Priv.h
-include/xorg/xf86Privstr.h
-include/xorg/xf86RAC.h
-include/xorg/xf86RamDac.h
-include/xorg/xf86RandR12.h
-include/xorg/xf86Rename.h
-include/xorg/xf86Resources.h
-include/xorg/xf86Version.h
-include/xorg/xf86Xinput.h
-include/xorg/xf86_OSlib.h
-include/xorg/xf86_OSproc.h
-include/xorg/xf86_ansic.h
-include/xorg/xf86_libc.h
-include/xorg/xf86cmap.h
-include/xorg/xf86fbman.h
-include/xorg/xf86i2c.h
-include/xorg/xf86int10.h
-include/xorg/xf86sbusBus.h
-include/xorg/xf86str.h
-include/xorg/xf86xv.h
-include/xorg/xf86xvmc.h
-include/xorg/xf86xvpriv.h
-include/xorg/xisb.h
-include/xorg/xkbsrv.h
-include/xorg/xorg-server.h
-include/xorg/xorgVersion.h
-include/xorg/xvdix.h
-include/xorg/xvmcext.h
-lib/X11/Cards
-lib/X11/Options
-lib/libxf86config.la
+bin/Xquartz
+lib/X11/xserver/Xquartz.plist
 lib/pkgconfig/xorg-server.pc
-${PLIST.dri}lib/xorg/modules/extensions/libGLcore.la
-lib/xorg/modules/extensions/libdbe.la
-lib/xorg/modules/extensions/libdri.la
-lib/xorg/modules/extensions/libextmod.la
-${PLIST.dri}lib/xorg/modules/extensions/libglx.la
-lib/xorg/modules/extensions/librecord.la
-lib/xorg/modules/extensions/libxtrap.la
-lib/xorg/modules/fonts/libfreetype.la
-lib/xorg/modules/libafb.la
-lib/xorg/modules/libcfb.la
-lib/xorg/modules/libcfb32.la
-lib/xorg/modules/libexa.la
-lib/xorg/modules/libfb.la
-lib/xorg/modules/libint10.la
-lib/xorg/modules/libmfb.la
-lib/xorg/modules/libpcidata.la
-lib/xorg/modules/libshadow.la
-lib/xorg/modules/libshadowfb.la
-lib/xorg/modules/libvbe.la
-lib/xorg/modules/libvgahw.la
-lib/xorg/modules/libwfb.la
-lib/xorg/modules/libxaa.la
-lib/xorg/modules/libxf1bpp.la
-lib/xorg/modules/libxf4bpp.la
-lib/xorg/modules/libxf8_16bpp.la
-lib/xorg/modules/libxf8_32bpp.la
-lib/xorg/modules/linux/libfbdevhw.la
-lib/xorg/modules/multimedia/bt829_drv.la
-lib/xorg/modules/multimedia/fi1236_drv.la
-lib/xorg/modules/multimedia/msp3430_drv.la
-lib/xorg/modules/multimedia/tda8425_drv.la
-lib/xorg/modules/multimedia/tda9850_drv.la
-lib/xorg/modules/multimedia/tda9885_drv.la
-lib/xorg/modules/multimedia/uda1380_drv.la
 lib/xserver/SecurityPolicy
-man/man1/Xnest.1
-man/man1/Xorg.1
+libexec/modular-xorg-server/X11.app/Contents/Info.plist
+libexec/modular-xorg-server/X11.app/Contents/MacOS/X11
+libexec/modular-xorg-server/X11.app/Contents/MacOS/X11.bin
+libexec/modular-xorg-server/X11.app/Contents/PkgInfo
+libexec/modular-xorg-server/X11.app/Contents/Resources/Dutch.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Dutch.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Dutch.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/English.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/English.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/English.lproj/main.nib/designable.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/English.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/French.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/French.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/French.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/German.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/German.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/German.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/Italian.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Italian.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Italian.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/Japanese.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Japanese.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Japanese.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/Spanish.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Spanish.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/Spanish.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/X11.icns
+libexec/modular-xorg-server/X11.app/Contents/Resources/da.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/da.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/da.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/fi.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/fi.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/fi.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/ko.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/ko.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/ko.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/no.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/no.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/no.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/pl.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/pl.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/pl.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/pt.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/pt.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/pt.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/pt_PT.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/pt_PT.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/pt_PT.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/ru.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/ru.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/ru.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/sv.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/sv.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/sv.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/zh_CN.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/zh_CN.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/zh_CN.lproj/main.nib/keyedobjects.nib
+libexec/modular-xorg-server/X11.app/Contents/Resources/zh_TW.lproj/InfoPlist.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/zh_TW.lproj/Localizable.strings
+libexec/modular-xorg-server/X11.app/Contents/Resources/zh_TW.lproj/main.nib/keyedobjects.nib
+man/man1/Xquartz.1
 man/man1/Xserver.1
-man/man1/Xvfb.1
-man/man1/cvt.1
-man/man1/gtf.1
-man/man1/pcitweak.1
-man/man1/xorgconfig.1
-man/man4/exa.4
-man/man4/fbdevhw.4
 man/man5/SecurityPolicy.5
-man/man5/xorg.conf.5
 share/aclocal/xorg-server.m4
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/zh_TW.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/zh_TW.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/zh_CN.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/zh_CN.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/sv.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/sv.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/ru.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/ru.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/pt_PT.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/pt_PT.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/pt.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/pt.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/pl.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/pl.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/no.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/no.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/ko.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/ko.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/fi.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/fi.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/da.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/da.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Spanish.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Spanish.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Japanese.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Japanese.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Italian.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Italian.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/German.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/German.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/French.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/French.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/English.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/English.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Dutch.lproj/main.nib
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources/Dutch.lproj
+@dirrm libexec/modular-xorg-server/X11.app/Contents/Resources
+@dirrm libexec/modular-xorg-server/X11.app/Contents/MacOS
+@dirrm libexec/modular-xorg-server/X11.app/Contents
+@dirrm libexec/modular-xorg-server/X11.app
+@dirrm libexec/modular-xorg-server
 @dirrm lib/xserver
-@dirrm lib/xorg/modules/multimedia
-@dirrm lib/xorg/modules/linux
-@dirrm lib/xorg/modules/fonts
-@dirrm lib/xorg/modules/extensions
-@dirrm lib/xorg/modules
-@dirrm lib/xorg
-@dirrm include/xorg
+@dirrm lib/X11/xserver
diff --git a/README b/README
deleted file mode 100644 (file)
index 7474d20..0000000
--- a/README
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD$
-
-ATTENTION NetBSD-current users (those with userland atomic ops):
-
-In order to achieve maximum benefits from this package, please
-apply the following patch for x11/libdrm, making sure to build
-graphics/MesaLib with the updated xf86drm.h.
-
-<ftp://ftp.NetBSD.org/pub/NetBSD/misc/bjs/patches/libdrm-atomic.diff>
-
-This will teach the [userland] dri drivers, mesa, and the X server's glxdri
-how to use atomic_cas_uint() for DRM_CAS.
-
-Also, if you're curious, you may try defining the MESA_EXECMEM_WIRED
-environment variable in your .xinitrc [or equivlent].  This will cause
-the heap used for glx/DRI in the X server and mesa to be wired down.
diff --git a/buildlink3.mk b/buildlink3.mk
deleted file mode 100644 (file)
index 59302bd..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-# $NetBSD$
-
-BUILDLINK_DEPTH:=                      ${BUILDLINK_DEPTH}+
-MODULAR_XORG_SERVER_BUILDLINK3_MK:=    ${MODULAR_XORG_SERVER_BUILDLINK3_MK}+
-
-.if ${BUILDLINK_DEPTH} == "+"
-BUILDLINK_DEPENDS+=    modular-xorg-server
-.endif
-
-BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nmodular-xorg-server}
-BUILDLINK_PACKAGES+=   modular-xorg-server
-BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}modular-xorg-server
-
-.if ${MODULAR_XORG_SERVER_BUILDLINK3_MK} == "+"
-BUILDLINK_API_DEPENDS.modular-xorg-server+=    modular-xorg-server>=1.4
-BUILDLINK_PKGSRCDIR.modular-xorg-server?=      ../../wip/modular-xorg-server
-.endif # MODULAR_XORG_SERVER_BUILDLINK3_MK
-
-.include "../../x11/compositeproto/buildlink3.mk"
-.include "../../x11/fontsproto/buildlink3.mk"
-.include "../../x11/inputproto/buildlink3.mk"
-.include "../../x11/pixman/buildlink3.mk"
-.include "../../x11/randrproto/buildlink3.mk"
-.include "../../x11/renderproto/buildlink3.mk"
-.include "../../x11/videoproto/buildlink3.mk"
-.include "../../x11/xextproto/buildlink3.mk"
-.include "../../x11/xf86driproto/buildlink3.mk"
-.include "../../x11/xproto/buildlink3.mk"
-
-BUILDLINK_DEPTH:=                      ${BUILDLINK_DEPTH:S/+$//}
index 559c281775376980c96c3e262a082f3076938988..ee76146fa3575165dbe921163aea52d8bd8e5b46 100644 (file)
--- a/distinfo
+++ b/distinfo
@@ -1,20 +1,10 @@
 $NetBSD$
 
-SHA1 (MesaLib-7.0.4.tar.bz2) = 7e2ecbe89d245510d2681d04e959aee6adc205c5
-RMD160 (MesaLib-7.0.4.tar.bz2) = 0394bb9e00ea13f2399bc5895d4264221bbc03ac
-Size (MesaLib-7.0.4.tar.bz2) = 3414357 bytes
 SHA1 (xorg-server-1.4.2-apple35.tar.bz2) = b6434d8ea3e6fbe81fea80cbbf7d82d48a1933b0
 RMD160 (xorg-server-1.4.2-apple35.tar.bz2) = ec53ba78de692505ac295819bd907f60f17915b5
 Size (xorg-server-1.4.2-apple35.tar.bz2) = 6217422 bytes
-SHA1 (xserver-1.4.2-pkgsrc.patch) = 617278bfc0f530c3931261d046142faae2aab6aa
-RMD160 (xserver-1.4.2-pkgsrc.patch) = cf2ed873e830d8fa25e50f5b92fe3c438188a193
-Size (xserver-1.4.2-pkgsrc.patch) = 85205 bytes
-SHA1 (patch-ad) = 12062351308cf5950048bdc24ebbecc1208250b6
-SHA1 (patch-ae) = 1563548c823c43a38e3534d7c709705589edefff
-SHA1 (patch-af) = 2a5e199b7c75a6c26c33a5aca00e1744d7023b92
-SHA1 (patch-ag) = 93975b0c5da0534624951ff53d506efe59fb93e9
-SHA1 (patch-ah) = 699c289e2245a8ded47887fdcf5a66446669afb4
-SHA1 (patch-aj) = 05ded41f5d114b2d21bce2629999ea5758ae7e87
-SHA1 (patch-ak) = 20b62798fd6f4ea173f827a5e122cf95f4673983
-SHA1 (patch-am) = 0e7d01cbdd692b75256318a0309551f6e5d2f5ec
-SHA1 (patch-an) = 57f9b5413d0c48ac12343f9d75879a46bd334931
+SHA1 (patch-aa) = 8950b3f615d717c9ce1e426dd37613a5fceb80a4
+SHA1 (patch-ab) = e653a55dfc5be642f3f898f790a140c3327e3a9e
+SHA1 (patch-ac) = 535168d192f98b441629072c4e84f2e9f31eff33
+SHA1 (patch-ad) = 422f8fe5b884c73ccf38cf339a9ec8e5cfd40308
+SHA1 (patch-aj) = db864b16d0674954cc68a29b23eab20962cafa7e
diff --git a/files/modeline2c.awk b/files/modeline2c.awk
deleted file mode 100644 (file)
index 7a89330..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-#!/usr/bin/awk -f
-#
-# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
-# All rights reserved.
-#
-# Based on Perl script by Dirk Hohndel.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in
-#    the documentation and/or other materials provided with the
-#    distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
-# COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
-# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-#
-# Usage: modeline2c.awk < modefile > xf86DefModes.c
-#
-
-BEGIN {
-       flagsdict[""] = "0"
-
-       flagsdict["+hsync +vsync"] = "V_PHSYNC | V_PVSYNC"
-       flagsdict["+hsync -vsync"] = "V_PHSYNC | V_NVSYNC"
-       flagsdict["-hsync +vsync"] = "V_NHSYNC | V_PVSYNC"
-       flagsdict["-hsync -vsync"] = "V_NHSYNC | V_NVSYNC"
-       flagsdict["+hsync +vsync interlace"] = "V_PHSYNC | V_PVSYNC | V_INTERLACE"
-       flagsdict["+hsync -vsync interlace"] = "V_PHSYNC | V_NVSYNC | V_INTERLACE"
-       flagsdict["-hsync +vsync interlace"] = "V_NHSYNC | V_PVSYNC | V_INTERLACE"
-       flagsdict["-hsync -vsync interlace"] = "V_NHSYNC | V_NVSYNC | V_INTERLACE"
-
-       print "/* $" "XFree86$ */"
-       print
-       print "/* THIS FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT -- LOOK at"
-       print " * modeline2c.awk */"
-       print ""
-       print "/*"
-       print " * Author: Joerg Sonnenberger <joerg@NetBSD.org>"
-       print " * Based on Perl script from Dirk Hohndel <hohndel@XFree86.Org>"
-       print " */"
-       print ""
-       print "#ifdef HAVE_XORG_CONFIG_H"
-       print "#include <xorg-config.h>"
-       print "#endif"
-       print ""
-       print "#ifdef __UNIXOS2__"
-       print "#define I_NEED_OS2_H"
-       print "#endif"
-       print "#include \"xf86.h\""
-       print "#include \"xf86Config.h\""
-       print "#include \"xf86Priv.h\""
-       print "#include \"xf86_OSlib.h\""
-       print ""
-       print "#include \"globals.h\""
-       print ""
-       print "#define MODEPREFIX(name) NULL, NULL, name, MODE_OK, M_T_DEFAULT"
-       print "#define MODESUFFIX       0,0, 0,0,0,0,0,0,0, 0,0,0,0,0,0,FALSE,FALSE,0,NULL,0,0.0,0.0"
-       print ""
-       print "DisplayModeRec xf86DefaultModes [] = {"
-
-       modeline = "\t{MODEPREFIX(\"%dx%d\"),%d, %d,%d,%d,%d,0, %d,%d,%d,%d,0, %s, MODESUFFIX},\n"
-       modeline_data = "^[a-zA-Z]+[ \t]+[^ \t]+[ \t0-9.]+"
-}
-
-/^[mM][oO][dD][eE][lL][iI][nN][eE]/ {
-       flags = $0
-       gsub(modeline_data, "", flags)
-       flags = tolower(flags)
-       printf(modeline, $4, $8, $3 * 1000, $4, $5, $6, $7,
-              $8, $9, $10, $11, flagsdict[flags])
-       # Half-width double scanned modes
-       printf(modeline, $4/2, $8/2, $3 * 500, $4/2, $5/2, $6/2, $7/2,
-              $8/2, $9/2, $10/2, $11/2, flagsdict[flags] " | V_DBLSCAN")
-}
-
-/^#/ {
-       print "/*" substr($0, 2) " */"
-}
-
-END {
-       printf("\t{MODEPREFIX(NULL),0,0,0,0,0,0,0,0,0,0,0,0,MODESUFFIX}\n};\n")
-}
diff --git a/files/patch-mesa b/files/patch-mesa
deleted file mode 100644 (file)
index 2e1a15b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD$
-
---- ../Mesa-7.0.4/src/mesa/main/imports.h.orig 2008-06-24 14:27:44.000000000 -0400
-+++ ../Mesa-7.0.4/src/mesa/main/imports.h
-@@ -292,7 +292,7 @@ static INLINE int GET_FLOAT_BITS( float 
-  *** LDEXPF: multiply value by an integral power of two
-  *** FREXPF: extract mantissa and exponent from value
-  ***/
--#if defined(__gnu_linux__)
-+#if defined(USE_NATIVE_LIBM_FUNCS)
- /* C99 functions */
- #define CEILF(x)   ceilf(x)
- #define FLOORF(x)  floorf(x)
-@@ -515,7 +515,9 @@ static INLINE int iceil(float f)
- /* Hardware default: All exceptions masked, extended double precision,
-  * round to nearest (IEEE compliant):
-  */
-+#ifndef DEFAULT_X86_FPU
- #define DEFAULT_X86_FPU               0x037f
-+#endif
- /* All exceptions masked, single precision, round to nearest:
-  */
- #define FAST_X86_FPU          0x003f
diff --git a/files/prim_x86_gcc.h b/files/prim_x86_gcc.h
deleted file mode 100644 (file)
index c085ddc..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-*
-* Inline helpers for x86emu
-*
-* Copyright (C) 2008 Bart Trojanowski, Symbio Technologies, LLC
-*
-*  ========================================================================
-*
-*  Permission to use, copy, modify, distribute, and sell this software and
-*  its documentation for any purpose is hereby granted without fee,
-*  provided that the above copyright notice appear in all copies and that
-*  both that copyright notice and this permission notice appear in
-*  supporting documentation, and that the name of the authors not be used
-*  in advertising or publicity pertaining to distribution of the software
-*  without specific, written prior permission.  The authors makes no
-*  representations about the suitability of this software for any purpose.
-*  It is provided "as is" without express or implied warranty.
-*
-*  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-*  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-*  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-*  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
-*  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-*  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-*  PERFORMANCE OF THIS SOFTWARE.
-*
-*  ========================================================================
-*
-* Language:     GNU C
-* Environment:  GCC on i386 or x86-64
-* Developer:    Bart Trojanowski
-*
-* Description:  This file defines a few x86 macros that can be used by the
-*               emulator to execute native instructions.
-*
-*               For PIC vs non-PIC code refer to:
-*               http://sam.zoy.org/blog/2007-04-13-shlib-with-non-pic-code-have-inline-assembly-and-pic-mix-well
-*
-****************************************************************************/
-#ifndef __X86EMU_PRIM_X86_GCC_H
-#define __X86EMU_PRIM_X86_GCC_H
-
-#include "x86emu/types.h"
-
-#if !defined(__GNUC__) || !(defined (__i386__) || defined(__i386) || defined(__AMD64__) || defined(__x86_64__) || defined(__amd64__))
-#error This file is intended to be used by gcc on i386 or x86-64 system
-#endif
-
-#if defined(__PIC__) && defined(__i386__)
-
-#define X86EMU_HAS_HW_CPUID 1
-static inline void hw_cpuid (u32 *a, u32 *b, u32 *c, u32 *d)
-{
-    __asm__ __volatile__ ("pushl %%ebx      \n\t"
-                          "cpuid            \n\t"
-                          "movl %%ebx, %1   \n\t"
-                          "popl %%ebx       \n\t"
-                          : "=a" (*a), "=r" (*b),
-                            "=c" (*c), "=d" (*d)
-                          : "a" (*a), "c" (*c)
-                          : "cc");
-}
-
-#else // ! (__PIC__ && __i386__)
-
-#define X86EMU_HAS_HW_CPUID 1
-static inline void hw_cpuid (u32 *a, u32 *b, u32 *c, u32 *d)
-{
-    __asm__ __volatile__ ("cpuid"
-                          : "=a" (*a), "=b" (*b),
-                            "=c" (*c), "=d" (*d)
-                          : "a" (*a), "c" (*c)
-                          : "cc");
-}
-
-#endif // __PIC__ && __i386__
-
-
-#endif // __X86EMU_PRIM_X86_GCC_H
diff --git a/mesaconfig.mk b/mesaconfig.mk
deleted file mode 100644 (file)
index 115601b..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# $NetBSD$
-###
-###
-### XXX This is the default heap size.  Would there be an occasion to
-### change it?  It seems large, so we should investigate further.
-###
-.include "../../mk/bsd.fast.prefs.mk"
-
-.if !empty(OPSYS:M*BSD) || ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly"
-CFLAGS+=       -DUSE_NATIVE_LIBM_FUNCS
-.endif
-
-.if !empty(MACHINE_ARCH:Mi386)
-###
-### This is taken from <sys/arch/i386/include/npx.h>.  If we don't override
-### it, the FPU control word will be restored to 0x037f.
-###
-### Also, see patch-aq about the libm functions required (float functions
-### such as floorf).  Proper configuration of this should be a goal of
-### the Mesa developers; alas, it obviously is not.
-###
-### XXX We need a reliable check for these functions.
-###
-#/* NetBSD uses IEEE double precision. */
-CFLAGS.NetBSD+=                -DDEFAULT_X86_FPU=0x127f
-###
-###
-#/* FreeBSD leaves some exceptions unmasked as well. */
-###
-CFLAGS.FreeBSD+=       -DDEFAULT_x86_FPU=0x1272
-.endif
index cf82159e76856ab6dd9b25323f49d0fa51d80102..f38268d1566ebb60d1b260afeb1f489db361a88b 100644 (file)
@@ -1,53 +1,10 @@
 # $NetBSD: options.mk,v 1.2 2007/12/08 09:23:16 wiz Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.modular-xorg-server
-PKG_SUPPORTED_OPTIONS= dri inet6
+PKG_SUPPORTED_OPTIONS= inet6
 
 .include "../../mk/bsd.options.mk"
 
-PLIST_VARS+=           dri
-
-.if !empty(PKG_OPTIONS:Mdri)
-PLIST.dri=             yes
-.include "mesaconfig.mk"
-DISTFILES+=            MesaLib-7.0.4.tar.bz2
-EXTRACT_ONLY+= MesaLib-7.0.4.tar.bz2
-_PKGSRC_PATCHES+=      ${FILESDIR}/patch-mesa # XXX is there a better way?
-SITES.MesaLib-7.0.4.tar.bz2=\
-                       ${MASTER_SITE_SOURCEFORGE:=mesa3d/}
-MESA_SRC=              ${WRKDIR}/Mesa-7.0.4
-CONFIGURE_ARGS+=       --enable-glx
-CONFIGURE_ARGS+=       --enable-aiglx
-CONFIGURE_ARGS+=       --with-mesa-source=${MESA_SRC}
-.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" || \
-    ${MACHINE_ARCH} == "alpha"
-GLX_DEFINES+=          -D__GLX_ALIGN64
-.endif
-CONFIGURE_ENV+=                GLX_DEFINES=${GLX_DEFINES:M*:Q}
-# glcore.h and dri_interface.h shipped with *proto are older than
-# those in Mesa-7.0.2. Either patch them or trick the build into using
-# the newer ones.
-#BUILDLINK_API_DEPENDS.glproto+= glproto>=1.4.8nb1
-#BUILDLINK_API_DEPENDS.xf86driproto+= xf86driproto>=2.0.3nb1
-###
-### XXX As of driproto-2.0.4 and glproto-1.4.9, this should not be needed.
-###
-dri-post-extract:
-       ${LN} -s ${MESA_SRC:Q}/include/GL ${WRKSRC:Q}/GL/glx/GL
-
-.else
-###
-### XXX Do we want this?
-###
-CONFIGURE_ARGS+=       --disable-glx
-
-dri-post-extract:
-       @${DO_NADA}
-
-# for GLX we already have the Mesa source
-.include "../../graphics/MesaLib/buildlink3.mk"
-.endif
-
 .if !empty(PKG_OPTIONS:Minet6)
 CONFIGURE_ARGS+=       --enable-ipv6
 .else
diff --git a/patches/patch-aa b/patches/patch-aa
new file mode 100644 (file)
index 0000000..cad0f8a
--- /dev/null
@@ -0,0 +1,103 @@
+$NetBSD$
+
+--- dix/atom.c.orig    2009-03-06 19:05:09.000000000 +0900
++++ dix/atom.c
+@@ -74,98 +74,6 @@ static NodePtr *nodeTable;
+ void FreeAtom(NodePtr patom);
+-_X_EXPORT Atom 
+-MakeAtom(char *string, unsigned len, Bool makeit)
+-{
+-    NodePtr * np;
+-    unsigned i;
+-    int comp;
+-    unsigned int fp = 0;
+-
+-    np = &atomRoot;
+-    for (i = 0; i < (len+1)/2; i++)
+-    {
+-      fp = fp * 27 + string[i];
+-      fp = fp * 27 + string[len - 1 - i];
+-    }
+-    while (*np != (NodePtr) NULL)
+-    {
+-      if (fp < (*np)->fingerPrint)
+-          np = &((*np)->left);
+-      else if (fp > (*np)->fingerPrint)
+-          np = &((*np)->right);
+-      else
+-      {                              /* now start testing the strings */
+-          comp = strncmp(string, (*np)->string, (int)len);
+-          if ((comp < 0) || ((comp == 0) && (len < strlen((*np)->string))))
+-              np = &((*np)->left);
+-          else if (comp > 0)
+-              np = &((*np)->right);
+-          else
+-              return(*np)->a;
+-          }
+-    }
+-    if (makeit)
+-    {
+-      NodePtr nd;
+-
+-      nd = (NodePtr) xalloc(sizeof(NodeRec));
+-      if (!nd)
+-          return BAD_RESOURCE;
+-      if (lastAtom < XA_LAST_PREDEFINED)
+-      {
+-          nd->string = string;
+-      }
+-      else
+-      {
+-          nd->string = (char *) xalloc(len + 1);
+-          if (!nd->string) {
+-              xfree(nd);
+-              return BAD_RESOURCE;
+-          }
+-          strncpy(nd->string, string, (int)len);
+-          nd->string[len] = 0;
+-      }
+-      if ((lastAtom + 1) >= tableLength) {
+-          NodePtr *table;
+-
+-          table = (NodePtr *) xrealloc(nodeTable,
+-                                       tableLength * (2 * sizeof(NodePtr)));
+-          if (!table) {
+-              if (nd->string != string)
+-                  xfree(nd->string);
+-              xfree(nd);
+-              return BAD_RESOURCE;
+-          }
+-          tableLength <<= 1;
+-          nodeTable = table;
+-      }
+-      *np = nd;
+-      nd->left = nd->right = (NodePtr) NULL;
+-      nd->fingerPrint = fp;
+-      nd->a = (++lastAtom);
+-      *(nodeTable+lastAtom) = nd;
+-      return nd->a;
+-    }
+-    else
+-      return None;
+-}
+-
+-_X_EXPORT Bool
+-ValidAtom(Atom atom)
+-{
+-    return (atom != None) && (atom <= lastAtom);
+-}
+-
+-_X_EXPORT char *
+-NameForAtom(Atom atom)
+-{
+-    NodePtr node;
+-    if (atom > lastAtom) return 0;
+-    if ((node = nodeTable[atom]) == (NodePtr)NULL) return 0;
+-    return node->string;
+-}
+-
+ void
+ AtomError(void)
+ {
diff --git a/patches/patch-ab b/patches/patch-ab
new file mode 100644 (file)
index 0000000..96d1287
--- /dev/null
@@ -0,0 +1,41 @@
+$NetBSD$
+
+--- dix/dixutils.c.orig        2009-03-06 19:02:37.000000000 +0900
++++ dix/dixutils.c
+@@ -165,16 +165,6 @@ ISOLatin1ToLower (unsigned char source)
+ }
+-_X_EXPORT void
+-CopyISOLatin1Lowered(unsigned char *dest, unsigned char *source, int length)
+-{
+-    int i;
+-
+-    for (i = 0; i < length; i++, source++, dest++)
+-      *dest = ISOLatin1ToLower (*source);
+-    *dest = '\0';
+-}
+-
+ int
+ CompareISOLatin1Lowered(unsigned char *s1, int s1len, 
+                       unsigned char *s2, int s2len)
+@@ -673,19 +663,6 @@ ClientSleep (ClientPtr client, ClientSle
+     return TRUE;
+ }
+-Bool
+-ClientSignal (ClientPtr client)
+-{
+-    SleepQueuePtr   q;
+-
+-    for (q = sleepQueue; q; q = q->next)
+-      if (q->client == client)
+-      {
+-          return QueueWorkProc (q->function, q->client, q->closure);
+-      }
+-    return FALSE;
+-}
+-
+ _X_EXPORT void
+ ClientWakeup (ClientPtr client)
+ {
diff --git a/patches/patch-ac b/patches/patch-ac
new file mode 100644 (file)
index 0000000..b180f72
--- /dev/null
@@ -0,0 +1,19 @@
+$NetBSD$
+
+--- dix/globals.c.orig 2009-03-06 19:03:37.000000000 +0900
++++ dix/globals.c
+@@ -79,14 +79,12 @@ PtrCtrl defaultPointerControl = {
+       0};
+ _X_EXPORT ClientPtr *clients;
+-_X_EXPORT ClientPtr  serverClient;
+ _X_EXPORT int  currentMaxClients;   /* current size of clients array */
+ _X_EXPORT long maxBigRequestSize = MAX_BIG_REQUEST_SIZE;
+ _X_EXPORT WindowPtr *WindowTable;
+ _X_EXPORT unsigned long globalSerialNumber = 0;
+-_X_EXPORT unsigned long serverGeneration = 0;
+ /* these next four are initialized in main.c */
+ _X_EXPORT CARD32 ScreenSaverTime;
index 84adf841549aa079b763eff273db20e3999128e5..961c2c4f48ca267ba2597fc0305c0bfe305781bf 100644 (file)
@@ -1,13 +1,58 @@
 $NetBSD$
 
---- hw/xfree86/common/compiler.h.orig  2008-06-10 13:57:19.000000000 -0400
-+++ hw/xfree86/common/compiler.h
-@@ -564,7 +564,7 @@ inl(unsigned short port)
-    return ret;
+--- os/log.c.orig      2009-03-06 19:04:17.000000000 +0900
++++ os/log.c
+@@ -526,36 +526,6 @@ VAuditF(const char *f, va_list args)
  }
  
--#   elif (defined(linux) || defined(Lynx) || defined(sun) || defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__sparc__)
-+#   elif (defined(linux) || defined(Lynx) || defined(sun) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)) && defined(__sparc__)
+ _X_EXPORT void
+-FatalError(const char *f, ...)
+-{
+-    va_list args;
+-    static Bool beenhere = FALSE;
+-
+-    if (beenhere)
+-      ErrorF("\nFatalError re-entered, aborting\n");
+-    else
+-      ErrorF("\nFatal server error:\n");
+-
+-    va_start(args, f);
+-    VErrorF(f, args);
+-    va_end(args);
+-    ErrorF("\n");
+-#ifdef DDXOSFATALERROR
+-    if (!beenhere)
+-      OsVendorFatalError();
+-#endif
+-#ifdef ABORTONFATALERROR
+-    abort();
+-#endif
+-    if (!beenhere) {
+-      beenhere = TRUE;
+-      AbortServer();
+-    } else
+-      abort();
+-    /*NOTREACHED*/
+-}
+-
+-_X_EXPORT void
+ VErrorF(const char *f, va_list args)
+ {
+ #ifdef DDXOSVERRORF
+@@ -568,16 +538,6 @@ VErrorF(const char *f, va_list args)
+ #endif
+ }
+-_X_EXPORT void
+-ErrorF(const char * f, ...)
+-{
+-    va_list args;
+-
+-    va_start(args, f);
+-    VErrorF(f, args);
+-    va_end(args);
+-}
+-
+ /* A perror() workalike. */
  
- #    if !defined(Lynx)
- #     ifndef ASI_PL
+ #ifndef NEED_STRERROR
diff --git a/patches/patch-ae b/patches/patch-ae
deleted file mode 100644 (file)
index 57f0614..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD$
-
---- hw/xfree86/common/xf86Bus.c.orig   2008-06-10 13:57:19.000000000 -0400
-+++ hw/xfree86/common/xf86Bus.c
-@@ -113,7 +113,7 @@ void
- xf86BusProbe(void)
- {
-     xf86PciProbe();
--#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__)
-+#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__) && !defined(__NetBSD__)
-     xf86SbusProbe();
- #endif
- }
-@@ -2382,7 +2382,7 @@ xf86PostProbe(void)
-     if (fbSlotClaimed) {
-         if (pciSlotClaimed || isaSlotClaimed 
--#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__)
-+#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__) && !defined(__NetBSD__)
-           || sbusSlotClaimed
- #endif
-           ) { 
diff --git a/patches/patch-af b/patches/patch-af
deleted file mode 100644 (file)
index fa7aa76..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- hw/xfree86/common/xf86Configure.c.orig     2008-06-10 13:57:19.000000000 -0400
-+++ hw/xfree86/common/xf86Configure.c
-@@ -210,7 +210,7 @@ xf86AddBusDeviceToConfigure(const char *
-       NewDevice.GDev.identifier = "ISA Adapter";
-       NewDevice.GDev.busID = "ISA";
-       break;
--#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__)
-+#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__) && !defined(__NetBSD__)
-     case BUS_SBUS: {
-       char *promPath = NULL;
-       NewDevice.sVideo = (sbusDevicePtr) busData;
diff --git a/patches/patch-ag b/patches/patch-ag
deleted file mode 100644 (file)
index 2969a70..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- hw/xfree86/loader/xf86sym.c.orig   2008-06-10 13:57:19.000000000 -0400
-+++ hw/xfree86/loader/xf86sym.c
-@@ -499,7 +499,7 @@ _X_HIDDEN void *xfree86LookupTab[] = {
-     SYMFUNC(xf86AddModuleInfo)
-     SYMFUNC(xf86DeleteModuleInfo)
--#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__)
-+#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__) && !defined(__NetBSD__)
-     /* xf86sbusBus.c */
-     SYMFUNC(xf86MatchSbusInstances)
-     SYMFUNC(xf86GetSbusInfoForEntity)
diff --git a/patches/patch-ah b/patches/patch-ah
deleted file mode 100644 (file)
index ef72bf8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- hw/xfree86/os-support/bus/xf86Sbus.h.orig  2008-06-06 06:03:10.000000000 -0400
-+++ hw/xfree86/os-support/bus/xf86Sbus.h
-@@ -38,6 +38,8 @@
- #include <sys/openpromio.h>
- #elif defined(__OpenBSD__) && defined(__sparc64__)
- /* XXX */
-+#elif defined(__NetBSD__)
-+/* XXX */
- #elif defined(CSRG_BASED)
- #if defined(__FreeBSD__)
- #include <sys/types.h>
index 4ef45b72a1c6f26177d0364399993109e3cff270..7e669a86f5bd46132d0c3c5f2460ce3847a877aa 100644 (file)
@@ -12,9 +12,9 @@ On Friday 04 July 2008, Joerg Sonnenberger wrote:
 I still see the jumps in 1.4.2.  Perhaps my workaround (attached) could be 
 included until a proper fix is developed?
 
---- dix/getevents.c.orig       2008-06-29 00:23:13.000000000 -0400
+--- dix/getevents.c.orig       2009-02-22 17:41:51.000000000 +0900
 +++ dix/getevents.c
-@@ -613,9 +613,15 @@ GetPointerEvents(xEvent *events, DeviceI
+@@ -621,9 +621,15 @@ GetPointerEvents(xEvent *events, DeviceI
          clipAxis(pDev, 1, &y);
      }
      else {
diff --git a/patches/patch-ak b/patches/patch-ak
deleted file mode 100644 (file)
index e6cbd92..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD$
-
---- hw/xfree86/xorgconf.cpp.orig       2008-06-10 13:57:20.000000000 -0400
-+++ hw/xfree86/xorgconf.cpp
-@@ -608,3 +608,11 @@ Section "ServerLayout"
-     InputDevice "Keyboard1" "CoreKeyboard"
- EndSection
-+ 
-+XCOMM  Two experimental extensions are available -- Composite and XEVIE.  Uncomment
-+XCOMM  the section below to enable Composite.  Many extensions can also be disabled
-+XCOMM  in this manner.
-+
-+XCOMM Section "Extensions"
-+XCOMM         Option "Composite" "Enable"
-+XCOMM EndSection
diff --git a/patches/patch-am b/patches/patch-am
deleted file mode 100644 (file)
index 0b7e097..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-ag,v 1.3 2007/08/14 21:34:37 joerg Exp $
-
---- hw/xfree86/common/Makefile.am.orig 2008-08-02 04:52:04.000000000 -0400
-+++ hw/xfree86/common/Makefile.am
-@@ -23,8 +23,8 @@ BUSSOURCES = xf86isaBus.c xf86pciBus.c x
- MODEDEFSOURCES = $(srcdir)/vesamodes $(srcdir)/extramodes
--xf86DefModeSet.c: $(srcdir)/modeline2c.pl $(MODEDEFSOURCES)
--      cat $(MODEDEFSOURCES) | $(PERL) $(srcdir)/modeline2c.pl > $@
-+xf86DefModeSet.c: $(srcdir)/modeline2c.awk $(MODEDEFSOURCES)
-+      cat $(MODEDEFSOURCES) | $(AWK) -f $(srcdir)/modeline2c.awk > $@
- BUILT_SOURCES = xf86DefModeSet.c
diff --git a/patches/patch-an b/patches/patch-an
deleted file mode 100644 (file)
index e856d33..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2007/08/14 21:34:37 joerg Exp $
-
---- hw/xfree86/common/Makefile.in.orig 2008-06-11 10:31:17.000000000 -0400
-+++ hw/xfree86/common/Makefile.in
-@@ -810,8 +810,8 @@ uninstall-am: uninstall-sdkHEADERS
-       tags uninstall uninstall-am uninstall-sdkHEADERS
--xf86DefModeSet.c: $(srcdir)/modeline2c.pl $(MODEDEFSOURCES)
--      cat $(MODEDEFSOURCES) | $(PERL) $(srcdir)/modeline2c.pl > $@
-+xf86DefModeSet.c: $(srcdir)/modeline2c.awk $(MODEDEFSOURCES)
-+      cat $(MODEDEFSOURCES) | $(AWK) -f $(srcdir)/modeline2c.awk > $@
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT: