# Created by: Daichi GOTO <daichi@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_1_0/devel/py-gyp-devel/Makefile 352986 2014-05-05 09:45:36Z bapt $

PORTNAME=	gyp
PORTVERSION=	r832
PORTREVISION=	4
CATEGORIES=	devel python
MASTER_SITES=	http://people.freebsd.org/~daichi/distfiles/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	daichi@FreeBSD.org
COMMENT=	Generate Your Projects

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes
PYDISTUTILS_AUTOPLIST=	yes

.include <bsd.port.pre.mk>

pre-configure:
	${REINPLACE_CMD} -e 's/linux/${OPSYS:tl}/;s|gcc|${CC}|;s|g++|${CXX}|' \
	${WRKSRC}/pylib/gyp/generator/make.py

.include <bsd.port.post.mk>
