1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/games/crossfire-server/Makefile
Martin Wilke 39fb03ef77 - Update to 1.11.0
PR:		121086
Submitted by:	Ports Fury
2008-02-26 13:35:04 +00:00

57 lines
1.5 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.11.0
CATEGORIES= games
MASTER_SITES= SF \
ftp://ftp.real-time.com/pub/games/crossfire/
PKGNAMESUFFIX= -server
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${DISTNAME}.maps${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Server for multiplayer graphical arcade and adventure game
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_XORG= ice sm x11 xaw xext xmu xpm xt
USE_GNOME= gnometarget
USE_PERL5= yes
USE_PYTHON= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-check=no
MAN6= crossedit.6 crossfire.6 crossfire-config.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
@${CHMOD} 2755 ${PREFIX}/bin/crossfire
@${CHGRP} -R games ${PREFIX}/var/crossfire
.include <bsd.port.mk>