diff options
-rw-r--r-- | emulators/sim6811/Makefile | 18 | ||||
-rw-r--r-- | emulators/sim6811/files/patch-aa | 43 | ||||
-rw-r--r-- | emulators/sim6811/pkg-plist | 2 |
3 files changed, 16 insertions, 47 deletions
diff --git a/emulators/sim6811/Makefile b/emulators/sim6811/Makefile index c26c3da6c411..db1ac41189c8 100644 --- a/emulators/sim6811/Makefile +++ b/emulators/sim6811/Makefile @@ -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> diff --git a/emulators/sim6811/files/patch-aa b/emulators/sim6811/files/patch-aa deleted file mode 100644 index 9688e296324c..000000000000 --- a/emulators/sim6811/files/patch-aa +++ /dev/null @@ -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 --git a/emulators/sim6811/pkg-plist b/emulators/sim6811/pkg-plist deleted file mode 100644 index d865d972e6d7..000000000000 --- a/emulators/sim6811/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/sim6811 -man/man1/sim6811.1.gz |