blob: b015b54d9aad29c1b1ef53e35b86c62f4f86d6cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# New ports collection makefile for: crossfire-server
# Date created: Jan 30, 2002
# Whom: Jasper Jongmans <j.jongmans@aprogas.net>
#
# $FreeBSD$
#
PORTNAME= crossfire
PORTVERSION= 1.9.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ftp.real-time.com/pub/games/crossfire/
MASTER_SITE_SUBDIR= ${PORTNAME}
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_XPM= yes
USE_PERL5= yes
USE_PYTHON= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --without-check
MAN6= crossedit.6 crossfire.6 crossfire-config.6 crossloop.6 \
crossloop.web.6
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include \
-I${PYTHON_INCLUDEDIR} ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib \
-L${PYTHON_LIBDIR} ${PTHREAD_LIBS}
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|python[{].*[}]|${PYTHON_VERSION}|g ; \
s|-ldl||g' ${WRKSRC}/configure
post-install:
@${MKDIR} ${DATADIR}/maps
cd ${WRKDIR}/maps && ${FIND} . ! -name ".#*" | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/maps
@${CHOWN} ${BINOWN}:games ${PREFIX}/bin/crossfire
@${CHMOD} 2755 ${PREFIX}/bin/crossfire
@${CHGRP} -R games ${PREFIX}/var/crossfire
.include <bsd.port.mk>
|