fix security/py-m2crypto:

- use PYTHON_INCLUDEDIR instead of PYTHON_VERSION

Pointed out by:	Hye-Shik Chang <perky@i18n.org>
This commit is contained in:
Daichi GOTO 2003-08-06 10:39:04 +00:00
parent c56bed95de
commit ca9ea44ad8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86372
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ USE_REINPLACE= yes
PINSTALL_PLIST= ${WRKDIR}/pinstall-plist
post-patch:
${REINPLACE_CMD} "s/PYTHON_VERSION/${PYTHON_VERSION}/" ${WRKSRC}/Makefile
${REINPLACE_CMD} "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|" ${WRKSRC}/Makefile
post-build:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/../M2Crypto

View file

@ -6,7 +6,7 @@
LIBS = -L/usr/local/lib -lssl -lcrypto
-PYVER = 2.2
-PYINCLUDE = -DHAVE_CONFIG_H -I/usr/local/include/python$(PYVER) \
+PYINCLUDE = -DHAVE_CONFIG_H -I/usr/local/include/PYTHON_VERSION \
+PYINCLUDE = -DHAVE_CONFIG_H -I%%PYTHON_INCLUDEDIR%% \
-I/usr/local/lib/python$(PYVER)/config
PYLIB = /usr/local/lib/python$(PYVER)/config