mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
00a1c5603f
Reported by: Michael Dexter Pointyhat to: bapt
67 lines
1.8 KiB
Makefile
67 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= xen
|
|
PKGNAMESUFFIX= -tools
|
|
PORTVERSION= 4.5.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils emulators
|
|
MASTER_SITES= http://bits.xensource.com/oss-xen/release/${PORTVERSION}/ \
|
|
http://code.coreboot.org/p/seabios/downloads/get/:seabios
|
|
|
|
MAINTAINER= bapt@FreeBSD.org
|
|
COMMENT= Xen management tool, based on LibXenlight
|
|
|
|
LICENSE= GPLv2 LGPL3
|
|
LICENSE_COMB= multi
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
LIB_DEPENDS= libyajl.so:${PORTSDIR}/devel/yajl \
|
|
liblzo2.so:${PORTSDIR}/archivers/lzo2 \
|
|
libpixman-1.so:${PORTSDIR}/x11/pixman
|
|
BUILD_DEPENDS= dev86>0:${PORTSDIR}/devel/dev86
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than amd64, i386"
|
|
|
|
SEABIOSVERSION= 1.8.1
|
|
DISTFILES+= ${PORTNAME}-${PORTVERSION}.tar.gz \
|
|
seabios-${SEABIOSVERSION}.tar.gz:seabios
|
|
|
|
WRKSRC= ${WRKDIR}/xen-${PORTVERSION}
|
|
|
|
USES= gmake perl5 python shebangfix libtool pkgconfig
|
|
USE_GNOME= glib20
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= HOSTCC="${CC}" CC="${CC}" \
|
|
ac_cv_path_BASH=${TRUE} \
|
|
ac_cv_path_XGETTEXT=${TRUE}
|
|
MAKE_ARGS= HOSTCC="${CC}" CC="${CC}" GCC="${GCC}" cc="${GCC}"
|
|
SHEBANG_FILES= tools/misc/xencov_split \
|
|
tools/misc/xen-ringwatch
|
|
USE_GCC= yes
|
|
ALL_TARGET= tools docs
|
|
INSTALL_TARGET= install-tools install-docs
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} != FreeBSD
|
|
IGNORE= Only supported on FreeBSD
|
|
.endif
|
|
|
|
post-extract:
|
|
${MV} ${WRKDIR}/seabios-${SEABIOSVERSION} ${WRKSRC}/tools/firmware/seabios-dir
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} "s,x86_64,amd64,g" ${WRKSRC}/tools/configure
|
|
@${REINPLACE_CMD} -e "s,/var/lib,/var/db,g" \
|
|
${WRKSRC}/tools/Makefile \
|
|
${WRKSRC}/tools/libxc/include/xenguest.h \
|
|
${WRKSRC}/tools/libxl/libxl_dom.c \
|
|
${WRKSRC}/tools/libxl/libxl_dm.c \
|
|
${WRKSRC}/tools/qemu-xen-traditional/i386-dm/helper2.c \
|
|
${WRKSRC}/docs/man/*
|
|
|
|
.include <bsd.port.mk>
|
|
RUN_DEPENDS:= ${RUN_DEPENDS:N*gcc*}
|