blob: 3881066deb733b2eca9a66ce8b0a74e3165a1b8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
PORTNAME= xrootd
DISTVERSION= 4.10.0
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://xrootd.org/download/v${DISTVERSION}/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Framework for fast, low latency, scalable data access
LICENSE= GPLv3 LGPL3
LICENSE_COMB= dual
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LGPL
BUILD_DEPENDS= bash:shells/bash
LIB_DEPENDS= libcurl.so:ftp/curl
USES= cmake gnome localbase:ldflags pkgconfig readline shebangfix ssl
SHEBANG_GLOB= *.sh
SHEBANG_FILES= utils/cms_monPerf
USE_GNOME= libxml2
USE_LDCONFIG= yes
CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR:STRING=${PREFIX}/lib \
-DCMAKE_INSTALL_BINDIR:STRING=${PREFIX}/bin \
-DCMAKE_INSTALL_INCLUDEDIR:STRING=${PREFIX}/include \
-DCMAKE_INSTALL_MANDIR:STRING=${PREFIX}/man \
-DCMAKE_INSTALL_DATADIR:STRING=${DATADIR}
CXXFLAGS+= -Ddirent64=dirent
LDFLAGS+= -lexecinfo
OPTIONS_DEFINE= KERBEROS5
OPTIONS_SUB= yes
KERBEROS5_CMAKE_BOOL= ENABLE_KRB5
KERBEROS5_BROKEN= build picks base kerberos, but needs the port one (problem only exists in poudriere builds for some reason)
KERBEROS5_LIB_DEPENDS= libkrb5.so:security/krb5
post-patch:
@${REINPLACE_CMD} 's| dl| $${CMAKE_DL_LIBS}| ; s|-ldl|$${CMAKE_DL_LIBS}|' ${WRKSRC}/src/*.cmake ${WRKSRC}/src/*/CMakeLists.txt
.include <bsd.port.mk>
|