summaryrefslogtreecommitdiff
path: root/databases/pgaccess/Makefile
blob: 96e8772e8c4316b0f26d19455b6a4b84af9dab44 (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
# $NetBSD: Makefile,v 1.1.1.1 1999/09/21 19:12:52 jlam Exp $
#

DISTNAME=	pgaccess-0.98
WRKSRC=		${WRKDIR}/pgaccess
CATEGORIES=	databases
MASTER_SITES=	ftp://ftp.flex.ro/pub/pgaccess/

MAINTAINER=	jlam@netbsd.org
HOMEPAGE=	http://www.flex.ro/pgaccess/

DEPENDS+=	postgresql-6.5.2:../../databases/postgresql

NO_BUILD=	yes

.include "../../mk/bsd.prefs.mk"

PGUSER?=	pgsql

PGTKSH=		${PREFIX}/${PGUSER}/bin/pgtksh
PGACCESS_HOME=	${PREFIX}/share/pgaccess
DOCDIR=		${PREFIX}/share/doc/pgaccess
EGDIR=		${PREFIX}/share/examples/pgaccess

pre-patch:
	${MV} ${WRKSRC}/pgaccess ${WRKSRC}/pgaccess.in

do-configure:
	${SED}	-e "s,@PGTKSH@,${PGTKSH},g" \
		-e "s,@PGACCESS_HOME@,${PGACCESS_HOME},g" \
		${WRKSRC}/pgaccess.in > ${WRKSRC}/pgaccess

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/pgaccess ${PREFIX}/bin/pgaccess
	${INSTALL_DATA_DIR} ${PGACCESS_HOME}
	${INSTALL_DATA_DIR} ${DOCDIR}
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/main.tcl ${PGACCESS_HOME}
	${CP} -R ${WRKSRC}/lib ${PGACCESS_HOME}
	${CP} -R ${WRKSRC}/images ${PGACCESS_HOME}
	${CP} -R ${WRKSRC}/doc/html/* ${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/demo/formdemo.sql ${EGDIR}
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PGACCESS_HOME} ${DOCDIR} ${EGDIR}

.include "../../mk/bsd.pkg.mk"