- Add LICENSE

- Switch to options helpers
- Regenerate patches with `make makepatch`
This commit is contained in:
Dmitry Marakasov 2016-02-01 10:13:45 +00:00
parent 7001383d1d
commit d57bb05fb3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407700
4 changed files with 29 additions and 17 deletions

View File

@ -11,6 +11,8 @@ DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= IA64 simulator (Intel(R) Architecture 64)
LICENSE= PD
USES= gmake zip
MAKEFILE= makefile.unx
MAKE_ARGS= CC="${CC}"
@ -23,10 +25,12 @@ PORTDOCS= ia64user.txt readme
OPTIONS_DEFINE= DOCS
pre-build:
${RM} -f ${WRKSRC}/obj/*.o ${WRKSRC}/ia64sim
@${RM} -f ${WRKSRC}/obj/*.o ${WRKSRC}/ia64sim
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ia64sim ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/ia64user.txt ${WRKSRC}/readme \
${STAGEDIR}${DOCSDIR}

View File

@ -1,6 +1,6 @@
--- ia64sim.c.orig Sun Feb 27 17:20:26 2000
+++ ia64sim.c Sun May 6 11:51:41 2001
@@ -779,7 +779,7 @@
--- ia64sim.c.orig 2000-02-28 01:20:26 UTC
+++ ia64sim.c
@@ -779,7 +779,7 @@ int main(int argc, char **argv) {
uint32 i;
@ -9,13 +9,13 @@
printf("Memory limits: 0x%08x-0x%08x\n", 0, MEMSIZE-1);
printf("Try 'h' for help\n\n");
@@ -810,6 +810,9 @@
while(1) {
@@ -811,6 +811,9 @@ int main(int argc, char **argv) {
printf("IA64sim>> ");
fgets(cmd,sizeof(cmd),stdin);
+
+ if (feof(stdin))
+ return 0;
+
nextchar = cmd;
while(*nextchar) *nextchar++ = tolower(*nextchar);

View File

@ -1,6 +1,6 @@
--- include/ia64.h.orig Sun May 6 11:39:29 2001
+++ include/ia64.h Sun May 6 11:35:10 2001
@@ -29,6 +29,7 @@
--- include/ia64.h.orig 2000-03-09 00:57:11 UTC
+++ include/ia64.h
@@ -29,6 +29,7 @@ benefit from your work.
#include <ctype.h>
#include <string.h>
#include <elf.h>
@ -8,7 +8,7 @@
#define TRUE 1
#define FALSE 0
@@ -38,7 +39,7 @@
@@ -38,7 +39,7 @@ benefit from your work.
0<=lo,hi<=63 and lo<=hi */
#define BITS(x,lo,hi) ( \
@ -17,7 +17,7 @@
( (1<<(hi-lo+1)) - 1 ) \
)
@@ -72,8 +73,8 @@
@@ -72,8 +73,8 @@ typedef union {
uint8 b[8];
} qword;

View File

@ -1,8 +1,16 @@
--- makefile.unx.orig Sat Feb 12 22:25:47 2000
+++ makefile.unx Sun May 6 11:48:13 2001
@@ -21 +21 @@
--- makefile.unx.orig 2000-02-13 06:25:47 UTC
+++ makefile.unx
@@ -18,11 +18,11 @@ EXECDIR = execute
OBJDIR = obj
INCDIR = include
CC = gcc
-CFLAGS = -O3 -m486 -fomit-frame-pointer -s -I$(INCDIR)
+CFLAGS += -s -I$(INCDIR)
@@ -25 +25 @@
ASMSRCS= assemble.c bundle.c asmfunc.c jumptbl.c decode.c symbols.c
-EXECSRCS = execute.c utils.c f_unit.c b_unit.c x_unit.c \
+EXECSRCS = elf.c execute.c utils.c f_unit.c b_unit.c x_unit.c \
m_unit.c i_alu.c i_cmp.c i_shft.c globals.c
ASMOBJS = $(ASMSRCS:.c=.o)