2005-10-04 17:38:54 +02:00
|
|
|
# New ports collection makefile for: galaxyhack
|
|
|
|
# Date created: 10 Aug 2005
|
|
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= galaxyhack
|
2006-10-08 20:44:47 +02:00
|
|
|
PORTVERSION= 1.74
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 8
|
2005-10-04 17:38:54 +02:00
|
|
|
CATEGORIES= games
|
2006-10-08 20:44:47 +02:00
|
|
|
MASTER_SITES= SF
|
2006-06-11 02:07:39 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2005-10-04 17:38:54 +02:00
|
|
|
|
2006-04-09 15:08:16 +02:00
|
|
|
MAINTAINER= alepulver@FreeBSD.org
|
2005-10-04 17:38:54 +02:00
|
|
|
COMMENT= AI script based strategy game
|
|
|
|
|
2009-07-28 13:45:08 +02:00
|
|
|
LIB_DEPENDS= boost_filesystem.4:${PORTSDIR}/devel/boost-libs \
|
2005-10-04 17:38:54 +02:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2006-04-18 19:59:50 +02:00
|
|
|
USE_DOS2UNIX= yes
|
2005-10-04 17:38:54 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_SDL= gfx image mixer sdl
|
2006-06-28 23:59:26 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
2005-10-04 17:38:54 +02:00
|
|
|
|
2006-06-11 02:07:39 +02:00
|
|
|
OPTIONS= FLEETS "Install additional fleets" off \
|
|
|
|
OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
2005-10-04 17:38:54 +02:00
|
|
|
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
SUB_FILES= ${PORTNAME}-sh
|
2006-10-08 20:44:47 +02:00
|
|
|
FLEETS_FILE= gh_fleets_020906.zip
|
2006-06-11 02:07:39 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.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
|
2005-10-04 17:38:54 +02:00
|
|
|
|
|
|
|
do-install:
|
2006-04-18 19:59:50 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${PREFIX}/bin/${PORTNAME}
|
2006-06-28 23:59:26 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
|
2006-04-18 19:59:50 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
2006-06-28 23:59:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../settings.dat ${DATADIR}
|
2006-06-11 02:07:39 +02:00
|
|
|
.for d in fleets gamedata graphics music standardpictures
|
2006-06-28 23:59:26 +02:00
|
|
|
${CP} -R ${WRKSRC}/../${d} ${DATADIR}
|
2005-10-04 17:38:54 +02:00
|
|
|
.endfor
|
2006-06-11 02:07:39 +02:00
|
|
|
.if defined(WITH_FLEETS)
|
2006-10-08 20:44:47 +02:00
|
|
|
@${UNZIP_CMD} -o ${DISTDIR}/${FLEETS_FILE} -x "*/CVS/*" "*/.svn/*" \
|
|
|
|
-d ${DATADIR}
|
2006-06-11 02:07:39 +02:00
|
|
|
.endif
|
2005-10-04 17:38:54 +02:00
|
|
|
|
|
|
|
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>
|