- Respect CC/CFLAGS

- Remove leading article from COMMENT
- Switch to PLIST_FILES
- Support staging

PR:		ports/184858
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
Pawel Pekala 2013-12-20 13:36:41 +00:00
parent abc1625d96
commit 2e01210827
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337012
3 changed files with 16 additions and 47 deletions

View file

@ -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>

View file

@ -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

View file

@ -1,2 +0,0 @@
bin/sim6811
man/man1/sim6811.1.gz