diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-08-30 04:17:18 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-08-30 04:17:18 +0000 |
commit | f804367338869f57b52f17c50bc656a072d25ba3 (patch) | |
tree | 6e8eb512bb28898db237af1725a1af236412406a /databases/libgda3/Makefile | |
parent | add more patches for net/cflowd but still not working properly under (diff) |
* Use USE_MYSQL [1]
* Handle OMF files properly
* Use %%DOCSDIR%% in the plist
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> [1]
Notes
Notes:
svn path=/head/; revision=88044
Diffstat (limited to 'databases/libgda3/Makefile')
-rw-r--r-- | databases/libgda3/Makefile | 48 |
1 files changed, 11 insertions, 37 deletions
diff --git a/databases/libgda3/Makefile b/databases/libgda3/Makefile index 50142f480493..cbf84a0afb06 100644 --- a/databases/libgda3/Makefile +++ b/databases/libgda3/Makefile @@ -33,18 +33,12 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ MAN1= gda-config-tool.1 MAN5= gda-config.5 -.include <bsd.port.pre.mk> - -.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10) -WITH_MYSQL3= yes -.endif +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/2$//} -.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.12) -WITH_MYSQL40= yes -.endif +.include <bsd.port.pre.mk> -.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14) -WITH_MYSQL41= yes +.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so) +WITH_MYSQL= yes .endif .if exists(${LOCALBASE}/lib/libpq.so.3) @@ -83,27 +77,13 @@ WITH_ODBC= yes WITH_SQLITE= yes .endif -.if !defined(WITHOUT_MYSQL3) && defined(WITH_MYSQL3) -LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client -CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} -PLIST_SUB= MYSQL:="" -.endif - -.if !defined(WITHOUT_MYSQL40) && defined(WITH_MYSQL40) -LIB_DEPENDS+= mysqlclient.12:${PORTSDIR}/databases/mysql40-client -CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} -PLIST_SUB= MYSQL:="" -.endif - -.if !defined(WITHOUT_MYSQL41) && defined(WITH_MYSQL41) -LIB_DEPENDS+= mysqlclient.14:${PORTSDIR}/databases/mysql41-client -CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} -PLIST_SUB= MYSQL:="" -.endif - -.if !defined(WITH_MYSQL3) && !defined(WITH_MYSQL40) && !defined(WITH_MYSQL41) +.if !defined(WITH_MYSQL) PLIST_SUB+= MYSQL:="@comment " CONFIGURE_ARGS+= --without-mysql +.else +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} +PLIST_SUB+= MYSQL:="" .endif .if !defined(WITHOUT_POSTGRES7) && defined(WITH_POSTGRES7) @@ -189,15 +169,9 @@ PLIST_SUB+= SQLITE:="@comment " .endif pre-everything:: -.if !defined(WITH_MYSQL3) - @${ECHO_MSG} "You can enable support for MySQL 3 databases by defining WITH_MYSQL3." -.endif -.if !defined(WITH_MYSQL40) - @${ECHO_MSG} "You can enable support for MySQL 4.0 databases by defining WITH_MYSQL40." +.if !defined(WITH_MYSQL) + @${ECHO_MSG} "You can enable support for MySQL databases by defining WITH_MYSQL." .endif -.if !defined(WITH_MYSQL41) - @${ECHO_MSG} "You can enable support for MySQL 4.1 databases by defining WITH_MYSQL41." -.endif .if !defined(WITH_POSTGRES7) @${ECHO_MSG} "You can enable support for Postgres 7.0 databases by defining WITH_POSTGRES7." .endif |