Date: Thu, 7 Feb 2013 14:40:12 +0000 (UTC) From: Martin Wilke <miwi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311853 - in head/games/jzip: . files Message-ID: <201302071440.r17EeCOk084780@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: miwi Date: Thu Feb 7 14:40:12 2013 New Revision: 311853 URL: http://svnweb.freebsd.org/changeset/ports/311853 Log: - Fix build with clang - Trim header - Add MAKE_JOBS_SAFE PR: 175045 Submitted by: Ports Fury Deleted: head/games/jzip/files/patch-aa head/games/jzip/pkg-plist Modified: head/games/jzip/Makefile (contents, props changed) Modified: head/games/jzip/Makefile ============================================================================== --- head/games/jzip/Makefile Thu Feb 7 14:38:10 2013 (r311852) +++ head/games/jzip/Makefile Thu Feb 7 14:40:12 2013 (r311853) @@ -1,32 +1,44 @@ -# New ports collection makefile for: jzip -# Date created: 7 May 1998 -# Whom: Matthew Hunt <mph@FreeBSD.org> -# +# Created by: Matthew Hunt <mph@FreeBSD.org> # $FreeBSD$ -# -PORTNAME= jzip -PORTVERSION= 2.0.1g -CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= mph -DISTNAME= jzip201g - -MAINTAINER= ports@FreeBSD.org -COMMENT= A text-mode Infocom game interpreter - -USE_ZIP= yes - -NO_WRKSUBDIR= yes - -MAN1= jzip.1 +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: - ${INSTALL_PROGRAM} ${WRKSRC}/jzip ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/jzip.1 ${PREFIX}/man/man1 -.if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/jzip - ${INSTALL_DATA} ${WRKSRC}/Jzip.doc ${PREFIX}/share/doc/jzip + (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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302071440.r17EeCOk084780>