ports/54887: [new port] mail/dbmail: An SQL database-based mail system (POP3 and IMAP)

Clement Laforet sheepkiller at cultdeadsheep.org
Wed Aug 27 09:55:57 UTC 2003


Use new USE_MYSQL.


--- Makefile.old	Wed Aug 27 11:35:39 2003
+++ Makefile	Wed Aug 27 11:36:16 2003
@@ -19,26 +19,6 @@
 GNU_CONFIGURE=	YES
 USE_GMAKE=	YES
 
-# MySQL deps hack
-MYSQL323_LIBVER=10
-MYSQL40_LIBVER=	12
-MYSQL41_LIBVER=	14
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_MYSQL_VER)
-MYSQL_VER=	${WITH_MYSQL_VER}
-.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL_323_LIBVER})
-MYSQL_VER=	323
-.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL40_LIBVER})
-MYSQL_VER=	40
-.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL41_LIBVER})
-MYSQL_VER=	41
-.else
-# We consider that MySQL 4.0.x is now the default.
-MYSQL_VER=	40
-.endif
-
 .if defined(WITH_PGSQL)
 CONFIGURE_ARGS+=	--with-pgsql
 LIB_DEPENDS+=		pq:${PORTSDIR}/databases/postgresql7
@@ -46,8 +26,8 @@
 PLIST_SUB+=		PGSQL=""
 PLIST_SUB+=		MYSQL="@comment "
 .else
+USE_MYSQL=		YES
 CONFIGURE_ARGS+=	--with-mysql
-LIB_DEPENDS+=		mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client
 DATABASE=		mysql
 PLIST_SUB+=		MYSQL=""
 PLIST_SUB+=		PGSQL="@comment "
@@ -61,11 +41,6 @@
 	@${ECHO} ""
 	@${ECHO} "You may use the following build options:"
 	@${ECHO} "   By default dbmail uses MySQL backend database."
-	@${ECHO} ""
-	@${ECHO} "      WITH_MYSQL_VER=323   Enable MySQL 3.23 support"
-	@${ECHO} "      WITH_MYSQL_VER=40    Enable MySQL 4.0 support (default)"
-	@${ECHO} "      WITH_MYSQL_VER=41    Enable MySQL 4.1 support"
-	@${ECHO} ""
 	@${ECHO} "   To build dbmail with PostgreSQL as backend database,"
 	@${ECHO} "	define WITH_PGSQL"
 	@${ECHO} ""
@@ -87,4 +62,4 @@
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



More information about the freebsd-ports-bugs mailing list