2004-06-12 16:11:49 +02:00
|
|
|
# New ports collection makefile for: netpanzer
|
|
|
|
# Date created: 29 May 2004
|
|
|
|
# Whom: Guido Falsi <mad@madpilot.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= netpanzer
|
2007-04-15 21:07:27 +02:00
|
|
|
PORTVERSION= 0.8.1
|
2009-07-31 15:57:52 +02:00
|
|
|
PORTREVISION= 4
|
2004-06-12 16:11:49 +02:00
|
|
|
CATEGORIES= games
|
2007-04-15 21:07:27 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS}/${PORTNAME}/
|
2004-06-12 16:11:49 +02:00
|
|
|
|
|
|
|
MAINTAINER= mad@madpilot.net
|
2005-03-13 12:33:54 +01:00
|
|
|
COMMENT= Real time, isometric view, tank multiplayer strategy game
|
2004-06-12 16:11:49 +02:00
|
|
|
|
2009-04-04 14:05:22 +02:00
|
|
|
LIB_DEPENDS= physfs.1:${PORTSDIR}/devel/physfs
|
2004-06-12 16:11:49 +02:00
|
|
|
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
|
2006-09-23 00:15:14 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/netpanzer/wads/netp.act:${PORTSDIR}/games/netpanzer-data
|
2004-06-12 16:11:49 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --with-libphysfs=${LOCALBASE} --without-wx-config
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" \
|
|
|
|
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_SDL= sdl net mixer image ttf
|
|
|
|
USE_GNOME= libxml2
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@for ff in `${FIND} ${WRKDIR} -type f -name '*.[ch]pp' -exec ${GREP} -q stdint.h {} \; -print`; do \
|
|
|
|
${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' $${ff}; \
|
|
|
|
done
|
2005-03-13 12:33:54 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|##DOCSDIR##|${DOCSDIR}|" ${WRKSRC}/Jamconfig.in
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
post-configure:
|
2008-08-28 20:58:30 +02:00
|
|
|
${REINPLACE_CMD} -e '/InstallDoc/d' ${WRKSRC}/Jamfile
|
2005-03-13 12:33:54 +01:00
|
|
|
.endif
|
2004-06-12 16:11:49 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} jam)
|
|
|
|
|
|
|
|
do-install:
|
2006-09-23 00:15:14 +02:00
|
|
|
@(cd ${INSTALL_WRKSRC} && jam ${INSTALL_TARGET})
|
2004-06-12 16:11:49 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|