aboutsummaryrefslogtreecommitdiffstats
path: root/databases/rdfdb/Makefile
blob: dd7d716c4bdf88c21729eee7478c476309218d75 (plain) (blame)
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
# Created by: Philip Jenvey <pjenvey@turntables.org>
# $FreeBSD$

PORTNAME=   rdfdb
PORTVERSION=    0.46
PORTREVISION=   3
CATEGORIES= databases
MASTER_SITES=   http://www.guha.com/
DISTNAME=   rdfdb_src

MAINTAINER= ports@FreeBSD.org
COMMENT=    Lightweight RDF database

USE_BDB=    40+
INVALID_BDB_VER=2

USERS=  rdfdb
GROUPS= rdfdb

WRKSRC= ${WRKDIR}/rdfdb
USE_GMAKE=  yes
MAKEFILE=   makefile
ALL_TARGET=
CFLAGS+=    ${PTHREAD_CFLAGS} -Wno-return-type

RDFDB_PORT?=    7001

PLIST_FILES=    bin/rdfdb bin/rdfdb etc/rc.d/rdfdb-server.sh

post-patch:
    @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
        -e 's,%%PTHREAD_LIBS%%,${PTHREAD_LIBS:S/"//g},g' \
        -e 's,%%BDB_INCLUDE_DIR%%,${BDB_INCLUDE_DIR},g'\
        -e 's,%%BDB_LIB_NAME%%,${BDB_LIB_NAME},g' \
        ${WRKSRC}/makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/rdfdb ${PREFIX}/bin
    @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%RDFDB_DIR%%|${RDFDB_DIR}|g; \
        s|%%RDFDB_PORT%%|${RDFDB_PORT}|g" \
        < ${FILESDIR}/rdfdb-server.sh.tmpl \
        > ${PREFIX}/etc/rc.d/rdfdb-server.sh
    @${CHMOD} 554 ${PREFIX}/etc/rc.d/rdfdb-server.sh
    @${CHOWN} root:rdfdb ${PREFIX}/etc/rc.d/rdfdb-server.sh

.include <bsd.port.mk>