freebsd-ports/devel/libhid/files/patch-configure
Edwin Groothuis 94824c3175 [patch] Have devel/libhid also install its python site-package
When devel/swig13 is installed, building of devel/libhid
	fails, due to my overlooking of the swig detection bits in
	the ports configure script.  However, swig is used to build
	the python site-package of the port, so I've bumped the
	portrevision and turned these bits on by default (the
	additional patch-Makefile.in hunk is to suppress a warning).

PR:		ports/116076
Submitted by:	Nikos Ntarmos <ntarmos@ceid.upatras.gr>
2007-09-12 04:07:37 +00:00

14 lines
590 B
Text

--- configure.orig 2007-04-26 03:25:25.000000000 +0300
+++ configure 2007-09-04 11:10:38.000000000 +0300
@@ -22784,8 +22784,9 @@
fi
PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
- import os; \
- print apply(os.path.join, get_config_vars('LIBPL', 'LDLIBRARY'))"`
+ import os; import re; from string import join; \
+ print join(get_config_vars('LDFLAGS')) + ' ' + \
+ re.sub('\.a$', '.so', apply(os.path.join, get_config_vars('LIBPL', 'LDLIBRARY')))"`
fi
{ echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }