1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/games/fillets-ng/Makefile
Jimmy Olgeni 5e38556079 Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories G-I.

CR:		D201
Approved by:	portmgr (bapt)
2014-06-13 07:36:27 +00:00

66 lines
1.8 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= fillets-ng
PORTVERSION= 1.0.1
PORTREVISION= 3
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= Wonderful puzzle game
USE_SDL= sdl mixer image ttf
USES= gmake lua:51
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir="${DATADIR}"
CONFIGURE_ENV= LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" \
LUA_CFLAGS="-I${LUA_INCDIR}"
PLIST_FILES= bin/fillets man/man6/fillets.6.gz
PORTDOCS= *
PORTDATA= *
DATAVERSION= 1.0.0
ONLY_FOR_ARCHS= i386 amd64
DESKTOP_ENTRIES="Fish Fillets - Next Generation" \
"A wonderful puzzle game" \
"${DATADIR}/images/icon.png" \
"fillets" \
"Game;LogicGame;" \
false
OPTIONS_DEFINE= DOCS FRIBIDI
OPTIONS_DEFAULT=FRIBIDI
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MFRIBIDI}
LIB_DEPENDS+= libfribidi.so:${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 ! ${PORT_OPTIONS:MFRIBIDI}
@${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:
cd ${WRKDIR}/${PORTNAME}-data-${DATAVERSION} && \
${COPYTREE_SHARE} "font images music script sound" ${STAGEDIR}${DATADIR}/
cd ${WRKDIR}/${PORTNAME}-data-${DATAVERSION}/doc && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.post.mk>