1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/games/crossfire-server/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

60 lines
1.6 KiB
Makefile

# New ports collection makefile for: crossfire-server
# Date created: Jan 30, 2002
# Whom: Jasper Jongmans <j.jongmans@aprogas.net>
#
# $FreeBSD$
#
PORTNAME= crossfire
PORTVERSION= 1.60.0
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-server/${PORTVERSION} \
SF/${PORTNAME}/${PORTNAME}-maps/${PORTVERSION}:maps
PKGNAMESUFFIX= -server
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \
${DISTNAME}.maps${EXTRACT_SUFX}:maps
MAINTAINER= ports@FreeBSD.org
COMMENT= Server for multiplayer graphical arcade and adventure game
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \
png.6:${PORTSDIR}/graphics/png
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
USE_XORG= ice sm x11 xaw xext xmu xpm xt
USE_SQLITE= 3
USE_PERL5= yes
USE_PYTHON= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --with-check=no
MAN6= crossfire-config.6 crossfire-server.6 crossloop.6 \
crossloop.web.6
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
post-extract:
@${CHMOD} a+x ${WRKSRC}/utils/install-sh
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|-ldl||g'
@${REINPLACE_CMD} -e 's|^#.*/bin/sh|#! ${LOCALBASE}/bin/bash|g ; \
s|-ldl||g ; \
s|python[{].*[}]|${PYTHON_VERSION}|g ; \
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
post-install:
@${MKDIR} ${DATADIR}/maps
cd ${WRKDIR}/maps && ${COPYTREE_SHARE} . ${DATADIR}/maps
@${CHOWN} ${BINOWN}:games ${PREFIX}/bin/crossfire-server
@${CHMOD} 2755 ${PREFIX}/bin/crossfire-server
@${CHGRP} -R games ${PREFIX}/var/crossfire
.include <bsd.port.mk>