[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / mariadb104-client

Annotation of pkgsrc/databases/mariadb104-client/Makefile.common, Revision 1.8

1.8     ! nia         1: # $NetBSD: Makefile.common,v 1.7 2021/05/25 11:18:25 jperkin Exp $
1.1       jdolecek    2: #
1.2       jdolecek    3: # used by databases/mariadb104-client/Makefile
                      4: # used by databases/mariadb104-server/Makefile
1.1       jdolecek    5:
                      6: DISTNAME=      mariadb-10.4.18
                      7: CATEGORIES=    databases
                      8: MASTER_SITES=  https://downloads.mariadb.org/f/${DISTNAME}/source/
                      9: MASTER_SITES+= https://archive.mariadb.org/${DISTNAME}/source/
                     10:
                     11: MAINTAINER?=   pkgsrc-users@NetBSD.org
                     12: HOMEPAGE=      https://mariadb.org/
                     13: LICENSE=       gnu-gpl-v2
                     14:
                     15: DISTINFO_FILE?=        ${.CURDIR}/../../databases/mariadb104-client/distinfo
                     16: PATCHDIR?=     ${.CURDIR}/../../databases/mariadb104-client/patches
                     17:
                     18: USE_CMAKE=     yes
                     19: USE_LANGUAGES= c c++
                     20: USE_TOOLS+=    perl:run pkg-config bison
                     21:
                     22: PLIST_SRC=     ${PLIST_SRC_DFLT}
                     23:
                     24: .include "../../mk/bsd.prefs.mk"
                     25:
1.6       jperkin    26: #
                     27: # Use MySQL defaults if set.
                     28: #
                     29: MARIADB_DATADIR?=      ${MYSQL_DATADIR:U${VARBASE}/db/mariadb}
                     30: MARIADB_CHARSET?=      ${MYSQL_CHARSET:Uutf8mb4}
                     31: MARIADB_COLLATION?=    ${MYSQL_COLLATION:Uutf8mb4_unicode_ci}
                     32: MARIADB_EXTRA_CHARSET?=        ${MYSQL_EXTRA_CHARSET:Uall}
1.1       jdolecek   33:
                     34: BUILD_DEFS+=           VARBASE
                     35:
1.3       nia        36: CMAKE_ARGS+=           -DCOMPILATION_COMMENT="pkgsrc"
                     37:
                     38: CMAKE_ARGS+=           -DCMAKE_BUILD_TYPE="Release"
                     39:
1.1       jdolecek   40: CMAKE_ARGS+=           -DINSTALL_BINDIR="bin"
                     41: CMAKE_ARGS+=           -DINSTALL_DOCDIR="share/doc/mysql"
                     42: CMAKE_ARGS+=           -DINSTALL_DOCREADMEDIR="share/doc/mysql"
                     43: CMAKE_ARGS+=           -DINSTALL_INCLUDEDIR="include/mysql"
                     44: CMAKE_ARGS+=           -DINSTALL_INFODIR="${PKGINFODIR}"
                     45: CMAKE_ARGS+=           -DINSTALL_LIBDIR="lib"
                     46: CMAKE_ARGS+=           -DINSTALL_MANDIR="${PKGMANDIR}"
                     47: CMAKE_ARGS+=           -DINSTALL_MYSQLSHAREDIR="share/mysql"
                     48: CMAKE_ARGS+=           -DINSTALL_MYSQLTESTDIR="share/mysql/test"
                     49: CMAKE_ARGS+=           -DINSTALL_PLUGINDIR="lib/mysql/plugin"
                     50: CMAKE_ARGS+=           -DINSTALL_SBINDIR="sbin"
                     51: CMAKE_ARGS+=           -DINSTALL_SCRIPTDIR="bin"
                     52: CMAKE_ARGS+=           -DINSTALL_SQLBENCHDIR="share/mysql/sql-bench"
                     53: CMAKE_ARGS+=           -DINSTALL_SUPPORTFILESDIR="share/mysql"
                     54: CMAKE_ARGS+=           -DINSTALL_SYSCONFDIR="${PKG_SYSCONFDIR}"
                     55: CMAKE_ARGS+=           -DMYSQL_DATADIR=${MARIADB_DATADIR}
                     56:
1.3       nia        57: CMAKE_ARGS+=           -DWITH_UNIT_TESTS=OFF
1.1       jdolecek   58: CMAKE_ARGS+=           -DWITH_LIBWRAP=ON
                     59: CMAKE_ARGS+=           -DWITH_ZLIB="system"
                     60: CMAKE_ARGS+=           -DDEFAULT_CHARSET=${MARIADB_CHARSET}
                     61: CMAKE_ARGS+=           -DDEFAULT_COLLATION=${MARIADB_COLLATION:Q}
                     62: CMAKE_ARGS+=           -DWITH_EXTRA_CHARSETS=${MARIADB_EXTRA_CHARSET:Q}
                     63:
1.3       nia        64: CMAKE_ARGS+=           -DPLUGIN_EXAMPLE=NO
                     65: CMAKE_ARGS+=           -DPLUGIN_FEEDBACK=NO
                     66:
                     67: # Requires Java
                     68: CMAKE_ARGS+=           -DCONNECT_WITH_JDBC=OFF
                     69:
1.1       jdolecek   70: # Options which affect generation of includes
                     71: CMAKE_ARGS+=           -DWITH_ARIA_STORAGE_ENGINE=ON
                     72: CMAKE_ARGS+=           -DWITH_PARTITION_STORAGE_ENGINE=ON
                     73: CMAKE_ARGS+=           -DWITH_PERFSCHEMA_STORAGE_ENGINE=ON
                     74:
                     75: CMAKE_ARGS+=           -DWITHOUT_MROONGA_STORAGE_ENGINE=ON
                     76:
                     77: CMAKE_ARGS+=           -DENABLE_DTRACE=OFF
                     78:
                     79: CMAKE_ARGS+=           -DTOKUDB_OK=OFF
                     80:
                     81: # Ensure the correct DTrace ABI is used.
                     82: .if !empty(ABI)
                     83: CMAKE_ARGS+=           -DDTRACE_FLAGS="-${ABI}"
                     84: .endif
                     85:
1.8     ! nia        86: CFLAGS.SunOS+=         -fPIC
1.1       jdolecek   87:
                     88: REPLACE_PERL+=         scripts/mytop.sh
                     89: REPLACE_PERL+=         sql-bench/*.sh
                     90:
                     91: SUBST_CLASSES+=                perl
                     92: SUBST_STAGE.perl=      pre-configure
                     93: SUBST_FILES.perl=      scripts/CMakeLists.txt
                     94: SUBST_SED.perl=                -e "s,/usr/bin/perl,${TOOLS_PATH.perl},g"
                     95: SUBST_SED.perl+=       -e "s,/usr/local/bin/perl,${TOOLS_PATH.perl},g"
                     96:
                     97: CHECK_INTERPRETER_SKIP+=       share/mysql/test/*
                     98: CHECK_PORTABILITY_SKIP+=       BUILD/compile-pentium-gcov
                     99:
                    100: PKGCONFIG_OVERRIDE+=   support-files/mariadb.pc.in
                    101: PKGCONFIG_OVERRIDE+=   libmariadb/mariadb_config/libmariadb.pc.in
                    102:
                    103: .include "../../devel/zlib/buildlink3.mk"
                    104: .include "../../www/curl/buildlink3.mk"
                    105: .include "../../mk/curses.buildlink3.mk"
                    106: .include "../../mk/dlopen.buildlink3.mk"
                    107: BUILDLINK_TRANSFORM+=  opt:-ldl:${BUILDLINK_LDADD.dl:Q}
1.8     ! nia       108: .include "../../mk/readline.buildlink3.mk"
1.5       jperkin   109: .include "../../mk/krb5.buildlink3.mk"

CVSweb <webmaster@jp.NetBSD.org>