blob: 654bc77e1bb4a70a2517ec23bbcb7cd78a316ffd (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# $NetBSD: Makefile,v 1.20 2021/12/08 16:06:39 adam Exp $
#
# VERSION is set in xentool411/version.mk
PKGREVISION= 5
.include "../../sysutils/xentools411/version.mk"
DIST_SUBDIR= xen411
DISTNAME= xen-${VERSION}
PKGNAME= xenstoretools-${VERSION}
CATEGORIES= sysutils
MASTER_SITES= https://downloads.xenproject.org/release/xen/${VERSION}/
DISTFILES= ${DISTNAME}.tar.gz
XEN_EXTFILES= http://xenbits.xensource.com/xen-extfiles/
DIST_IPXE= ipxe-git-${VERSION_IPXE}.tar.gz
DISTFILES+= ${DIST_IPXE}
SITES.${DIST_IPXE} += ${XEN_EXTFILES}
MAINTAINER= sborrill@NetBSD.org
HOMEPAGE= http://xen.org/
COMMENT= Xenstore Tools for Xen 4.11.x
LICENSE= gnu-gpl-v2
DISTINFO_FILE= ${.CURDIR}/../../sysutils/xentools411/distinfo
PATCHDIR= ${.CURDIR}/../../sysutils/xentools411/patches
INSTALL_DIRS= tools/xenstore tools/libs/toolcore
INSTALL_MAKE_FLAGS+= XENSTORE_XENSTORED=n
.if !exists(/usr/bin/iasl)
BUILD_DEPENDS+= acpica-utils-[0-9]*:../../sysutils/acpica-utils
.endif
GNU_CONFIGURE= yes
# configure checks for more components than are required to build the
# xenstore subdirectory, so provide dummy args to allow it to complete
# without adding unnecessary dependencies
CONFIGURE_ARGS+= ac_cv_path_AS86=/dummy
CONFIGURE_ARGS+= ac_cv_path_LD86=/dummy
CONFIGURE_ARGS+= ac_cv_path_BCC=/dummy
CONFIGURE_ARGS+= ac_cv_lib_yajl_yajl_alloc=yes
CONFIGURE_ARGS+= ac_cv_lib_z_deflateCopy=yes
CONFIGURE_ARGS+= ac_cv_header_argp_h=yes
CONFIGURE_ARGS+= ac_cv_lib_argp_argp_usage=yes
CONFIGURE_ARGS+= pixman_CFLAGS=dummy
CONFIGURE_ARGS+= pixman_LIBS=/dummy
PKG_SYSCONFSUBDIR= xen
BUILD_DEFS+= VARBASE
ONLY_FOR_PLATFORM= Linux-2.6*-i386 Linux-2.6*-x86_64
ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386
CONFLICTS+= libxen-[0-9]*
CONFLICTS+= xentools20-[0-9]*
CONFLICTS+= xentools3*
CONFLICTS+= xentools4*
USE_TOOLS+= bash gmake pkg-config perl
MAKE_ENV+= PREFIX=${prefix:Q} WRKSRC=${WRKSRC}
MAKE_ENV+= MV=${MV:Q} PYTHON=${PYTHONBIN:Q} SED=${SED:Q}
MAKE_ENV+= VARBASE=${VARBASE}
RCD_SCRIPTS= xendomname
FILES_SUBST+= PREFIX=${PREFIX}
.include "../../mk/bsd.prefs.mk"
INSTALLATION_DIRS= bin include lib
pre-build:
${LN} -s ../../xen/include/public ${WRKSRC}/tools/include/xen
do-build:
${RUN}${_ULIMIT_CMD} \
cd ${WRKSRC}/tools/libs/toolcore && \
${BUILD_MAKE_CMD} all
${RUN}${_ULIMIT_CMD} \
cd ${WRKSRC}/tools/xenstore && \
${BUILD_MAKE_CMD} clients
pre-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pkgconfig
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|