1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/net/ulxmlrpcpp/Makefile
Piotr Kubaj 4593df7538 net/ulxmlrpcpp: fix build on GCC architectures
Use new GCC because of:
ulxr_value.cpp:895: error: 'snprintf' is not a member of 'std'

Also add include cstring because of:
ulxr_ssl_connection.cpp: In function 'int ulxr::password_cb(char*, int, int, void*)':
ulxr_ssl_connection.cpp:63:3: error: 'strcpy' was not declared in this scope

63 |   strcpy(buf, pass.c_str());
   |   ^~~~~~

Approved by:	linimon (mentor)
Differential Revision:	https://reviews.freebsd.org/D21720
2019-09-21 15:22:06 +00:00

32 lines
704 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= ulxmlrpcpp
PORTVERSION= 1.7.5
PORTREVISION= 3
CATEGORIES= net devel
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Ultra lightweight xml-rpc library written in C++
LIB_DEPENDS= libexpat.so:textproc/expat2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= compiler:c++11-lang tar:bzip2 pathfix iconv libtool ssl
GNU_CONFIGURE= yes
CONFIGURE_ENV= PTHREAD_LIBS="-lpthread"
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s| docs | |g' ${WRKSRC}/ulxmlrpcpp/Makefile.in
.include <bsd.port.mk>