$OpenBSD: patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro,v 1.2 2011/06/16 04:24:17 rpointel Exp $
--- plugins-src/TWPythonPlugin/TWPythonPlugin.pro.orig	Wed Mar  2 19:25:55 2011
+++ plugins-src/TWPythonPlugin/TWPythonPlugin.pro	Sat Apr 16 19:42:37 2011
@@ -45,9 +45,9 @@
 
 unix:!macx { # on Unix-ish platforms we should rely on pkgconfig
 	# Python prior to 3.x doesn't register properly with pkg-config
-	INCLUDEPATH	+= /usr/include/python2.6/
-	LIBS		+= -lpython2.6
+	INCLUDEPATH	+= ${LOCALBASE}/include/python${MODPY_VERSION}/
+	LIBS		+= -lpython${MODPY_VERSION}
 
 	# uncomment these lines (and comment those above) to use Python 3
 #	CONFIG		+= link_pkgconfig
 #	QMAKE_CXXFLAGS	+= -DPy_UNICODE_WIDE
@@ -55,7 +55,7 @@
 
 	QMAKE_CXXFLAGS	+= -fno-strict-aliasing
 
-	target.path	= /usr/local/lib/texworks
+	target.path	= ${WRKINST}/${PREFIX}/lib/texworks
 	INSTALLS	+= target
 }
 
