DRIconf is a configuration applet for the Direct Rendering
Infrastructure. It allows customizing performance and visual quality settings of OpenGL drivers on a per-driver, per-screen and/or per-application level. The settings are stored in system wide and per-user XML configuration files, which are parsed by the OpenGL drivers on startup. Originally by oga@; tested by oga@ and guenther@. Python jiggery and other cleanups by moi. double ok fgsch@, ribbit landry@
This commit is contained in:
parent
3874e6995b
commit
a3a6c543eb
29
x11/driconf/Makefile
Normal file
29
x11/driconf/Makefile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# $OpenBSD: Makefile,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
|
||||||
|
COMMENT = configuration utility for DRI drivers
|
||||||
|
|
||||||
|
MODPY_EGG_VERSION = 0.9.1
|
||||||
|
DISTNAME = driconf-${MODPY_EGG_VERSION}
|
||||||
|
CATEGORIES = x11
|
||||||
|
|
||||||
|
HOMEPAGE = http://people.freedesktop.org/~fxkuehl/driconf/dri_config_design_rev4.html
|
||||||
|
MASTER_SITES = http://people.freedesktop.org/~fxkuehl/driconf/
|
||||||
|
|
||||||
|
# GPLv2
|
||||||
|
PERMIT_PACKAGE_CDROM = Yes
|
||||||
|
PERMIT_PACKAGE_FTP = Yes
|
||||||
|
PERMIT_DISTFILES_CDROM = Yes
|
||||||
|
PERMIT_DISTFILES_FTP = Yes
|
||||||
|
|
||||||
|
MODULES = lang/python
|
||||||
|
RUN_DEPENDS = ::x11/py-gtk2 \
|
||||||
|
:python-expat-${MODPY_VERSION}*:lang/python/${MODPY_VERSION},-expat
|
||||||
|
|
||||||
|
pre-configure:
|
||||||
|
@mkdir -p ${WRKSRC}/lib/driconf
|
||||||
|
@touch ${WRKSRC}/lib/driconf/__init__.py
|
||||||
|
@cd ${WRKSRC}; mv dri.py driconf.py ./lib/driconf/.
|
||||||
|
@cd ${WRKSRC}; for i in driconf_*.py; do \
|
||||||
|
mv $$i ./lib/driconf/$${i#*_}; done
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
5
x11/driconf/distinfo
Normal file
5
x11/driconf/distinfo
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
MD5 (driconf-0.9.1.tar.gz) = dtYQvNVqpeikid67UIEXig==
|
||||||
|
RMD160 (driconf-0.9.1.tar.gz) = 62ADcuwtQGZitEwEsoqX91Yt0yw=
|
||||||
|
SHA1 (driconf-0.9.1.tar.gz) = Uj3ITa6Pr0Q7vE0y0ejiCfvhD/U=
|
||||||
|
SHA256 (driconf-0.9.1.tar.gz) = SEmkP2MkSY6UPAN3e85XEim1RGmFsc7FlrNlUF529z8=
|
||||||
|
SIZE (driconf-0.9.1.tar.gz) = 112529
|
16
x11/driconf/patches/patch-driconf
Normal file
16
x11/driconf/patches/patch-driconf
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
$OpenBSD: patch-driconf,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
--- driconf.orig Thu Aug 11 14:07:12 2005
|
||||||
|
+++ driconf Mon Jul 7 08:31:49 2008
|
||||||
|
@@ -20,9 +20,9 @@
|
||||||
|
|
||||||
|
# Contact: http://fxk.de.vu/
|
||||||
|
|
||||||
|
-import sys
|
||||||
|
-sys.path.append("/usr/local/lib/driconf")
|
||||||
|
+#import sys
|
||||||
|
+#sys.path.append("/usr/local/lib/driconf")
|
||||||
|
|
||||||
|
-import driconf
|
||||||
|
+from driconf import driconf
|
||||||
|
|
||||||
|
driconf.main()
|
17
x11/driconf/patches/patch-driconf_complexui_py
Normal file
17
x11/driconf/patches/patch-driconf_complexui_py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
$OpenBSD: patch-driconf_complexui_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
--- driconf_complexui.py.orig Mon Jul 7 08:30:04 2008
|
||||||
|
+++ driconf_complexui.py Mon Jul 7 08:29:55 2008
|
||||||
|
@@ -24,10 +24,10 @@ pygtk.require ("2.0")
|
||||||
|
import gtk
|
||||||
|
import gobject
|
||||||
|
|
||||||
|
-import driconf_commonui
|
||||||
|
-commonui = driconf_commonui # short cut
|
||||||
|
+import commonui
|
||||||
|
+#commonui = driconf_commonui # short cut
|
||||||
|
|
||||||
|
-from driconf_commonui import _, lang, findInShared, escapeMarkup, WrappingCheckButton, SectionPage, UnknownSectionPage
|
||||||
|
+from commonui import _, lang, findInShared, escapeMarkup, WrappingCheckButton, SectionPage, UnknownSectionPage
|
||||||
|
|
||||||
|
class DriverPanel (gtk.Frame):
|
||||||
|
""" Panel for driver settings for a specific application. """
|
26
x11/driconf/patches/patch-driconf_py
Normal file
26
x11/driconf/patches/patch-driconf_py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
$OpenBSD: patch-driconf_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
--- driconf.py.orig Mon Jul 7 08:29:20 2008
|
||||||
|
+++ driconf.py Mon Jul 7 08:29:13 2008
|
||||||
|
@@ -30,15 +30,15 @@ if gtk.check_version(2, 4, 0):
|
||||||
|
print "Error: DRIconf requires GTK 2.4 or newer."
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
-import driconf_commonui
|
||||||
|
-import driconf_complexui
|
||||||
|
-import driconf_simpleui
|
||||||
|
+import commonui
|
||||||
|
+import complexui
|
||||||
|
+import simpleui
|
||||||
|
|
||||||
|
-commonui = driconf_commonui # short cuts
|
||||||
|
-complexui = driconf_complexui
|
||||||
|
-simpleui = driconf_simpleui
|
||||||
|
+#commonui = driconf_commonui # short cuts
|
||||||
|
+#complexui = driconf_complexui
|
||||||
|
+#simpleui = driconf_simpleui
|
||||||
|
|
||||||
|
-from driconf_commonui import _
|
||||||
|
+from commonui import _
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
21
x11/driconf/patches/patch-driconf_simpleui_py
Normal file
21
x11/driconf/patches/patch-driconf_simpleui_py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
$OpenBSD: patch-driconf_simpleui_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
--- driconf_simpleui.py.orig Mon Jul 7 08:30:20 2008
|
||||||
|
+++ driconf_simpleui.py Mon Jul 7 08:30:36 2008
|
||||||
|
@@ -25,12 +25,12 @@ pygtk.require ("2.0")
|
||||||
|
import gtk
|
||||||
|
import gobject
|
||||||
|
|
||||||
|
-import driconf_commonui
|
||||||
|
-import driconf_complexui
|
||||||
|
-commonui = driconf_commonui # short cut
|
||||||
|
-complexui = driconf_complexui
|
||||||
|
+import commonui
|
||||||
|
+import complexui
|
||||||
|
+#commonui = driconf_commonui # short cut
|
||||||
|
+#complexui = driconf_complexui
|
||||||
|
|
||||||
|
-from driconf_commonui import _, lang
|
||||||
|
+from commonui import _, lang
|
||||||
|
|
||||||
|
def isUserConfig(config):
|
||||||
|
return config.fileName.startswith(os.environ["HOME"])
|
9
x11/driconf/patches/patch-setup_cfg
Normal file
9
x11/driconf/patches/patch-setup_cfg
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
$OpenBSD: patch-setup_cfg,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
--- setup.cfg.orig Thu Aug 11 20:07:12 2005
|
||||||
|
+++ setup.cfg Sun Jul 6 22:42:19 2008
|
||||||
|
@@ -1,3 +1,3 @@
|
||||||
|
[install]
|
||||||
|
-prefix=/usr/local
|
||||||
|
-install-purelib=/usr/local/lib/driconf
|
||||||
|
+#prefix=/usr/local
|
||||||
|
+#install-purelib=/usr/local/driconf
|
22
x11/driconf/patches/patch-setup_py
Normal file
22
x11/driconf/patches/patch-setup_py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
$OpenBSD: patch-setup_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
--- setup.py.orig Sun Sep 17 20:41:20 2006
|
||||||
|
+++ setup.py Mon Jul 7 08:26:00 2008
|
||||||
|
@@ -12,12 +12,16 @@ setup(name="driconf",
|
||||||
|
author="Felix Kuehling",
|
||||||
|
author_email="fxkuehl@gmx.de",
|
||||||
|
url="http://dri.freedesktop.org/wiki/DriConf",
|
||||||
|
- py_modules=["dri", "driconf", "driconf_commonui", "driconf_complexui",
|
||||||
|
- "driconf_simpleui"],
|
||||||
|
+ packages=["driconf",],
|
||||||
|
+ package_dir={"": "lib"},
|
||||||
|
scripts=["driconf"],
|
||||||
|
data_files=[("share/driconf", ["card.png", "screen.png", "screencard.png",
|
||||||
|
"drilogo.jpg", "driconf-icon.png"])
|
||||||
|
] + translations)
|
||||||
|
+
|
||||||
|
+# Exit here, skipping useless checks below.
|
||||||
|
+import sys
|
||||||
|
+sys.exit(0)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Search for obsolete files.
|
7
x11/driconf/pkg/DESCR
Normal file
7
x11/driconf/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
DRIconf is a configuration applet for the Direct Rendering
|
||||||
|
Infrastructure. It allows customizing performance and visual quality
|
||||||
|
settings of OpenGL drivers on a per-driver, per-screen and/or
|
||||||
|
per-application level.
|
||||||
|
|
||||||
|
The settings are stored in system wide and per-user XML configuration
|
||||||
|
files, which are parsed by the OpenGL drivers on startup.
|
27
x11/driconf/pkg/PLIST
Normal file
27
x11/driconf/pkg/PLIST
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $
|
||||||
|
bin/driconf
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/__init__.py
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/__init__.pyc
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/commonui.py
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/commonui.pyc
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/complexui.py
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/complexui.pyc
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/dri.py
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/dri.pyc
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/driconf.py
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/driconf.pyc
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/simpleui.py
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/driconf/simpleui.pyc
|
||||||
|
share/driconf/
|
||||||
|
share/driconf/card.png
|
||||||
|
share/driconf/driconf-icon.png
|
||||||
|
share/driconf/drilogo.jpg
|
||||||
|
share/driconf/screen.png
|
||||||
|
share/driconf/screencard.png
|
||||||
|
share/locale/de/LC_MESSAGES/driconf.mo
|
||||||
|
share/locale/es/LC_MESSAGES/driconf.mo
|
||||||
|
share/locale/it/LC_MESSAGES/driconf.mo
|
||||||
|
share/locale/nl/LC_MESSAGES/driconf.mo
|
||||||
|
share/locale/ru/LC_MESSAGES/driconf.mo
|
Loading…
Reference in New Issue
Block a user