1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/devel/gsoap/Makefile
Stefan Eßer ebab298070 devel/gsoap: Add CPE information
Approved by:	portmgr (blanket)
2021-10-14 23:30:18 +02:00

55 lines
1.5 KiB
Makefile

# Created by: Sergey Matveychuk <sem@ciam.ru>
PORTNAME= gsoap
PORTVERSION= 2.8.117
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}2
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= bofh@FreeBSD.org
COMMENT= Generator Tools for Coding SOAP/XML Web Services in C and C++
LICENSE= GPLv2
USES= autoreconf cpe pathfix ssl zip
CPE_VENDOR= genivia
CONFIGURE_ENV= LEX=flex YACC=yacc
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
OPTIONS_DEFINE= IPV6
OPTIONS_RADIO= SSL
OPTIONS_RADIO_SSL= GNUTLS OPENSSL
OPTIONS_DEFAULT= OPENSSL IPV6
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
GNUTLS_CONFIGURE_ON= --enable-gnutls
GNUTLS_LDFLAGS= -L${LOCALBASE}/lib
OPENSSL_CONFIGURE_ENABLE= ssl
IPV6_CONFIGURE_ENABLE= ipv6
CFLAGS+= -fPIC -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
PORTSCOUT= limit:^2\.8\.[0-9][0-9][0-9]$
post-patch:
@${REINPLACE_CMD} -e 's|sys/timeb.h | |' \
-e 's|-DSOAPCPP_IMPORT_PATH=|-DSOAPCPP2_IMPORT_PATH=|' \
-e 's|-DWSDL_IMPORT_PATH=|-DWSDL2H_IMPORT_PATH=|' \
${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e 's|$$(libdir)|$$(libdir)data|' \
${WRKSRC}/Makefile.am
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gsoap
${INSTALL_DATA} ${WRKSRC}/gsoap/stdsoap2.c ${WRKSRC}/gsoap/dom.cpp \
${STAGEDIR}${PREFIX}/lib/gsoap
@${LN} -fs stdsoap2.c ${STAGEDIR}${PREFIX}/lib/gsoap/stdsoap2.cpp
@${LN} -fs dom.cpp ${STAGEDIR}${PREFIX}/lib/gsoap/dom.c
.include <bsd.port.mk>