freebsd-ports/games/searchandrescue/Makefile
Marcus von Appen fbd0197639 - Update devel/sdl12 to 1.2.15
- 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
2012-02-18 10:18:33 +00:00

48 lines
1.4 KiB
Makefile

# New ports collection makefile for: SearchAndRescue
# Date created: 10 June 2010
# Whom: Jesse Smith <jessefrgsmith@yahoo.ca>
#
# $FreeBSD$
#
PORTNAME= SearchAndRescue
PORTVERSION= 1.4.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME:L}/Program/
MAINTAINER= jessefrgsmith@yahoo.ca
COMMENT= A flight simulator in which the player rescues people
RUN_DEPENDS= ${LOCALBASE}/share/searchandrescue/human.ini:${PORTSDIR}/games/searchandrescue-data
USE_SDL= mixer
USE_XORG= x11 xau xdmcp xext xmu xpm xxf86vm
USE_GL= glu
WRKSRC= ${WRKDIR}/${PORTNAME:L}_${PORTVERSION}
PLIST_FILES= bin/${PORTNAME} \
${DESKTOPDIR:S,${PREFIX}/,,}/${PORTNAME}.desktop \
share/pixmaps/${PORTNAME}.xpm
PLIST_DIRS= ${DESKTOPDIR:S,${PREFIX}/,,}
#Respect PREFIX, LOCALBASE, CC, etc.
post-patch:
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
-e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/sar/config.h
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,/usr/local,${LOCALBASE},g' \
-e 's,/usr/X11R6,${LOCALBASE},g' \
-e '/^CFLAGS = /s,=,= ${CFLAGS},g' \
-e '/^CC = /s, = .*, = ${CC},' \
-e '/^CPP = /s, = .*, = ${CXX},' \
${WRKSRC}/sar/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sar/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/sar/icons/${PORTNAME}.xpm ${PREFIX}/share/pixmaps
.include <bsd.port.mk>