2005-10-16 04:06:43 +00:00
|
|
|
# New ports collection makefile for: Scourge
|
|
|
|
# Date created: 2005-10-08
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scourge
|
2009-01-16 13:20:08 +00:00
|
|
|
PORTVERSION= 0.21.1
|
2010-09-15 18:35:24 +00:00
|
|
|
PORTREVISION= 6
|
2005-10-16 04:06:43 +00:00
|
|
|
CATEGORIES= games
|
2007-10-05 06:47:01 +00:00
|
|
|
MASTER_SITES= SF
|
2006-12-02 02:19:33 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/$/.src/}
|
2006-06-17 18:05:19 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2005-10-16 04:06:43 +00:00
|
|
|
|
2006-07-23 02:45:24 +00:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2005-10-16 04:06:43 +00:00
|
|
|
COMMENT= S.C.O.U.R.G.E. is a rogue-like game
|
|
|
|
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
|
2007-08-18 13:21:09 +00:00
|
|
|
RUN_DEPENDS= ${DATADIR}/config/scourge.cfg:${PORTSDIR}/games/scourge-data
|
2007-01-30 00:13:44 +00:00
|
|
|
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:env automake:env
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_GL= gl
|
2008-05-20 00:05:14 +00:00
|
|
|
USE_SDL= sdl image mixer net ttf
|
2005-10-16 04:06:43 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_LIBS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2005-10-16 04:06:43 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-data-dir=${DATADIR}
|
|
|
|
|
2006-09-15 16:20:12 +00:00
|
|
|
SUB_FILES= pkg-message
|
2006-06-17 18:05:19 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
2006-09-15 16:20:12 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2006-06-17 18:05:19 +00:00
|
|
|
|
2007-02-01 20:14:04 +00:00
|
|
|
OPTIONS= DEBUG "Produce an executable with debugging symbols" off
|
2005-10-16 04:06:43 +00:00
|
|
|
|
2006-06-17 18:05:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-10-16 04:06:43 +00:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2007-09-06 05:30:50 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|GLvoid|void|g' ${WRKSRC}/src/sdlhandler.cpp ${WRKSRC}/src/sdlhandler.h
|
|
|
|
|
2007-08-18 13:21:09 +00:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${AUTORECONF} -i
|
|
|
|
|
2006-03-18 14:17:27 +00:00
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/
|
2006-09-15 16:20:12 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-03-18 14:17:27 +00:00
|
|
|
|
2006-06-17 18:05:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|