summaryrefslogtreecommitdiffstats
path: root/databases/rdfdb/Makefile
blob: 91f56826f2de806cb0cbc981ca74127ac22cf5fd (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
# New ports collection makefile for:   rdfdb
# Date created:                 28 December 2001
# Whom:                         Philip Jenvey <pjenvey@turntables.org>
#
# $FreeBSD$
#

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

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A lightweight RDF database

IGNORE=		"Uses unregistered uid that conflicts with oracle7-client"

LIB_DEPENDS=	db3.3:${PORTSDIR}/databases/db3

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

RDFDB_DIR?=	/var/db/rdfdb
RDFDB_PORT?=	7001
PLIST_SUB=	RDFDB_DIR=${RDFDB_DIR}

post-patch:
	@${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
		-e 's,%%PTHREAD_LIBS%%,${PTHREAD_LIBS:S/"//g},g' \
		< ${WRKSRC}/makefile > ${WRKSRC}/makefile.new
	@${MV} ${WRKSRC}/makefile.new ${WRKSRC}/makefile

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/rdfdb ${PREFIX}/bin
.if !exists(${RDFDB_DIR})
	@${MKDIR} ${RDFDB_DIR}
.endif
	@${SETENV} RDFDB_DIR=${RDFDB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} \
		PRE-INSTALL
	@${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>
OpenPOWER on IntegriCloud