1999-09-24 17:36:48 +00:00
|
|
|
# New ports collection makefile for: sl
|
|
|
|
# Date created: 17 Sep 1999
|
|
|
|
# Whom: HIYAMA Takeshi <th@cis.ibaraki.ac.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 12:28:40 +00:00
|
|
|
PORTNAME= sl
|
2003-09-29 04:42:38 +00:00
|
|
|
PORTVERSION= 3.03${SLPATCHVERSION}
|
2000-04-14 12:28:40 +00:00
|
|
|
CATEGORIES= games
|
2000-08-11 01:23:53 +00:00
|
|
|
MASTER_SITES= http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/
|
2000-04-14 12:28:40 +00:00
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
EXTRACT_SUFX= .tar
|
1999-09-24 17:36:48 +00:00
|
|
|
|
2003-09-29 04:42:38 +00:00
|
|
|
.if defined(WITH_PERSISTENT)
|
|
|
|
SLPATCHVERSION= -5p1
|
|
|
|
PATCH_SITES= http://www.linet.gr.jp/~izumi/sl/
|
|
|
|
PATCHFILES= sl5-1.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
.endif
|
|
|
|
|
2001-07-14 05:53:14 +00:00
|
|
|
MAINTAINER= hym@cocoa.freemail.ne.jp
|
2003-02-21 12:06:51 +00:00
|
|
|
COMMENT= A steam locomotive runs across the screen if you type "sl" instead of "ls"
|
1999-09-24 17:36:48 +00:00
|
|
|
|
2001-01-16 17:33:20 +00:00
|
|
|
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
|
1999-09-24 17:36:48 +00:00
|
|
|
|
2001-01-16 17:33:20 +00:00
|
|
|
ALL_TARGET= sl
|
|
|
|
MAN1= sl.1
|
|
|
|
MANLANG= ja
|
1999-09-24 17:36:48 +00:00
|
|
|
|
2003-09-29 04:42:38 +00:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_PERSISTENT)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} " If you want to apply additional patch to make sl more annoying,"
|
|
|
|
@${ECHO_MSG} " hit Ctrl-C right now and use \"make WITH_PERSISTENT=yes\""
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${CC} ${CFLAGS} -I${WRKSRC} -o ${WRKSRC}/sl ${WRKSRC}/sl.c -lcurses -ltermcap
|
|
|
|
|
1999-09-24 17:36:48 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sl ${PREFIX}/bin
|
|
|
|
${MV} ${WRKSRC}/sl.1 ${WRKSRC}/sl.man
|
|
|
|
nkf -e ${WRKSRC}/sl.man > ${WRKSRC}/sl.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/sl.1 ${PREFIX}/man/ja/man1
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/sl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sl.txt ${PREFIX}/share/doc/sl
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|