File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1- # $NetBSD: Makefile,v 1.34 2025/03/03 20:29:27 wiz Exp $
1+ # $NetBSD: Makefile,v 1.35 2026/01/18 17:00:44 ryoon Exp $
22
33DISTNAME = rel-${PKGNAME_NOREV:C/\./-/g}
44PKGNAME = opendmarc-1.4.2
@@ -15,10 +15,11 @@ LICENSE= modified-bsd
1515
1616DEPENDS+ = p5-JSON-[0-9]*:../../converters/p5-JSON
1717DEPENDS+ = p5-DBI-[0-9]*:../../databases/p5-DBI
18- DEPENDS+ = p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
1918DEPENDS+ = p5-Switch-[0-9]*:../../lang/p5-Switch
2019DEPENDS+ = p5-HTTP-Message-[0-9]*:../../www/p5-HTTP-Message
2120
21+ .include "options.mk"
22+
2223USE_LIBTOOL = yes
2324USE_TOOLS+ = perl autoconf automake pkg-config
2425
Original file line number Diff line number Diff line change 1+ # $NetBSD: options.mk,v 1.1 2026/01/18 17:00:44 ryoon Exp $
2+
3+ PKG_OPTIONS_VAR = PKG_OPTIONS.opendmarc
4+ PKG_OPTIONS_REQUIRED_GROUPS = db
5+ PKG_OPTIONS_GROUP.db = mysql mariadb
6+ PKG_SUGGESTED_OPTIONS = mysql
7+
8+ .include "../../mk/bsd.options.mk"
9+
10+ # ##
11+ # ## Backend database support
12+ # ##
13+ .if !empty(PKG_OPTIONS :Mmysql)
14+ DEPENDS+ = p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
15+ CONFIGURE_ARGS+ = --with-sql-backend=mysql
16+ .elif !empty(PKG_OPTIONS :Mmariadb)
17+ DEPENDS+ = p5-DBD-MariaDB-[0-9]*:../../databases/p5-DBD-MariaDB
18+ CONFIGURE_ARGS+ = --with-sql-backend=MariaDB
19+ .endif
You can’t perform that action at this time.
0 commit comments