openbsd-ports/archivers/py-lzo/Makefile
espie c80849c13c regress -> test
PERMIT_* cleanup
2013-03-10 22:28:04 +00:00

41 lines
936 B
Makefile

# $OpenBSD: Makefile,v 1.8 2013/03/10 22:28:05 espie Exp $
COMMENT = Python implementation of the LZO library
MODPY_EGG_VERSION = 1.08
DISTNAME = python-lzo-${MODPY_EGG_VERSION}
PKGNAME = py-lzo-${MODPY_EGG_VERSION}
REVISION = 3
CATEGORIES = archivers
HOMEPAGE = http://www.oberhumer.com/opensource/lzo/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = http://www.oberhumer.com/opensource/lzo/download/LZO-v1/
MODULES = lang/python
LIB_DEPENDS = archivers/lzo
WANTLIB = lzo ${MODPY_WANTLIB}
MAKE_ENV += CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
EXAMPLEDIR = ${PREFIX}/share/examples/py-lzo
pre-configure:
${SUBST_CMD} ${WRKSRC}/Makefile ${WRKSRC}/setup.py
pre-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/tests/*.py ${EXAMPLEDIR}
do-test:
@cd ${WRKSRC} && ${MAKE_PROGRAM} test
.include <bsd.port.mk>