freebsd-ports/games/galaxyhack/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

73 lines
1.8 KiB
Makefile

# New ports collection makefile for: galaxyhack
# Date created: 10 Aug 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= galaxyhack
PORTVERSION= 1.69
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= AI script based strategy game
LIB_DEPENDS= boost_filesystem.3:${PORTSDIR}/devel/boost \
freetype.9:${PORTSDIR}/print/freetype2
USE_BZIP2= yes
USE_DOS2UNIX= yes
USE_GMAKE= yes
USE_SDL= gfx image mixer sdl
WRKSRC= ${WRKDIR}/${PORTNAME}/src
OPTIONS= FLEETS "Install additional fleets" off \
OPTIMIZED_CFLAGS "Enable compilation optimizations" on
ALL_TARGET= ${PORTNAME}
SUB_FILES= ${PORTNAME}-sh
FLEETS_FILE= gh_fleets_170406.zip
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
IGNORE= needs isspace() function in libc (FreeBSD >= 5.X)
.endif
.if defined(WITH_FLEETS)
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
DISTFILES+= ${FLEETS_FILE}
PLIST_SUB+= FLEETS=""
.else
PLIST_SUB+= FLEETS="@comment "
.endif
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
MAKE_ENV+= OPTIMIZED_CFLAGS=YES
.endif
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${PREFIX}/bin/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../settings.dat ${DATADIR}
.for d in fleets gamedata graphics music standardpictures
${CP} -R ${WRKSRC}/../${d} ${DATADIR}
.endfor
.if defined(WITH_FLEETS)
@${UNZIP_CMD} -o ${_DISTDIR}/${FLEETS_FILE} -d ${DATADIR}/fleets
.endif
post-install:
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
@${FIND} ${DATADIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} ${SHAREMODE}
@${FIND} ${DATADIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} ${BINMODE}
.include <bsd.port.post.mk>