42 lines
1.1 KiB
Makefile
42 lines
1.1 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.3.0
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
ftp://ftp.ifi.uio.no/pub/crossfire/ \
|
|
ftp://ftp.real-time.com/pub/games/crossfire/
|
|
MASTER_SITE_SUBDIR= crossfire
|
|
PKGNAMESUFFIX= -server
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz \
|
|
${PORTNAME}-${PORTVERSION}-maps.tar.gz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
|
|
|
USE_XPM= yes
|
|
USE_PERL5= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --with-includes="-I${LOCALBASE}/include" \
|
|
--with-ldflags="-L${LOCALBASE}/lib"
|
|
|
|
MAN6= crossfire.6 crossedit.6
|
|
|
|
post-install:
|
|
@${MKDIR} ${DATADIR}
|
|
@${CP} -R ${WRKDIR}/maps ${DATADIR}
|
|
@${MKDIR} ${DATADIR}/maps/tmp
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
|
@${CHOWN} ${BINOWN}:games ${PREFIX}/bin/crossfire
|
|
@${CHMOD} 2755 ${PREFIX}/bin/crossfire
|
|
@${CHGRP} -R games ${PREFIX}/var/crossfire
|
|
|
|
.include <bsd.port.mk>
|