blob: be18ea63df2294b9b3eabd2c9a082675a34c21d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Created by: Matthew Hunt <mph@FreeBSD.org>
# $FreeBSD$
PORTNAME= jzip
PORTVERSION= 2.0.1g
CATEGORIES= games
MASTER_SITES= LOCAL/mph
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Text-mode Infocom game interpreter
NO_WRKSUBDIR= yes
USE_ZIP= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -DPOSIX -DHAVE_GETOPT
MAN1= jzip.1
PORTDOCS= Jzip.doc
PLIST_FILES= bin/jzip
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e \
's|^CC =|CC ?=| ; \
s|^CFLAGS =|CFLAGS +=| ; \
s|-DPOSIX|$${CPPFLAGS}| ; \
s|^LDFLAGS|#LDFLAGS| ; \
s|-lcurses|-ltermcap|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|^void main|int main|' ${WRKSRC}/jzexe.c
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} jzip ${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_DATA} jzip.1 ${MANPREFIX}/man/man1)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} Jzip.doc ${DOCSDIR})
.endif
.include <bsd.port.mk>
|