fbd0197639
- Update audio/sdl_mixer to 1.2.15 - Update graphics/sdl_image to 1.2.12 - Update graphics/sdl_ttf to 2.0.11 - Update graphics/sdl_gfx to 2.0.23 - Update net/sdl_net to 1.2.8 - Bump PORTREVISIONs on ports that depend on one or more packages due to ABI and shared library version changes - Update Mk/bsd.sdl.mk accordingly for the new shared library versions Tested by: exp-run by pav
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# New ports collection makefile for: Scourge
|
|
# Date created: 2005-10-08
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= scourge
|
|
PORTVERSION= 0.21.1
|
|
PORTREVISION= 7
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/$/.src/}
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= S.C.O.U.R.G.E. is a rogue-like game
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
|
|
RUN_DEPENDS= ${DATADIR}/config/scourge.cfg:${PORTSDIR}/games/scourge-data
|
|
|
|
USE_AUTOTOOLS= autoconf:env automake:env
|
|
USE_GL= gl
|
|
USE_SDL= sdl image mixer net ttf
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_LIBS}
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS= --with-data-dir=${DATADIR}
|
|
|
|
SUB_FILES= pkg-message
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
OPTIONS= DEBUG "Produce an executable with debugging symbols" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|GLvoid|void|g' ${WRKSRC}/src/sdlhandler.cpp ${WRKSRC}/src/sdlhandler.h
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && ${AUTORECONF} -i
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|