1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/databases/gtksql/Makefile
Steve Price 51088d2bc5 Update to version 0.3.
PR:		12820
Submitted by:	Dominik Brettnacher <domi@saargate.de>
1999-08-01 02:41:02 +00:00

58 lines
1.5 KiB
Makefile

# New ports collection makefile for: gtksql
# Version required: 0.3
# Date created: 19 November 1998
# Whom: Andrey Zakhvatov
#
# $Id: Makefile,v 1.1.1.1 1999/03/20 05:28:38 taoka Exp $
#
DISTNAME= gtksql-0.3
CATEGORIES= databases
MASTER_SITES= http://www.multimania.com/bbrox/GtkSQL/
MAINTAINER= domi@saargate.de
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
USE_X_PREFIX= yes
fetch-depends:
.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
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>