2004-01-25 23:02:00 +00:00
|
|
|
# New ports collection makefile for: urban
|
|
|
|
# Date created: 25 Jan 2004
|
|
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-09-02 12:12:49 +00:00
|
|
|
PORTNAME= urban
|
|
|
|
PORTVERSION= 1.5.3
|
2005-12-12 19:27:27 +00:00
|
|
|
PORTREVISION= 3
|
2005-09-02 12:12:49 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://urban.bengburken.net/files/linux/
|
|
|
|
DIST_SUBDIR= urban
|
2004-01-25 23:02:00 +00:00
|
|
|
|
2005-09-02 12:12:49 +00:00
|
|
|
MAINTAINER= jylefort@FreeBSD.org
|
|
|
|
COMMENT= A bloody, violent sidescrolling shoot-em-up
|
2004-01-25 23:02:00 +00:00
|
|
|
|
2005-09-02 12:12:49 +00:00
|
|
|
LIB_DEPENDS= ggi:${PORTSDIR}/graphics/libggi \
|
|
|
|
mikmod:${PORTSDIR}/audio/libmikmod
|
2004-01-25 23:02:00 +00:00
|
|
|
|
2005-09-02 12:12:49 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2005-12-12 19:27:27 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DGG_NEED_OLD_INTTYPES" LDFLAGS="-L${LOCALBASE}/lib"
|
2005-09-02 12:12:49 +00:00
|
|
|
CONFIGURE_ARGS= --with-global-highscore=/var/games/urban.scores
|
2004-01-25 23:02:00 +00:00
|
|
|
|
2005-09-02 12:12:49 +00:00
|
|
|
PORTDOCS= AUTHORS CHEAT NEWS README README.swe
|
|
|
|
|
|
|
|
OPTIONS= CHEAT_CODES "Enable cheat codes" off
|
2004-01-25 23:02:00 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_CHEAT_CODES)
|
2005-09-02 12:12:49 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-cheat-codes
|
2004-01-25 23:02:00 +00:00
|
|
|
.endif
|
|
|
|
|
2005-09-02 12:12:49 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-D_REENTRANT|${PTHREAD_CFLAGS}|; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|; \
|
|
|
|
/^LIBS=/ s|-lggi|& ${PTHREAD_LIBS}|' ${WRKSRC}/configure
|
|
|
|
|
2004-01-25 23:02:00 +00:00
|
|
|
post-install:
|
|
|
|
${CHGRP} games ${PREFIX}/bin/urban
|
|
|
|
${CHMOD} g+s ${PREFIX}/bin/urban
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2005-09-02 12:12:49 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
2004-01-25 23:02:00 +00:00
|
|
|
.endif
|
2005-01-22 09:43:01 +00:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2004-01-25 23:02:00 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|