diff options
author | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 06:36:23 +0000 |
---|---|---|
committer | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 06:36:23 +0000 |
commit | fda2e985daa21bcac7cf4e4882e560933d7ad5e8 (patch) | |
tree | 4ccb4a868e97ff347416395233e3825776b24951 /databases/gtksql | |
parent | d0cdca8bc326260560504ebb5d4b206942ca5125 (diff) | |
download | ports-fda2e985daa21bcac7cf4e4882e560933d7ad5e8.tar.gz ports-fda2e985daa21bcac7cf4e4882e560933d7ad5e8.zip |
Notes
Diffstat (limited to 'databases/gtksql')
-rw-r--r-- | databases/gtksql/Makefile | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/databases/gtksql/Makefile b/databases/gtksql/Makefile index 5f5e139bdbec..1141a437c9a7 100644 --- a/databases/gtksql/Makefile +++ b/databases/gtksql/Makefile @@ -12,49 +12,51 @@ 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(WITH_MYSQL) && !defined(WITH_PGSQL) WITH_MYSQL= yes .endif -.if defined(WITH_MYSQL) -LIB_DEPENDS += mysqlclient.6:${PORTSDIR}/databases/mysql322-client -.endif -.if defined(WITH_PGSQL) -LIB_DEPENDS += pq.2:${PORTSDIR}/databases/postgresql7 -.endif +USE_X_PREFIX= yes +USE_GTK= yes -GTK_CONFIG?= ${X11BASE}/bin/gtk12-config +.include <bsd.port.pre.mk> -USE_X_PREFIX= yes -MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}" +.if defined(WITH_MYSQL) || (exists(${LOCALBASE}/lib/mysql/libmysqlclient.a) \ + && !defined(WITHOUT_MYSQL)) +HAVE_MYSQL= yes +LIB_DEPENDS+= mysqlclient.6:${PORTSDIR}/databases/mysql322-client +.endif +.if defined(WITH_PGSQL) || (exists(${LOCALBASE}/lib/libpq.a) \ + && !defined(WITHOUT_PGSQL)) +HAVE_PYSQL= yes +LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7 +.endif pre-patch: -.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) - @ ${ECHO} "You must specify which database to use, possible are:" - @ ${ECHO} - @ ${ECHO} "make WITH_MYSQL=yes (for MySQL support)" - @ ${ECHO} "make WITH_PGSQL=yes (for PostgreSQL support)" - @ ${ECHO} "make WITH_MYSQL=yes WITH_PGSQL=yes (for both MySQL and PostgreSQL support)" - @ ${FALSE} +.if !defined(HAVE_MYSQL) && !defined(HAVE_PGSQL) + @${ECHO} "You must specify which database to use, possible are:" + @${ECHO} + @${ECHO} "make WITH_MYSQL=yes (for MySQL support)" + @${ECHO} "make WITH_PGSQL=yes (for PostgreSQL support)" + @${ECHO} "make WITH_MYSQL=yes WITH_PGSQL=yes (for both MySQL and PostgreSQL support)" + @${FALSE} .endif do-configure: -.if defined(WITH_MYSQL) - @ ${PERL} -i -pe "s/^#MYSQL/MYSQL/g" ${WRKDIR}/${DISTNAME}/Makefile +.if defined(HAVE_MYSQL) + @${PERL} -i -pe "s/^#MYSQL/MYSQL/g" ${WRKSRC}/Makefile .endif -.if defined(WITH_PGSQL) - @ ${PERL} -i -pe "s/^#PGSQL/PGSQL/g" ${WRKDIR}/${DISTNAME}/Makefile +.if defined(HAVE_PGSQL) + @${PERL} -i -pe "s/^#PGSQL/PGSQL/g" ${WRKSRC}/Makefile .endif do-install: - @ ${INSTALL_PROGRAM} ${WRKSRC}/gtksql ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/gtksql ${PREFIX}/bin .if !defined(NOPORTDOCS) - @ ${MKDIR} ${PREFIX}/share/doc/gtksql + @${MKDIR} ${PREFIX}/share/doc/gtksql .for file in Changelog README - @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gtksql + ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gtksql .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |