1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/games/glob2/Makefile
2007-04-13 19:15:18 +00:00

54 lines
1.6 KiB
Makefile

# New ports collection makefile for: glob2
# Date created: Wed 21 apr 2004
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= glob2
PORTVERSION= 0.8.22
CATEGORIES= games
MASTER_SITES= http://dl.sv.nongnu.org/releases/glob2/${PORTVERSION}/:src \
${MASTER_SITE_LOCAL:S|$|:data|:S|%SUBDIR%|${MASTER_SITE_SUBDIR}|}
MASTER_SITE_SUBDIR= thierry
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:src \
${PORTNAME}-data_from_CVS-${PORTVERSION}${EXTRACT_SUFX}:data
MAINTAINER= thierry@FreeBSD.org
COMMENT= Globulation 2 - a free and innovative strategy game
BUILD_DEPENDS= ${LOCALBASE}/include/boost/rational.hpp:${PORTSDIR}/devel/boost
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
speex.1:${PORTSDIR}/audio/speex \
fribidi.0:${PORTSDIR}/converters/fribidi\
freetype.9:${PORTSDIR}/print/freetype2
USE_SDL= image net sdl ttf
USE_GL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib -L${X11BASE}/lib"
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha"
BROKEN= Does not build on ${ARCH}
.endif
pre-configure:
${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|" \
${WRKSRC}/configure
${REINPLACE_CMD} -e "s|Icon=|Icon=${DATADIR}/pixmaps/|" \
${WRKSRC}/data/glob2.desktop
post-install:
${MKDIR} ${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/data/glob2.desktop ${DESKTOPDIR}
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.post.mk>