From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 16 18:10:16 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B7BF7F9 for ; Mon, 16 Dec 2013 18:10:16 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4A6E41973 for ; Mon, 16 Dec 2013 18:10:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBGIAG5J016263 for ; Mon, 16 Dec 2013 18:10:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBGIAGac016262; Mon, 16 Dec 2013 18:10:16 GMT (envelope-from gnats) Resent-Date: Mon, 16 Dec 2013 18:10:16 GMT Resent-Message-Id: <201312161810.rBGIAGac016262@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 [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 66EED388 for ; Mon, 16 Dec 2013 18:02:12 +0000 (UTC) Received: from omta01.auone-net.jp (mail-or0-f67.auone-net.jp [106.187.230.67]) by mx1.freebsd.org (Postfix) with ESMTP id 3BF7D185B for ; Mon, 16 Dec 2013 18:02:12 +0000 (UTC) Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106]) by omta01.auone-net.jp (au one net mail) with ESMTP id 89159980179 for ; Tue, 17 Dec 2013 03:02:10 +0900 (JST) Message-Id: <20131217024753.644fa8122941b922b09269b8@yahoo.com> Date: Tue, 17 Dec 2013 02:47:53 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184858: emulators/sim6811: Support CC properly X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:10:16 -0000 >Number: 184858 >Category: ports >Synopsis: emulators/sim6811: Support CC properly >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: Mon Dec 16 18:10:15 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Support CC properly - Support PLIST_FILES Remove file: files/patch-aa pkg-plist >How-To-Repeat: >Fix: diff -urN /usr/ports/emulators/sim6811/Makefile emulators/sim6811/Makefile --- /usr/ports/emulators/sim6811/Makefile 2013-11-06 22:06:23.000000000 +0900 +++ emulators/sim6811/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -10,9 +10,25 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= ports@FreeBSD.org -COMMENT= A Motorola 6811 simulator +COMMENT= Motorola 6811 simulator NO_WRKSUBDIR= yes -NO_STAGE= yes +ALL_TARGET= sim + +PLIST_FILES= bin/sim6811 man/man1/sim6811.1.gz + +post-patch: + @${REINPLACE_CMD} -e \ + 's|^CC =|CC ?=| ; \ + s|^CFLAGS =|#CFLAGS =| ; \ + s|-O2|| ; \ + s|-o sim |-o sim6811 |' ${WRKSRC}/Makefile + +do-install: + (cd ${WRKSRC} && ${INSTALL_PROGRAM} sim6811 \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} sim6811.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1) + .include diff -urN /usr/ports/emulators/sim6811/files/patch-aa emulators/sim6811/files/patch-aa --- /usr/ports/emulators/sim6811/files/patch-aa 2013-11-06 22:06:23.000000000 +0900 +++ emulators/sim6811/files/patch-aa 1970-01-01 09:00:00.000000000 +0900 @@ -1,43 +0,0 @@ -*** Makefile~ Wed Sep 6 10:15:18 1995 ---- Makefile Wed Sep 6 11:00:51 1995 -*************** -*** 1,15 **** -! BINDIR = /usr/unsupported/bin - CC = gcc -! CFLAGS = -g -Wall -DINLINE=inline -! CFLAGS += -O2 -DINLINE=inline -! sim: main.o sim.o dis.o -! $(CC) $(CFLAGS) main.o sim.o dis.o -o sim $(LDLIBS) - sim.o: sim.h - main.o: sim.h - dis.o: sim.h - -! install: sim -! cp sim $(BINDIR)/sim6811 - - sharfile: sim.h Makefile sim.c main.c dis.c - shar -C sim.h Makefile sim.c main.c dis.c >sharfile ---- 1,23 ---- -! BINDIR = ${PREFIX}/bin -! MANDIR= ${PREFIX}/man/man1 -! - CC = gcc -! CFLAGS = -O2 -DINLINE=inline -! -! all: sim6811 -! -! sim6811: main.o sim.o dis.o -! $(CC) $(CFLAGS) main.o sim.o dis.o -o $@ $(LDLIBS) -! - sim.o: sim.h - main.o: sim.h - dis.o: sim.h - -! install: sim6811 -! cp sim6811 $(BINDIR)/sim6811 -! strip ${BINDIR}/sim6811 -! cp sim6811.1 ${MANDIR} -! gzip -9nf ${MANDIR}/sim6811.1 - - sharfile: sim.h Makefile sim.c main.c dis.c - shar -C sim.h Makefile sim.c main.c dis.c >sharfile diff -urN /usr/ports/emulators/sim6811/pkg-plist emulators/sim6811/pkg-plist --- /usr/ports/emulators/sim6811/pkg-plist 2013-11-06 22:06:23.000000000 +0900 +++ emulators/sim6811/pkg-plist 1970-01-01 09:00:00.000000000 +0900 @@ -1,2 +0,0 @@ -bin/sim6811 -man/man1/sim6811.1.gz >Release-Note: >Audit-Trail: >Unformatted: