1999-03-20 05:28:38 +00:00
|
|
|
# New ports collection makefile for: gtksql
|
|
|
|
# Date created: 19 November 1998
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1999-03-20 05:28:38 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 22:49:07 +00:00
|
|
|
PORTNAME= gtksql
|
|
|
|
PORTVERSION= 0.3
|
1999-03-20 05:28:38 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://www.multimania.com/bbrox/GtkSQL/
|
|
|
|
|
1999-08-01 02:41:02 +00:00
|
|
|
MAINTAINER= domi@saargate.de
|
1999-03-20 05:28:38 +00:00
|
|
|
|
1999-08-01 02:41:02 +00:00
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
|
|
|
|
|
|
|
.if defined(PACKAGE_BUILDING) && !defined(USE_MYSQL) && !defined(USE_PGSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_MYSQL)
|
|
|
|
LIB_DEPENDS += mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
|
|
|
.endif
|
|
|
|
.if defined(USE_PGSQL)
|
|
|
|
LIB_DEPENDS += pq.2:${PORTSDIR}/databases/postgresql
|
|
|
|
.endif
|
1999-03-20 05:28:38 +00:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
|
1999-09-25 00:54:22 +00:00
|
|
|
pre-patch:
|
1999-08-01 02:41:02 +00:00
|
|
|
.if !defined(USE_MYSQL) && !defined(USE_PGSQL)
|
|
|
|
@ ${ECHO} "You must specify which database to use, possible are:"
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} "make USE_MYSQL=yes (for MySQL support)"
|
|
|
|
@ ${ECHO} "make USE_PGSQL=yes (for PostgreSQL support)"
|
|
|
|
@ ${ECHO} "make USE_MYSQL=yes USE_PGSQL=yes (for both MySQL and PostgreSQL support)"
|
|
|
|
@ ${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
.if defined(USE_MYSQL)
|
|
|
|
@ ${PERL} -i -pe "s/^#MYSQL/MYSQL/g" ${WRKDIR}/${DISTNAME}/Makefile
|
|
|
|
.endif
|
|
|
|
.if defined(USE_PGSQL)
|
|
|
|
@ ${PERL} -i -pe "s/^#PGSQL/PGSQL/g" ${WRKDIR}/${DISTNAME}/Makefile
|
|
|
|
.endif
|
|
|
|
|
1999-03-20 05:28:38 +00:00
|
|
|
do-install:
|
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/gtksql ${PREFIX}/bin
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${PREFIX}/share/doc/gtksql
|
|
|
|
.for file in COPYING Changelog README
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gtksql
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|