1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/games/fillets-ng/Makefile
Marcus von Appen 3c5a29be3d - Update graphics/sdl_ttf to version 2.0.10
- Bump portrevisions for all ports depending on graphics/sdl_ttf
- Update Mk/bsd.sdl.mk for the new shared library version.
2010-08-11 06:57:34 +00:00

72 lines
2.0 KiB
Makefile

# New ports collection makefile for: fillets-ng
# Date created: 11 Oct 2005
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= fillets-ng
PORTVERSION= 0.9.3
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/fillets/Fish%20Fillets%20-%20Next%20Generation/${PORTVERSION}:source \
SF/fillets/Fish%20Fillets%20-%20Next%20Generation/${DATAVERSION}:data
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:source \
${PORTNAME}-data-${DATAVERSION}${EXTRACT_SUFX}:data
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= A wonderful puzzle game
USE_SDL= sdl mixer image ttf
USE_LUA= 5.1
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LUA_INCDIR}" LDFLAGS="-L${LUA_LIBDIR}"
CONFIGURE_ARGS= --datadir="${DATADIR}" --with-lua="${LOCALBASE}"
MAKE_JOBS_SAFE= yes
PORTDOCS= *
DATAVERSION= 0.9.2
ONLY_FOR_ARCHS= i386 amd64
MAN6= fillets.6
DESKTOP_ENTRIES="Fish Fillets - Next Generation" \
"A wonderful puzzle game" \
"${DATADIR}/images/icon.png" \
"fillets-ng" \
"Game;LogicGame;" \
false
OPTIONS= FRIBIDI "Enable fribidi support" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_FRIBIDI)
LIB_DEPENDS+= fribidi.3:${PORTSDIR}/converters/fribidi
.endif
post-patch:
@${REINPLACE_CMD} -e '/LIBS/ s|-llualib[50.]*||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^\(AM_CPPFLAGS.*(datadir)\)/.*|\1"\\"|' \
${WRKSRC}/src/gengine/Makefile.in
.if defined(WITHOUT_FRIBIDI)
@${REINPLACE_CMD} -e \
's|FRIBIDI_CFLAGS=$$pkg_cv_FRIBIDI_CFLAGS||; s|FRIBIDI_LIBS=$$pkg_cv_FRIBIDI_LIBS||; s|have_fribidi="yes"|have_fribidi="no"|' \
${WRKSRC}/configure
.endif
post-install:
${MKDIR} ${DATADIR}
cd ${WRKDIR}/${PORTNAME}-data-${DATAVERSION} && \
${COPYTREE_SHARE} "font images music script sound" ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
@cd ${WRKDIR}/${PORTNAME}-data-${DATAVERSION}/doc; \
${COPYTREE_SHARE} "*" ${DOCSDIR}
.endif
.include <bsd.port.post.mk>