From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 17 18:10:13 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1EFEA1065678 for ; Thu, 17 May 2012 18:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2E9C08FC26 for ; Thu, 17 May 2012 18:10:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4HIAAkC099050 for ; Thu, 17 May 2012 18:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4HIAAWN099049; Thu, 17 May 2012 18:10:10 GMT (envelope-from gnats) Resent-Date: Thu, 17 May 2012 18:10:10 GMT Resent-Message-Id: <201205171810.q4HIAAWN099049@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63F7C1065675 for ; Thu, 17 May 2012 18:02:30 +0000 (UTC) (envelope-from tkato432@yahoo.com) Received: from msa106lp.auone-net.jp (msa106lp.auone-net.jp [222.3.140.169]) by mx1.freebsd.org (Postfix) with ESMTP id 2AE098FC15 for ; Thu, 17 May 2012 18:02:30 +0000 (UTC) Received: from localhost.localdomain (ZT028208.ppp.dion.ne.jp [59.128.28.208]) by msa106lp.auone-net.jp (au one net msa) with ESMTP id 033FE23C031 for ; Fri, 18 May 2012 03:02:27 +0900 (JST) Message-Id: <20120518024641.4ade5528.tkato432@yahoo.com> Date: Fri, 18 May 2012 02:46:41 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/168046: textproc/chpp: Fix build on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 18:10:13 -0000 >Number: 168046 >Category: ports >Synopsis: textproc/chpp: Fix build on amd64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 17 18:10:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p5 i386 >Organization: >Environment: >Description: - Fix build on amd64 - Add LICENSE - Add MAKE_JOBS_SAFE - Support COPYTREE_SHARE Remove file: files/patch-ab >How-To-Repeat: >Fix: diff -urN /usr/ports/textproc/chpp/Makefile textproc/chpp/Makefile --- /usr/ports/textproc/chpp/Makefile 2007-07-02 19:18:19.000000000 +0900 +++ textproc/chpp/Makefile 2012-04-21 03:09:59.000000000 +0900 @@ -7,37 +7,57 @@ PORTNAME= chpp PORTVERSION= 0.3.5 +PORTREVISION= 1 CATEGORIES= textproc -MASTER_SITES= http://www.complang.tuwien.ac.at/~schani/chpp/files/ \ +MASTER_SITES= http://www.complang.tuwien.ac.at/schani/chpp/files/ \ http://freebsd.nsu.ru/distfiles/ MAINTAINER= ports@FreeBSD.org COMMENT= Non-intrusive full-featured text preprocessor +LICENSE= GPLv2 + +LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc + +USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --libdir=${PREFIX}/share +MAKE_JOBS_SAFE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib INFO= chpp .include -.if ${ARCH} != "i386" +.if ${ARCH} != "i386" && ${ARCH} != "amd64" BROKEN= Does not compile .endif +post-extract: + @${RM} -f ${WRKSRC}/gc/gc.h + +post-patch: + @${REINPLACE_CMD} -e \ + '/LDADD/s|gc/gc.a|-lgc| ; \ + /LIBOBJS/s|gc/gc.a|| ; \ + s|gc/gc.h||' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e \ + 's|../gc/gc.h||' ${WRKSRC}/builtins/Makefile.in + @${REINPLACE_CMD} -e \ + 's|../../gc/gc.h||' ${WRKSRC}/builtins/database/Makefile.in + post-install: -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - ${TAR} -C ${WRKSRC}/test -cf - . | \ - ${TAR} -C ${EXAMPLESDIR} --unlink -xf - - @${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} - @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} -.endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in AUTHORS NEWS README ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor .endif +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @(cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) +.endif .include diff -urN /usr/ports/textproc/chpp/files/patch-ab textproc/chpp/files/patch-ab --- /usr/ports/textproc/chpp/files/patch-ab 2000-07-08 09:26:15.000000000 +0900 +++ textproc/chpp/files/patch-ab 1970-01-01 09:00:00.000000000 +0900 @@ -1,24 +0,0 @@ ---- Makefile.in.orig Tue Feb 9 23:02:50 1999 -+++ Makefile.in Tue Jul 4 04:03:19 2000 -@@ -471,10 +471,10 @@ - - - gc/gc.a : -- ( cd gc ; make gc.a ) -+ ( cd gc ; $(MAKE) gc.a ) - - dist-hook : -- ( cd gc ; make clean ) -+ ( cd gc ; $(MAKE) clean ) - cp -dR gc $(distdir) - rm -rf `find $(distdir)/gc -name CVS` - mkdir $(distdir)/test -@@ -484,7 +484,7 @@ - rm -rf `find $(distdir)/test -name CVS` - - clean-gc : -- ( cd gc ; make clean ) -+ ( cd gc ; $(MAKE) clean ) - - clean : clean-gc - diff -urN /usr/ports/textproc/chpp/pkg-descr textproc/chpp/pkg-descr --- /usr/ports/textproc/chpp/pkg-descr 2007-07-02 19:07:53.000000000 +0900 +++ textproc/chpp/pkg-descr 2012-04-20 23:43:12.000000000 +0900 @@ -17,4 +17,4 @@ namely lists and hashes (associative arrays), which can be nested arbitrarily. -WWW: http://www.complang.tuwien.ac.at/~schani/chpp/ +WWW: http://www.complang.tuwien.ac.at/schani/chpp/ >Release-Note: >Audit-Trail: >Unformatted: