freebsd-ports/russian/fortuneru/Makefile
Pete Fritchman 6285db09ce - update to 0.2
- instead of echoing instructions from the Makefile, use a pkg-message
- re-do the install of this port (now has more than 3 fortunes)
- don't check for the games distribution in the Makefile, check in a
  pkg-install script
- install fortunes to ${PREFX}/share/games/fortune/rus, instead of just
  ${PREFIX}/share/games/fortune (this way other languages can have their
  own subdirectory).

PR:		38489
Submitted by:	Oleksandr Bezpalko <bestia@iptcom.net> (partially)
2002-06-02 03:47:27 +00:00

39 lines
1 KiB
Makefile

# New ports collection makefile for: fortuneru
# Date created: 26-09-2001
# Whom: bestia@iptcom.net
#
# $FreeBSD$
#
PORTNAME= fortuneru
PORTVERSION= 0.2
CATEGORIES= russian
MASTER_SITES= ftp://de22.kiev.ua/pub/files/
DISTNAME= fortune.ru-${PORTVERSION}
MAINTAINER= bestia@iptcom.net
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
STRCMD= /usr/games/strfile
FORTUNES= 4hf aphorizms beer-murphy enciklopedy fomenko fortune_rus \
guberman marazm maxim_and_fedor murphy police speed-info \
strug usenet verse windows_errors
do-install:
@${SETENV} STRCMD=${STRCMD} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
${SED} -e "s,%%PREFIX%%,${PREFIX}," < ${FILESDIR}/pkg-message.in > \
${PKGMESSAGE}
@${MKDIR} ${PREFIX}/share/games/fortune/rus
.for fortune in ${FORTUNES}
${INSTALL_DATA} ${WRKSRC}/${fortune} ${PREFIX}/share/games/fortune/rus
.endfor
.for fortune in ${FORTUNES}
${STRCMD} ${PREFIX}/share/games/fortune/rus/${fortune} \
>/dev/null 2>/dev/null
.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>