summaryrefslogtreecommitdiff
path: root/databases/pgaccess/Makefile
blob: 912a3ddb076db149537935da5a84598b23468171 (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
# $NetBSD: Makefile,v 1.16 2005/06/16 06:57:44 jlam Exp $
#

DISTNAME=	pgaccess-0.98.8
PKGREVISION=	1
CATEGORIES=	databases
MASTER_SITES=	http://www.pgaccess.org/download/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.pgaccess.org/
COMMENT=	Graphical database management tool for PostgreSQL

DEPENDS+=	tk-postgresql73>=7.3.6:../../databases/tk-postgresql73

NO_BUILD=	# defined

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

PGTKSH=		${PREFIX}/bin/pgtksh
PGACCESS_HOME=	${PREFIX}/share/pgaccess
HTMLDIR=	${PREFIX}/share/doc/html/pgaccess
EGDIR=		${PREFIX}/share/examples/pgaccess

INSTALLATION_DIRS=	bin

do-configure:
	for file in ${WRKSRC}/pgaccess.tcl; do				\
		${SED}	-e "s|@PGTKSH@|${PGTKSH}|g"			\
			-e "s|@PGACCESS_HOME@|${PGACCESS_HOME}|g"	\
			$$file > $$file.new;				\
		${MV} -f $$file.new $$file;				\
	done

do-install:
	${INSTALL_DATA_DIR} ${PGACCESS_HOME}
	${INSTALL_SCRIPT} ${WRKSRC}/pgaccess.tcl ${PGACCESS_HOME}
	${LN} -sf ${PGACCESS_HOME}/pgaccess.tcl ${PREFIX}/bin/pgaccess
	${CP} -R ${WRKSRC}/images ${PGACCESS_HOME}
	${CP} -R ${WRKSRC}/lib ${PGACCESS_HOME}
	${INSTALL_DATA_DIR} ${HTMLDIR}
	${CP} -R ${WRKSRC}/doc/html/* ${HTMLDIR}
	${INSTALL_DATA_DIR} ${EGDIR}
	for file in ${WRKSRC}/demo/*; do				\
		${INSTALL_DATA} $$file ${EGDIR};			\
	done
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PGACCESS_HOME} ${HTMLDIR} ${EGDIR}

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