1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/games/highmoon/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

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: HighMoon
# Date created: 20 Jan 2005
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= highmoon
PORTVERSION= 1.2.4
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://highmoon.gerdsmeier.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= Duel in the universe
WRKSRC= ${WRKDIR}/HighMoon
USE_SDL= image sdl
USE_GCC= 3.4+
USE_GMAKE= yes
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}"
CXXFLAGS+= `${SDL_CONFIG} --cflags`
LDFLAGS= `${SDL_CONFIG} --libs` -lSDL_image
post-patch:
@${FIND} ${WRKSRC}/src -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|SDL/SDL|SDL|g ; \
s|^#define __ENV|//#define __ENV|g ; \
s|"gfx/|"${DATADIR}/gfx/|g ; \
s|"snd/|"${DATADIR}/snd/|g ; \
s|-round(|-rint(|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ufo ${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${DATADIR}/gfx
${INSTALL_DATA} ${WRKSRC}/gfx/* ${DATADIR}/gfx
@${MKDIR} ${DATADIR}/snd
${INSTALL_DATA} ${WRKSRC}/snd/* ${DATADIR}/snd
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>