pkgsrc-wip/py-osd/patches/patch-aa
2007-06-06 23:34:20 +00:00

27 lines
757 B
Text

$NetBSD: patch-aa,v 1.2 2007/06/06 23:34:21 rillig Exp $
--- setup.py.orig 2005-08-29 03:25:40.000000000 -0400
+++ setup.py
@@ -1,6 +1,9 @@
#!/usr/bin/env python
from distutils.core import setup, Extension
+import os
+
+LOCALBASE = os.environ.get('LOCALBASE')
setup (name = "pyosd",
version = "0.2.14",
@@ -8,9 +11,11 @@ setup (name = "pyosd",
url = "http://repose.cx/pyosd/",
author = "Damien Elmes",
author_email = "pyosd@repose.cx",
+ include_dirs = ['%s/include' % LOCALBASE],
packages = ['pyosd'],
ext_modules = \
[Extension("_pyosd", ["_pyosd.c"],
- libraries=["xosd"])]
+ libraries=["xosd"],
+ library_dirs=['%s/lib' % LOCALBASE])]
)