mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
a7c34aed71
- pet porlint PR: ports/98933 Submitted by: maintainer
65 lines
1.7 KiB
Makefile
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
|
|
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>
|