1999-04-02 04:39:34 +00:00
|
|
|
# New ports collection makefile for: fortuneit
|
|
|
|
# Version required: fortune.it-1.51
|
|
|
|
# Date created: 25-01-1999
|
1999-11-12 21:04:56 +00:00
|
|
|
# Whom: gmarco@giovannelli.it
|
1999-04-02 04:39:34 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1999-04-02 04:39:34 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= fortune.it-1.51
|
|
|
|
PKGNAME= fortuneit-1.51
|
|
|
|
CATEGORIES= misc
|
|
|
|
MASTER_SITES= http://www.giovannelli.it/~gmarco/files/
|
|
|
|
|
1999-11-12 21:04:56 +00:00
|
|
|
MAINTAINER= gmarco@giovannelli.it
|
1999-04-02 04:39:34 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
STRCMD= /usr/games/strfile
|
|
|
|
|
|
|
|
.if defined(INSTALL_OFFENSIVE)
|
|
|
|
PLIST= ${PKGDIR}/PLIST.off
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if !defined(INSTALL_OFFENSIVE)
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "If you want to install potentially offensive italian"
|
|
|
|
@${ECHO_MSG} "fortunes \"make INSTALL_OFFENSIVE=yes\""
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Potentially offensive fortunes will be installed"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/games
|
|
|
|
@${MKDIR} ${PREFIX}/share/games/fortune
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/italia ${PREFIX}/share/games/fortune
|
|
|
|
.if defined(INSTALL_OFFENSIVE)
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/zozzital ${PREFIX}/share/games/fortune
|
|
|
|
.endif
|
|
|
|
|
1999-04-18 22:52:37 +00:00
|
|
|
pre-install:
|
1999-04-18 22:54:11 +00:00
|
|
|
.if !exists(${STRCMD})
|
1999-04-18 22:52:37 +00:00
|
|
|
@ ${ECHO_MSG} "Please install the games distribution"
|
|
|
|
@ exit 1
|
|
|
|
.endif
|
|
|
|
|
1999-04-02 04:39:34 +00:00
|
|
|
post-install:
|
|
|
|
@${STRCMD} ${PREFIX}/share/games/fortune/italia
|
|
|
|
.if defined(INSTALL_OFFENSIVE)
|
|
|
|
@${STRCMD} ${PREFIX}/share/games/fortune/zozzital
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Usage:"
|
|
|
|
@${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/italia"
|
|
|
|
.if defined(INSTALL_OFFENSIVE)
|
|
|
|
@${ECHO_MSG} "or"
|
|
|
|
@${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/zozzital"
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|