freebsd-ports/games/evilfinder/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

65 lines
1.7 KiB
Makefile

# New ports collection makefile for: evilfinder
# Date created: 11 June 2003
# Whom: Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= evilfinder
PORTVERSION= 1.00
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://lcamtuf.coredump.cx/
DISTNAME= ef
EXTRACT_SUFX= .tgz
MAINTAINER= spam@rm-rf.kiev.ua
COMMENT= Numerologically determine the evilness of things
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS= WRAPPER "Build with evilfinder wrapper" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_WRAPPER)
RUN_DEPENDS+= lynx:${PORTSDIR}/www/lynx
PLIST_SUB+= WRAPPER=""
.else
PLIST_SUB+= WRAPPER="@comment "
.endif
pre-everything::
.if !defined(WITHOUT_WRAPPER)
@${ECHO_MSG} "********************************************"
@${ECHO_MSG} "Define WITHOUT_WRAPPER to build without the"
@${ECHO_MSG} "\"evilfinder\" wrapper, which makes the port"
@${ECHO_MSG} "a web-oriented application."
@${ECHO_MSG} "********************************************"
.endif
post-patch:
@${REINPLACE_CMD} -e '/^CFLAGS/d' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e "s|evilnumbers.dat|${DATADIR}/evilnumbers.dat|; \
s|./shuffle|${PREFIX}/bin/shuffle|" \
${WRKSRC}/ef.c
.if !defined(WITHOUT_WRAPPER)
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
s|%%LOCALBASE%%|${LOCALBASE}|" \
${FILESDIR}/evilfinder > ${WRKSRC}/evilfinder
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ef ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/shuffle ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/evilnumbers.dat ${DATADIR}
.if !defined(WITHOUT_WRAPPER)
${INSTALL_SCRIPT} ${WRKSRC}/evilfinder ${PREFIX}/bin
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>