2013-02-07 15:40:12 +01:00
|
|
|
# Created by: Matthew Hunt <mph@FreeBSD.org>
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1998-05-08 04:38:34 +02:00
|
|
|
|
2013-02-07 15:40:12 +01:00
|
|
|
PORTNAME= jzip
|
|
|
|
PORTVERSION= 2.0.1g
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= LOCAL/mph
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
1998-05-08 04:38:34 +02:00
|
|
|
|
2013-02-07 15:40:12 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Text-mode Infocom game interpreter
|
1998-05-08 04:38:34 +02:00
|
|
|
|
2013-02-07 15:40:12 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
1998-05-08 04:38:34 +02:00
|
|
|
|
2016-02-04 22:40:57 +01:00
|
|
|
USES= ncurses zip
|
1998-05-08 04:38:34 +02:00
|
|
|
|
2013-02-07 15:40:12 +01:00
|
|
|
CPPFLAGS+= -DPOSIX -DHAVE_GETOPT
|
|
|
|
|
|
|
|
PORTDOCS= Jzip.doc
|
2013-11-02 14:59:11 +01:00
|
|
|
PLIST_FILES= bin/jzip man/man1/jzip.1.gz
|
2013-02-07 15:40:12 +01:00
|
|
|
|
2013-11-02 14:59:11 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2013-02-07 15:40:12 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^CC =|CC ?=| ; \
|
|
|
|
s|^CFLAGS =|CFLAGS +=| ; \
|
|
|
|
s|-DPOSIX|$${CPPFLAGS}| ; \
|
|
|
|
s|^LDFLAGS|#LDFLAGS| ; \
|
2016-02-04 22:40:57 +01:00
|
|
|
s|-lcurses|-lncurses|' ${WRKSRC}/Makefile
|
2013-02-07 15:40:12 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^void main|int main|' ${WRKSRC}/jzexe.c
|
1998-06-14 04:26:37 +02:00
|
|
|
|
1998-05-08 04:38:34 +02:00
|
|
|
do-install:
|
2013-11-02 14:59:11 +01:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} jzip ${STAGEDIR}${PREFIX}/bin)
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} jzip.1 ${STAGEDIR}${MANPREFIX}/man/man1)
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} Jzip.doc ${STAGEDIR}${DOCSDIR})
|
1998-05-08 04:38:34 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|