summaryrefslogtreecommitdiff
path: root/databases/cstore/Makefile
blob: d32084af000ba4b9ffff16917c92993b918995e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# $NetBSD: Makefile,v 1.9 2012/10/03 21:54:12 wiz Exp $

DISTNAME=	cstore0.2
PKGNAME=	cstore-0.2
PKGREVISION=	5
CATEGORIES=	databases
MASTER_SITES=	http://db.lcs.mit.edu/projects/cstore/ \
		http://db.csail.mit.edu/data/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} data4.tar.gz D6.data.ros.gz

MAINTAINER=	agc@NetBSD.org
HOMEPAGE=	http://db.lcs.mit.edu/projects/cstore/
COMMENT=	Read-optimised column store relational DBMS

BDB_ACCEPTED=		db4
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake perl pax
WRKSRC=			${WRKDIR}/cstore

REPLACE_PERL=		Build/BSsrcs

SUBST_CLASSES+=		prefix
SUBST_STAGE.prefix=	post-patch
SUBST_FILES.prefix=	Build/makefile.init
SUBST_SED.prefix=	-e 's|@PREFIX@|'${PREFIX}'|g'

DATAFILES=	D1.data.mini
DATAFILES+=	D1.data.retsupp50sort
DATAFILES+=	D1.shipdate.mini
DATAFILES+=	D1.suppkey.mini
DATAFILES+=	D10.data.ros
DATAFILES+=	D10.data.wos
DATAFILES+=	D2.data
DATAFILES+=	D2.data.mini
DATAFILES+=	D3.custkey.mini
DATAFILES+=	D3.data.mini
DATAFILES+=	D4.data
DATAFILES+=	D4.data.mini
DATAFILES+=	D5.data.mini
DATAFILES+=	D6.data.ros
DATAFILES+=	D6.data.wos
DATAFILES+=	D7.data.ros
DATAFILES+=	D7.data.wos
DATAFILES+=	D8.data.ros
DATAFILES+=	D8.data.wos
DATAFILES+=	D9.data.ros
DATAFILES+=	D9.data.wos
DATAFILES+=	d1.lsuppkey.full
DATAFILES+=	deltaPos.test
DATAFILES+=	deltaPosTestBig2
DATAFILES+=	lineitem.sorted.full
DATAFILES+=	lshipdate.sorted.mini
DATAFILES+=	lshipdate.sorted.tiny
DATAFILES+=	supp.data

AUTO_MKDIRS=		yes

post-extract:
	cd ${WRKDIR} && mv ${DATAFILES} ${WRKSRC}/data

do-build:
	cd ${WRKSRC}/src && ${SETENV} ${PKGSRC_MAKE_ENV} ${MAKE} debug2
	cd ${WRKSRC}/src &&  ./cstoreqptest 0 createData.cnf global.cnf

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/cstoreqptest \
		${DESTDIR}${PREFIX}/bin/cstoreqp
	cd ${WRKSRC}/data && pax -rwpe . ${DESTDIR}${PREFIX}/cstore/data
	cd ${WRKSRC}/doc && pax -rwpe . ${DESTDIR}${PREFIX}/share/doc/cstore

.include "../../archivers/lzo/buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"