From owner-svn-ports-all@FreeBSD.ORG Sat May 24 14:12:04 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6900094C; Sat, 24 May 2014 14:12:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4AD3B2F1C; Sat, 24 May 2014 14:12:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4OEC4Et018633; Sat, 24 May 2014 14:12:04 GMT (envelope-from vanilla@svn.freebsd.org) Received: (from vanilla@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4OEC3QT018616; Sat, 24 May 2014 14:12:03 GMT (envelope-from vanilla@svn.freebsd.org) Message-Id: <201405241412.s4OEC3QT018616@svn.freebsd.org> From: "Vanilla I. Shu" Date: Sat, 24 May 2014 14:12:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r355029 - in head/devel/cflow: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2014 14:12:04 -0000 Author: vanilla Date: Sat May 24 14:12:03 2014 New Revision: 355029 URL: http://svnweb.freebsd.org/changeset/ports/355029 QAT: https://qat.redports.org/buildarchive/r355029/ Log: Stageify. Approved by: portmgr@ Added: head/devel/cflow/files/patch-Makefile (contents, props changed) Deleted: head/devel/cflow/files/patch-aa Modified: head/devel/cflow/Makefile head/devel/cflow/pkg-plist Modified: head/devel/cflow/Makefile ============================================================================== --- head/devel/cflow/Makefile Sat May 24 14:12:03 2014 (r355028) +++ head/devel/cflow/Makefile Sat May 24 14:12:03 2014 (r355029) @@ -13,9 +13,6 @@ COMMENT= A call graph generator for C co CONFLICTS= bsdcflow-[0-9]* gnucflow-[0-9]* -USE_GMAKE= yes -MAN1= cflow.1 -MANCOMPRESSED= yes +USES= gmake -NO_STAGE= yes .include Added: head/devel/cflow/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cflow/files/patch-Makefile Sat May 24 14:12:03 2014 (r355029) @@ -0,0 +1,72 @@ +--- Makefile.orig 1995-03-06 22:00:20.000000000 +0800 ++++ Makefile 2014-05-24 22:09:47.087270512 +0800 +@@ -5,19 +5,20 @@ CC=gcc + endif + + # use cp backup option if you have gnu cp +-CP=cp +-CP=cp -b ++#CP=cp ++#CP=cp -b ++INSTALL_CMD= install -c -o bin -g bin + + # where you want to install + ifndef PREFIX +-PREFIX=$(HOME) ++PREFIX=/usr/local + endif + + # which shell do we use for the cflow to script? + # I know it works on bash on unix, it also should work with + # msh on ms-dog + ifndef CFLOW_SHELL +-CFLOW_SHELL=/bin/bash ++CFLOW_SHELL=$(PREFIX)/bin/bash + endif + + # actual location of prcc +@@ -39,12 +40,13 @@ ifdef MALLOC_DEBUG + LOADLIBES=-L$(HOME)/lib -ldmalloc + endif + +-DEBUG=-g +-OPT=-O +-CFLAGS=-Wall $(DEBUG) $(OPT) $(DEFS) ++#DEBUG=-g ++#OPT=-O ++CFLAGS+=$(DEBUG) $(OPT) $(DEFS) + + # set this to where to install +-BINDIR=$(PREFIX)/bin ++BINDIR=$(DESTDIR)$(PREFIX)/bin ++MANDIR=$(DESTDIR)$(PREFIX)/man/man1 + + SRCS=cflow.sh prcc.c prcg.c + +@@ -64,17 +66,23 @@ PROTOTYPES= prcc.prototypes.h prcg.proto + prototypes: $(PROTOTYPES) + + +-install: install-cflow install-bins ++install: install-cflow install-bins install-man + + install-bins: $(BINDIR)/prcc $(BINDIR)/prcg + + install-cflow: $(BINDIR)/cflow + ++install-man: $(MANDIR)/cflow.1.gz ++ + $(BINDIR)/prcc $(BINDIR)/prcg: $(BINDIR)/%: % +- $(CP) $^ $@ ++ $(INSTALL_CMD) $^ $@ + + $(BINDIR)/cflow: cflow +- $(CP) $^ $@ ++ $(INSTALL_CMD) -m0755 $^ $@ ++ ++$(MANDIR)/cflow.1.gz: cflow.1 ++ $(INSTALL_CMD) -m 0644 $^ $(MANDIR) ++ gzip -9nf $(MANDIR)/cflow.1 + + cflow: cflow.sh + sed -e "s;@CFLOW_SHELL@;$(CFLOW_SHELL);g" \ Modified: head/devel/cflow/pkg-plist ============================================================================== --- head/devel/cflow/pkg-plist Sat May 24 14:12:03 2014 (r355028) +++ head/devel/cflow/pkg-plist Sat May 24 14:12:03 2014 (r355029) @@ -1,3 +1,4 @@ bin/cflow bin/prcc bin/prcg +man/man1/cflow.1.gz