freebsd-ports/sysutils/xen-guest-tools/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

82 lines
2.6 KiB
Makefile

PORTNAME= xen-guest-tools
PORTVERSION= 4.14.0
PORTREVISION= 0
CATEGORIES= sysutils
MASTER_SITES= https://downloads.xenproject.org/release/xen/${PORTVERSION}/
DISTNAME= xen-${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Xen tools within FreeBSD domU
WWW= https://xenproject.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= not yet ported to anything other than amd64 or i386
CONFLICTS= xen-tools
BUILD_DEPENDS= bash:shells/bash \
${LOCALBASE}/lib/libglib-2.0.so:devel/glib20 \
${LOCALBASE}/lib/libargp.so:devel/argp-standalone \
${LOCALBASE}/lib/libyajl.so:devel/yajl \
${LOCALBASE}/lib/liblzo2.so:archivers/lzo2
USES= bison gmake pkgconfig perl5 python:build \
gettext-runtime:build gettext-tools:build
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-xen
CONFIGURE_ENV+= PYTHON=${PYTHON_CMD} PYTHON_PATH=${PYTHON_CMD}
CONFIGURE_ENV+= APPEND_LIB="${LOCALBASE}/lib"
CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
MAKE_ENV+= clang=y
MAKE_ENV+= CC="${CC}"
MAKE_ENV+= CFLAGS="${CFLAGS}"
MAKE_ENV+= CPPFLAGS="${CPPFLAGS}"
MAKE_ENV+= FREEBSD_PORT=y
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -I${LOCALBASE}/lib
USE_LDCONFIG= yes
PYTHON_NO_DEPENDS= yes
PLIST_FILES= bin/xen-detect \
bin/xenstore \
bin/xenstore-chmod \
bin/xenstore-control \
bin/xenstore-exists \
bin/xenstore-list \
bin/xenstore-ls \
bin/xenstore-read \
bin/xenstore-rm \
bin/xenstore-watch \
bin/xenstore-write \
lib/libxenstore.so.3.0 \
lib/libxentoolcore.so.1
post-patch:
${REINPLACE_CMD} -e 's;=xen tools stubdom docs;=tools;' \
${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's;86|x86_64;86no|x86_64no;' \
${WRKSRC}/tools/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tools/misc/xen-detect \
${WRKSRC}/tools/xenstore/xenstore \
${WRKSRC}/tools/xenstore/xenstore-control \
${STAGEDIR}${PREFIX}/bin/
${INSTALL_LIB} ${WRKSRC}/tools/xenstore/libxenstore.so.3.0 \
${WRKSRC}/tools/libs/toolcore/libxentoolcore.so.1 \
${STAGEDIR}${PREFIX}/lib/
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-chmod
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-control
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-exists
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-list
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-ls
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-read
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-rm
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-watch
cd ${STAGEDIR}${PREFIX}/bin/ && ${LN} -f xenstore xenstore-write
.include <bsd.port.mk>