1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/games/starfighter/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: starfighter
# Date created: 13 Jul 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= starfighter
DISTVERSION= 1.1-1
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.parallelrealities.co.uk/download.php?type=zip&file=
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Chris Bainfield is fighting for the freedom of the galaxy
FETCH_BEFORE_ARGS+= -o ${DISTNAME}${EXTRACT_SUFX}
USE_GMAKE= yes
USE_SDL= image mixer sdl
WRKSRC= ${WRKDIR}/${PORTNAME}-1.1
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
MAKEFILE= makefile
MAKE_ENV= CXX="${CXX}"
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${DOCSDIR}
@${RM} ${WRKSRC}/docs/LICENSE
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
.endif
.include <bsd.port.pre.mk>
post-patch:
# Fix Makefile.
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \
s|\(-Wall\)|${CFLAGS} \1|' \
${WRKSRC}/${MAKEFILE}
# Fix SDL include statement.
@${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|' \
${WRKSRC}/code/*.cpp ${WRKSRC}/code/*.h
# Enable/disable compilation optimizations.
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/${MAKEFILE}
.endif
.include <bsd.port.post.mk>