freebsd-ports/games/wolfpack/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

46 lines
1.2 KiB
Makefile

# Created by: Daniel O'Connor <darius@dons.net.au>
# $FreeBSD$
PORTNAME= wolfpack
PORTVERSION= 4.3.32
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/empserver/${DISTNAME}
DISTNAME= empire-${PORTVERSION}
MAINTAINER= johans@FreeBSD.org
COMMENT= Long term multiplayer strategy game
MAKEFILE= GNUmakefile
USES= gmake perl5
USE_PERL5= build
GNU_CONFIGURE= yes
BINDIR= ${PREFIX}/lib/${PORTNAME}
CONFIGURE_ARGS= --bindir=${BINDIR} --sbindir=${BINDIR} --localstatedir="${PREFIX}/var"
CONFLICTS_INSTALL= empire-[0-9]*
USERS= wolfpack
GROUPS= wolfpack
USE_RC_SUBR= wolfpack
SUB_FILES+= pkg-message
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e '/^econfig/,/^$$/s|/empire|/${PORTNAME}|' \
${WRKSRC}/Make.mk ${WRKSRC}/sources.mk
.if ${ARCH} == "sparc64"
${REINPLACE_CMD} -e '/ucontext\.h/ { h; s|ucontext|sys/types|; G; }' \
${WRKSRC}/src/lib/lwp/lwpint.h
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DATADIR}
${LN} -s ${BINDIR}/emp_server ${STAGEDIR}${PREFIX}/bin/emp_server
${LN} -s ${BINDIR}/empire ${STAGEDIR}${PREFIX}/bin/emp_client
${STAGEDIR}${PREFIX}/lib/wolfpack/pconfig > \
${STAGEDIR}${ETCDIR}/econfig.orig
.include <bsd.port.post.mk>