2008-06-12 04:14:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2008/06/12 02:14:37 joerg Exp $
|
2004-04-22 17:17:08 +02:00
|
|
|
#
|
|
|
|
|
2006-10-17 16:32:32 +02:00
|
|
|
DISTNAME= pytables-1.3.3
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-pytables-1.3.3
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= math python
|
2004-04-22 17:17:08 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-04-22 17:17:08 +02:00
|
|
|
HOMEPAGE= http://pytables.sourceforge.net/
|
|
|
|
COMMENT= Database package for large amounts of data
|
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-02-15 17:56:09 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.pytables
|
|
|
|
PKG_SUPPORTED_OPTIONS= lzo ucl
|
|
|
|
PKG_SUGGESTED_OPTIONS=
|
|
|
|
.include "../../mk/bsd.options.mk"
|
2004-04-22 17:17:08 +02:00
|
|
|
|
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
PYSETUPBUILDARGS= --hdf5=${BUILDLINK_PREFIX.hdf5}
|
2006-02-15 17:56:09 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mlzo)
|
|
|
|
PYSETUPBUILDARGS+= --lzo=${BUILDLINK_PREFIX.lzo}
|
|
|
|
.include "../../archivers/lzo/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mucl)
|
|
|
|
PYSETUPBUILDARGS+= --ucl=${BUILDLINK_PREFIX.ucl}
|
2007-04-10 17:58:34 +02:00
|
|
|
.include "../../devel/ucl/buildlink3.mk"
|
2006-02-15 17:56:09 +01:00
|
|
|
.endif
|
|
|
|
PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS}
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
2004-04-22 17:17:08 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cd ${WRKSRC}/utils; \
|
|
|
|
${MV} ptdump ptdump${PYVERSSUFFIX}; \
|
2005-02-09 13:29:10 +01:00
|
|
|
${MV} ptrepack ptrepack${PYVERSSUFFIX}; \
|
|
|
|
${MV} nctoh5 nctoh5${PYVERSSUFFIX}
|
2004-04-22 17:17:08 +02:00
|
|
|
|
2006-10-17 16:32:32 +02:00
|
|
|
do-test:
|
|
|
|
(cd ${WRKSRC}/tables/tests && ${PYTHONBIN} test_all.py)
|
|
|
|
|
2004-04-22 17:17:08 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.include "../../devel/hdf5/buildlink3.mk"
|
2006-02-15 17:56:09 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
2004-04-22 17:17:08 +02:00
|
|
|
.include "../../math/py-numarray/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|