1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/conquest/Makefile
Pawel Pekala 295fd58b92 - Add staging support
- Move ownership setting, /var dir creation to pkg-plist
- Automatically install/remove sample files
- Update pkg-message info, use SUB_FILES for DOCSDIR sub
2014-04-11 12:58:55 +00:00

50 lines
1.6 KiB
Makefile

# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$
PORTNAME= conquest
PORTVERSION= 7.2
CATEGORIES= games
MASTER_SITES= SF/conq/Conquest/Conquest%20${PORTVERSION}
EXTRACT_SUFX= .src.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-player curses space warfare game similar to Netrek
LICENSE= ART10
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc/conquest \
--datadir=${LOCALBASE}/share/conquest \
--localstatedir=/var/games
CFLAGS+= -Wno-return-type
GROUPS= ${PORTNAME}
MAKE_JOBS_UNSAFE= yes
PORTDOCS= README
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} "s|^.*@chgrp .(CONQGROUP) conq.*||g; \
s|^.*@chmod 2771 conq.*||g;" ${WRKSRC}/Makefile.in
${REINPLACE_CMD} "s/# include <termio.h>//g" ${WRKSRC}/c_defs.h
${REINPLACE_CMD} "s/-O2 -fPIC//g" ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} -m 2550 ${WRKSRC}/conqai ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conqdriv ${STAGEDIR}${PREFIX}/libexec
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conqoper ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/conqstrat ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conquest ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/conqrule ${STAGEDIR}${ETCDIR}/conqrule.sample
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/conqnews.doc \
${STAGEDIR}${DATADIR}/conqnews.doc.sample
${INSTALL_DATA} ${WRKSRC}/conquest.doc ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>