74c61c2ea2
the C (and C++) standards mandated for years and compilers started to enforce as of recently (Clang 11, GCC 10). Reported by: pkg-fallout
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Daniel O'Connor <darius@dons.net.au>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qstat
|
|
PORTVERSION= 2.14
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= games net
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Command-line program to query game servers on the net
|
|
|
|
LICENSE= ART20
|
|
|
|
CONFLICTS_INSTALL= torque-[0-9]*
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= multiplay
|
|
|
|
USES= autoreconf
|
|
GNU_CONFIGURE= yes
|
|
|
|
PLIST_FILES= bin/qstat \
|
|
@sample\ etc/qstat.cfg.sample
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-extract:
|
|
@${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.sample
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|qstat\.cfg|&.sample|' ${WRKSRC}/Makefile.am
|
|
@${REINPLACE_CMD} -e 's|__hpux|${OPSYS}|' ${WRKSRC}/qstat.c
|
|
@${ECHO_CMD} 'int do_dump = 0;' >> ${WRKSRC}/qstat.c
|
|
@${REINPLACE_CMD} -e 's|^int do_dump|extern &|' ${WRKSRC}/debug.h
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/info ${STAGEDIR}${DOCSDIR}/template
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${WRKSRC}/qstatdoc.html \
|
|
${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/template/*.html ${WRKSRC}/template/*.txt \
|
|
${STAGEDIR}${DOCSDIR}/template
|
|
${INSTALL_DATA} ${WRKSRC}/info/*.txt ${STAGEDIR}${DOCSDIR}/info
|
|
|
|
.include <bsd.port.mk>
|