openbsd-ports/devel/waf/Makefile
landry a79f9ef04f Import waf 1.4.4.
Waf is a Python-based framework for configuring, compiling and
installing applications. It is a replacement for other tools such as
Autotools, Scons, CMake or Ant.
The port provides a devel/waf MODULE for use by third-party ports.

with tweaks, lots of python-fu and ok wcmaier@, ok jasper@
2008-09-23 19:55:02 +00:00

50 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/09/23 19:55:02 landry Exp $
COMMENT= Python-based build system
DISTNAME= waf-1.4.4
CATEGORIES= devel
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://code.google.com/p/waf/
MASTER_SITES= http://waf.googlecode.com/files/
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/python
NO_REGRESS= Yes
SUBST_VARS= MODPY_BIN MODPY_SITEPKG
# waf needs bz2 subpackage
RUN_DEPENDS = ::lang/python/${MODPY_VERSION},-bz2
BUILD_DEPENDS = ${RUN_DEPENDS}
pre-configure:
${SUBST_CMD} ${WRKSRC}/waf ${WRKSRC}/wscript
do-configure:
cd ${WRKSRC} && PYTHON=${MODPY_BIN} ${MODPY_BIN} ./waf configure
do-build:
cd ${WRKSRC} && ${MODPY_BIN} ./waf
# waf overrides itself during install, so keep our patched version
pre-install:
cp ${WRKSRC}/waf{,.mine}
do-install:
cd ${WRKSRC} && ${MODPY_BIN} ./waf install --yes --prefix=${PREFIX}
# clean root owned files and overwrite with our patched version
post-install:
rm -fr ${WRKSRC}/build
${INSTALL_SCRIPT} ${WRKSRC}/waf.mine ${PREFIX}/bin/waf
.include <bsd.port.mk>