openbsd-ports/archivers/py-lzo/Makefile
espie 2314c85f45 convert to new style depends
zap default spec that are not needed
convert libspecs as well
convert p* to REVISION.

No package changes
2010-11-15 00:22:45 +00:00

44 lines
1005 B
Makefile

# $OpenBSD: Makefile,v 1.4 2010/11/15 00:22:46 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 = 0
CATEGORIES = archivers
HOMEPAGE = http://www.oberhumer.com/opensource/lzo/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://www.oberhumer.com/opensource/lzo/download/LZO-v1/
MODULES = lang/python
LIB_DEPENDS = archivers/lzo
WANTLIB = lzo
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-regress:
@cd ${WRKSRC} && ${MAKE_PROGRAM} test
.include <bsd.port.mk>