1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Fix build on 4.

Spotted by:	kris
This commit is contained in:
Hye-Shik Chang 2003-03-03 03:05:41 +00:00
parent 2ceaee08db
commit 097ebce8e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76776

View File

@ -21,11 +21,18 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} 's/^\(.*compile.*\)\?\(.*\)\?\(.*\)$$/\1\2\3/' \
${WRKSRC}/setup.py
.if ${OSVERSION} < 500028
@${REINPLACE_CMD} 's/#include <stdint.h>//g' \
${WRKSRC}/src/pymadfile.c
.endif
do-configure:
@cd ${WRKSRC} && ${PYTHON_CMD} config_unix.py --prefix ${PREFIX}
.include <bsd.port.mk>
.include <bsd.port.post.mk>