2005-10-16 06:06:43 +02:00
|
|
|
# New ports collection makefile for: Scourge
|
|
|
|
# Date created: 2005-10-08
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scourge
|
2006-09-15 18:20:12 +02:00
|
|
|
PORTVERSION= 0.15
|
2006-09-20 13:21:59 +02:00
|
|
|
PORTREVISION= 1
|
2005-10-16 06:06:43 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2006-06-17 20:05:19 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2006-09-15 18:20:12 +02:00
|
|
|
DISTNAME= ${PORTNAME:S/$/-src/}-${PORTVERSION}
|
2006-06-17 20:05:19 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2005-10-16 06:06:43 +02:00
|
|
|
|
2006-07-23 04:45:24 +02:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2005-10-16 06:06:43 +02:00
|
|
|
COMMENT= S.C.O.U.R.G.E. is a rogue-like game
|
|
|
|
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
|
2006-06-17 20:05:19 +02:00
|
|
|
RUN_DEPENDS= ${DATADIR}/world/gui.txt:${PORTSDIR}/games/scourge-data
|
2005-10-16 06:06:43 +02:00
|
|
|
|
2005-11-06 15:24:27 +01:00
|
|
|
USE_GL= yes
|
2005-10-16 06:06:43 +02:00
|
|
|
USE_SDL= sdl mixer net
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2006-03-18 15:17:27 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_LIBS}
|
2005-11-06 15:24:27 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
2006-12-01 15:15:53 +01:00
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2005-11-06 15:24:27 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2005-10-16 06:06:43 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-data-dir=${DATADIR}
|
|
|
|
|
2006-09-15 18:20:12 +02:00
|
|
|
SUB_FILES= pkg-message
|
2006-06-17 20:05:19 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
2006-09-15 18:20:12 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2006-06-17 20:05:19 +02:00
|
|
|
|
2006-09-15 18:20:12 +02:00
|
|
|
OPTIONS= DEBUG "Produce an executable with debugging symbols" off \
|
|
|
|
EDITOR "Install scourge editor" on
|
2005-10-16 06:06:43 +02:00
|
|
|
|
2006-06-17 20:05:19 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-15 18:20:12 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= Some dependencies do not compile on 4.x
|
|
|
|
.endif
|
|
|
|
|
2005-10-16 06:06:43 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2006-09-15 18:20:12 +02:00
|
|
|
.if !defined(WITHOUT_EDITOR)
|
|
|
|
USE_WX= 2.6+
|
|
|
|
WX_COMPS= wx contrib
|
2006-12-01 15:15:53 +01:00
|
|
|
WANT_UNICODE= yes
|
2006-09-15 18:20:12 +02:00
|
|
|
PLIST_FILES+= bin/${PORTNAME}-editor
|
|
|
|
HAVE_EDITOR= true
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-editor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2006-12-01 15:15:53 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG:T} |g' ${WRKSRC}/configure
|
2006-09-15 18:20:12 +02:00
|
|
|
|
2006-03-18 15:17:27 +01:00
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/
|
2006-09-15 18:20:12 +02:00
|
|
|
.if defined(HAVE_EDITOR)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/tools/tools ${PREFIX}/bin/${PORTNAME}-editor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-03-18 15:17:27 +01:00
|
|
|
|
2006-06-17 20:05:19 +02:00
|
|
|
.include <bsd.port.post.mk>
|