Bug 184858 - emulators/sim6811: Support CC properly
Summary: emulators/sim6811: Support CC properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-20 15:00 UTC (History)
0 users

See Also:


Attachments
file.diff (2.36 KB, patch)
2013-12-16 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-12-16 18:10:15 UTC
- Support CC properly
- Support PLIST_FILES

Remove file:
files/patch-aa
pkg-plist
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 13:30:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-12-20 13:36:49 UTC
Author: pawel
Date: Fri Dec 20 13:36:41 2013
New Revision: 337012
URL: http://svnweb.freebsd.org/changeset/ports/337012

Log:
  - Respect CC/CFLAGS
  - Remove leading article from COMMENT
  - Switch to PLIST_FILES
  - Support staging
  
  PR:		ports/184858
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Deleted:
  head/emulators/sim6811/files/patch-aa
  head/emulators/sim6811/pkg-plist
Modified:
  head/emulators/sim6811/Makefile   (contents, props changed)

Modified: head/emulators/sim6811/Makefile
==============================================================================
--- head/emulators/sim6811/Makefile	Fri Dec 20 13:36:07 2013	(r337011)
+++ head/emulators/sim6811/Makefile	Fri Dec 20 13:36:41 2013	(r337012)
@@ -10,9 +10,23 @@ DISTNAME=	sim
 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:
+	${INSTALL_PROGRAM} ${WRKSRC}/sim6811 ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/sim6811.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2013-12-20 13:36:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-12-20 14:55:21 UTC
Author: mat
Date: Fri Dec 20 14:55:13 2013
New Revision: 337022
URL: http://svnweb.freebsd.org/changeset/ports/337022

Log:
  MFH: r337012
  
  - Respect CC/CFLAGS
  - Remove leading article from COMMENT
  - Switch to PLIST_FILES
  - Support staging
  
  PR:		ports/184858
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Approved by:	portmgr (implicit)

Deleted:
  branches/2014Q1/emulators/sim6811/files/patch-aa
  branches/2014Q1/emulators/sim6811/pkg-plist
Modified:
  branches/2014Q1/emulators/sim6811/Makefile   (contents, props changed)
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/emulators/sim6811/Makefile
==============================================================================
--- branches/2014Q1/emulators/sim6811/Makefile	Fri Dec 20 14:53:26 2013	(r337021)
+++ branches/2014Q1/emulators/sim6811/Makefile	Fri Dec 20 14:55:13 2013	(r337022)
@@ -10,9 +10,23 @@ DISTNAME=	sim
 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:
+	${INSTALL_PROGRAM} ${WRKSRC}/sim6811 ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/sim6811.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"