1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/games/jzip/Makefile
Martin Wilke c3598a5e7d - Fix build with clang
- Trim header
- Add MAKE_JOBS_SAFE

PR:		175045
Submitted by:	Ports Fury
2013-02-07 14:40:12 +00:00

45 lines
957 B
Makefile

# 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>