1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

Fix build with clang/libc++

Fix regeneration of the configure [1]
While here switch to lua 5.2

Reported by:	mat [1]
This commit is contained in:
Baptiste Daroussin 2014-04-22 17:21:32 +00:00
parent b82f94e1ce
commit 7751fb0ecc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351866
2 changed files with 15 additions and 3 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= linknx
PORTVERSION= 0.0.1.30
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
@ -16,7 +17,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libargp.a:${PORTSDIR}/devel/argp-standalone
USES= gmake
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf
USE_AUTOTOOLS= autoconf aclocal automake
AUTOMAKE_ARGS= --add-missing --copy --force-missing --foreign
CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib"
@ -25,7 +27,7 @@ OPTIONS_DEFAULT= LIBESMTP
OPTIONS_SUB=
LIBESMTP_DESC= Install libesmtp for SMTP support
LIBCURL_DESC= Install libcurl for Clickatell SMS support
LIBLUA_DESC= Install lilua for scripting
LIBLUA_DESC= Install liblua for scripting
MYSQL_DESC= Install libmysql for logging & persist
LIBESMTP_CONFIGURE_ENABLE= smtp
@ -33,7 +35,7 @@ LIBESMTP_LIB_DEPENDS= libesmtp.so:${PORTSDIR}/mail/libesmtp
LIBCURL_CONFIGURE_WITH= libcurl
LIBCURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
LIBLUA_CONFIGURE_WITH= lua
LIBLUA_USE= LUA=yes
LIBLUA_USES= lua
LIBLUA_CFLAGS= -I${LUA_INCDIR}
LIBLUA_LDFLAGS= -L${LUA_LIBDIR}
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}/bin/mysql_config

View File

@ -0,0 +1,10 @@
--- ./src/ioport.cpp.orig 2011-03-08 22:20:17.000000000 +0100
+++ ./src/ioport.cpp 2014-04-22 19:17:42.208791119 +0200
@@ -21,6 +21,7 @@
#include <iomanip>
#include "ioport.h"
#include <fcntl.h>
+#include <unistd.h>
Logger& IOPort::logger_m(Logger::getInstance("IOPort"));
Logger& RxThread::logger_m(Logger::getInstance("RxThread"));