freebsd-ports/sysutils/xen-tools/Makefile
William Grzybowski 32c4cb7bed sysutils/xen-tools: fix python usage for real
Reported by:	exp-run (PR 184591)
Approved by:	portmgr (blanket)
2013-12-14 23:14:13 +00:00

53 lines
1.8 KiB
Makefile

# Created by: Evan Sarmiento <esarmiento@wayfair.com>
# $FreeBSD$
PORTNAME= xen-tools
PORTVERSION= 4.1.3
PORTREVISION= 3
CATEGORIES= sysutils
DISTNAME= xen-${PORTVERSION}
MAINTAINER= feld@FreeBSD.org
COMMENT= Xen tools within FreeBSD domU
MASTER_SITES= http://bits.xensource.com/oss-xen/release/${PORTVERSION}/
DISTFILES= xen-${PORTVERSION}.tar.gz
USES= gmake
USE_PYTHON= yes
MAKE_ENV+= PYTHON=${PYTHON_CMD}
ONLY_FOR_ARCHS= amd64 i386 ia64
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than amd64, i386, or ia64"
PLIST_FILES= lib/libxenstore.so.3.0 \
bin/xen-detect \
bin/xenstore \
bin/xenstore-control \
bin/xenstore-chmod \
bin/xenstore-exists \
bin/xenstore-list \
bin/xenstore-ls \
bin/xenstore-read \
bin/xenstore-rm \
bin/xenstore-write
do-build:
cd ${WRKSRC}/tools && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C include
cd ${WRKSRC}/tools/misc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} xen-detect
cd ${WRKSRC}/tools/xenstore && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} clients
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tools/misc/xen-detect ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/xenstore ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/xenstore-control ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tools/xenstore/libxenstore.so.3.0 ${STAGEDIR}${PREFIX}/lib
${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-chmod
${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-exists
${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-list
${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-ls
${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-read
${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-rm
${LN} -sf ${PREFIX}/bin/xenstore ${STAGEDIR}${PREFIX}/bin/xenstore-write
.include <bsd.port.mk>