ports/net/linknx/Makefile
Muhammad Moinur Rahman ee6c86aea5 */*: Refactor with IGNORE_WITH_MYSQL
- There are multiple ports which has MYSQL options and are non-DEFAULT.
  Most of the time committers actually forget to check with the OPTION
  enabled and in some cases they are BROKEN with newr versions of mysql.
  So test with different versions of mysql and mark IGNOPRE_WITH_MYSQL
  appropriately. Due to the EOL of 5.7 this has not been checked.
- Unbreak sysutils/cfengine* with MySQL 8.0 and later
- The primary purpose of running this check is having statistics of the
  MySQL usability over MariaDB to explore the future possibility of
  shifting to MariaDB as the default as major ports upstream have moved
  their codebase to support MariaDB over MySQL.
- The following actions will also be taken after the sunset of MySQL 5.7
  If a port is broken on all instances of MySQL/MariaDB:
  - If a port has the option of multiple DB backends and MySQL is the
    default then the DEFAULT will be changed to PGSQL/SQLITE before
    2024Q1. And the OPTION will be removed before 2024Q2. If a
    MAINTAINER is aware about such cases and want to prefer PGSQL over
    SQLITE or vice versa please do so at your own accord. Otherwise
    PGSQL will be preferred over SQLITE.
  - If a port has the option of multiple DB backends and MySQL is not
    the default then the the OPTION will be removed before 2024Q1.

Approved by:	portmgr (blanket)
2023-12-29 19:24:39 +01:00

63 lines
2 KiB
Makefile

PORTNAME= linknx
PORTVERSION= 0.0.1.32
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= bkoenig@alpha-tierchen.de
COMMENT= Rule-based event handling in a KNX installation
WWW= https://linknx.sourceforge.net/
LICENSE= GPLv2
BROKEN_armv6= fails to configure: checking for GNU Pth... Segmentation fault
BROKEN_armv7= fails to configure: checking for GNU Pth... Segmentation fault
BROKEN_mips= fails to configure: checking for GNU Pth... Segmentation fault
BROKEN_mips64= fails to configure: checking for GNU Pth... Segmentation fault
LIB_DEPENDS= libpthsem.so:devel/pthsem
BUILD_DEPENDS= ${LOCALBASE}/lib/libargp.a:devel/argp-standalone
USES= compiler gmake autoreconf pkgconfig
USE_CXXSTD= c++14
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib"
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
OPTIONS_DEFINE= LIBESMTP LIBCURL LIBLUA MYSQL DOCS
OPTIONS_DEFAULT= LIBESMTP
OPTIONS_SUB=
LIBESMTP_DESC= Install libesmtp for SMTP support
LIBCURL_DESC= Install libcurl for Clickatell SMS support
LIBLUA_DESC= Install liblua for scripting
MYSQL_DESC= Install libmysql for logging & persist
LIBESMTP_CFLAGS= -lesmtp
LIBESMTP_CONFIGURE_ENABLE= smtp
LIBESMTP_LIB_DEPENDS= libesmtp.so:mail/libesmtp
LIBCURL_CONFIGURE_WITH= libcurl
LIBCURL_LIB_DEPENDS= libcurl.so:ftp/curl
# autoreconf needs that anyway.
LIBCURL_BUILD_DEPENDS_OFF= ${LOCALBASE}/share/aclocal/libcurl.m4:ftp/curl
LIBLUA_CONFIGURE_WITH= lua
LIBLUA_USES= lua
LIBLUA_CFLAGS= -I${LUA_INCDIR}
LIBLUA_LDFLAGS= -L${LUA_LIBDIR}
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}/bin/mysql_config
MYSQL_CONFIGURE_OFF= --without-mysql
MYSQL_USES= mysql
MYSQL_VARS= IGNORE_WITH_MYSQL="80 81"
PORTDOCS= *
PLIST_FILES= bin/linknx
USE_RC_SUBR= ${PORTNAME}
post-patch:
${REINPLACE_CMD} "s/LUAPC=lua/LUAPC=lua-${LUA_VER}/" ${WRKSRC}/configure.ac
cd ${WRKSRC} && ${TOUCH} NEWS README AUTHORS
.include <bsd.port.mk>