Makefile 957 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.9 2015/04/21 18:40:20 sthen Exp $
  2. COMMENT = Python implementation of the LZO library
  3. MODPY_EGG_VERSION = 1.08
  4. DISTNAME = python-lzo-${MODPY_EGG_VERSION}
  5. PKGNAME = py-lzo-${MODPY_EGG_VERSION}
  6. REVISION = 4
  7. CATEGORIES = archivers
  8. HOMEPAGE = http://www.oberhumer.com/opensource/lzo/
  9. MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
  10. # GPLv2
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += ${MODPY_WANTLIB}
  13. WANTLIB += lzo pthread
  14. MASTER_SITES = http://www.oberhumer.com/opensource/lzo/download/LZO-v1/
  15. MODULES = lang/python
  16. LIB_DEPENDS = archivers/lzo
  17. MAKE_ENV += CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
  18. LDFLAGS="-L${LOCALBASE}/lib"
  19. EXAMPLEDIR = ${PREFIX}/share/examples/py-lzo
  20. pre-configure:
  21. ${SUBST_CMD} ${WRKSRC}/Makefile ${WRKSRC}/setup.py
  22. pre-install:
  23. ${INSTALL_DATA_DIR} ${EXAMPLEDIR}
  24. ${INSTALL_DATA} ${WRKSRC}/tests/*.py ${EXAMPLEDIR}
  25. do-test:
  26. @cd ${WRKSRC} && ${MAKE_PROGRAM} test
  27. .include <bsd.port.mk>