svn commit: r354683 - in head/devel: . asl asl/files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue May 20 20:20:35 UTC 2014
Author: amdmi3
Date: Tue May 20 20:20:33 2014
New Revision: 354683
URL: http://svnweb.freebsd.org/changeset/ports/354683
QAT: https://qat.redports.org/buildarchive/r354683/
Log:
- Resurrect devel/asl: Assembler for a variety of microcontrollers/-processors
- Stagify
- Pass maintainership to submitter
ASL can generate code for totally different processors. These are implemented:
Motorola 68000..68030,683xx including math co-processor and MMU; DSP56000;
Motorola/IBM MPC601/MPC505/PPC403; 6800, 6805, 6809, 68(HC)11 and
Hitachi 6301
Hitachi 6309, H8 and SH7000/7600
Rockwell 6502 and 65(S)C02
CMD 65816
Mitsubishi MELPS-740; MELPS-7700; MELPS-4500 and M16
Intel MCS-48/41, MCS-51, MCS-96 and 8080/8085
AMD 29K
Siemens 80C166/167
Zilog Z80, Z180, Z380 and Z8
Toshiba TLCS-900(L), TLCS-90, TLCS-870, TLCS-47 and TLCS-9000
Microchip PIC16C54..16C57, PIC16C84/PIC16C64 and PIC17C42
SGS-Thomson ST62xx and 6804
Texas Instruments TMS32010/32015, TMS3202x, TMS320C3x and TMS370xxx
NEC uPD 78(C)1x and uPD 75xxx (a.k.a. 75K0)
WWW: http://john.ccac.rwth-aachen.de:8000/as/
PR: 189648
Submitted by: "Daniel O'Connor" <doconnor at gsoft.com.au>
Added:
head/devel/asl/
- copied from r350941, head/devel/asl/
head/devel/asl/files/patch-Makefile (contents, props changed)
head/devel/asl/files/patch-as.c (contents, props changed)
head/devel/asl/files/patch-sysdefs.h (contents, props changed)
Deleted:
head/devel/asl/files/patch-ac
head/devel/asl/files/patch-ad
Modified:
head/devel/Makefile
head/devel/asl/Makefile
head/devel/asl/files/Makefile.def
head/devel/asl/pkg-plist
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Tue May 20 20:17:43 2014 (r354682)
+++ head/devel/Makefile Tue May 20 20:20:33 2014 (r354683)
@@ -76,6 +76,7 @@
SUBDIR += art
SUBDIR += as31
SUBDIR += asdlgen
+ SUBDIR += asl
SUBDIR += asmutils
SUBDIR += asmx
SUBDIR += astah-community
Modified: head/devel/asl/Makefile
==============================================================================
--- head/devel/asl/Makefile Fri Apr 11 13:18:36 2014 (r350941)
+++ head/devel/asl/Makefile Tue May 20 20:20:33 2014 (r354683)
@@ -1,4 +1,4 @@
-# Created by: Thomas Gellekum <tg at FreeBSD.org>
+# Created by: Thomas Gellekum <tg at freebsd.org>
# $FreeBSD$
PORTNAME= asl
@@ -8,16 +8,13 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE} \
ftp://john.ccac.rwth-aachen.de/pub/as/source/c_version/
MASTER_SITE_SUBDIR= devel/lang/assemblers
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= doconnor at gsoft.com.au
COMMENT= Assembler for a variety of microcontrollers/-processors
-DEPRECATED= Unmaintained since 1997
-EXPIRATION_DATE= 2014-04-09
ONLY_FOR_ARCHS= i386 alpha amd64
-MAN1= asl.1 p2bin.1 p2hex.1 pbind.1 plist.1
+MAKE_ENV+= STAGEDIR=${STAGEDIR}
-NO_STAGE= yes
post-extract:
${CP} ${FILESDIR}/Makefile.def ${WRKSRC}
@@ -25,7 +22,7 @@ post-patch:
${REINPLACE_CMD} -e 's/mkdirhier/mkdir \-p/' ${WRKSRC}/install.sh
post-install:
- @${MKDIR} ${PREFIX}/share/doc/asl
- ${INSTALL_DATA} ${WRKSRC}/doc_EN/* ${PREFIX}/share/doc/asl
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/asl
+ ${INSTALL_DATA} ${WRKSRC}/doc_EN/* ${STAGEDIR}${PREFIX}/share/doc/asl
.include <bsd.port.mk>
Modified: head/devel/asl/files/Makefile.def
==============================================================================
--- head/devel/asl/files/Makefile.def Fri Apr 11 13:18:36 2014 (r350941)
+++ head/devel/asl/files/Makefile.def Tue May 20 20:20:33 2014 (r354683)
@@ -8,10 +8,13 @@ LDFLAGS = -s
# -------------------------------------------------------------------------
# directories where binaries and includes should go during installation
-BINDIR = ${PREFIX}/bin
+BINDIR = ${STAGEDIR}/${PREFIX}/bin
+# *INST are where things are installed to, vs where they are searched for
INCDIR = ${PREFIX}/share/asl
+INCDIRINST = ${STAGEDIR}/${PREFIX}/share/asl
LIBDIR = ${PREFIX}/share/asl
-MANDIR = ${PREFIX}/man
+LIBDIRINST = ${STAGEDIR}/${PREFIX}/share/asl
+MANDIR = ${STAGEDIR}/${PREFIX}/man
DOCDIR =
# -------------------------------------------------------------------------
Added: head/devel/asl/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/asl/files/patch-Makefile Tue May 20 20:20:33 2014 (r354683)
@@ -0,0 +1,11 @@
+--- Makefile.orig 1999-08-01 07:11:01.000000000 +0930
++++ Makefile 2014-05-11 14:46:32.794473751 +0930
+@@ -60,7 +60,7 @@
+ cd tests; ./testall
+
+ install: $(ALLTARGETS)
+- ./install.sh $(BINDIR) $(INCDIR) $(MANDIR) $(LIBDIR) $(DOCDIR)
++ ./install.sh $(BINDIR) $(INCDIRINST) $(MANDIR) $(LIBDIRINST) $(DOCDIR)
+
+ clean:
+ rm -f $(ALLTARGETS) $(RESCOMPTARGET) $(TEX2DOCTARGET) $(TEX2HTMLTARGET) *.$(OBJEXTENSION) *.p *.rsc tests/testlog
Added: head/devel/asl/files/patch-as.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/asl/files/patch-as.c Tue May 20 20:20:33 2014 (r354683)
@@ -0,0 +1,16 @@
+--- as.c.orig Sat May 9 15:13:05 1998
++++ as.c Fri Dec 11 17:14:47 1998
+@@ -2577,6 +2577,13 @@
+
+ ParamCount=argc-1; ParamStr=argv;
+
++ if (ParamCount == 0)
++ BEGIN
++ fprintf(stderr, "Usage: %s [ option(s) ] file(s) [ option(s) ] file(s)\n",
++ argv[0]);
++ exit(0);
++ END
++
+ if (First)
+ BEGIN
+ endian_init(); nls_init(); bpemu_init(); stdhandl_init();
Added: head/devel/asl/files/patch-sysdefs.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/asl/files/patch-sysdefs.h Tue May 20 20:20:33 2014 (r354683)
@@ -0,0 +1,68 @@
+--- sysdefs.h.orig 1998-11-03 23:12:15.000000000 +0100
++++ sysdefs.h 2009-03-17 14:25:05.000000000 +0100
+@@ -524,6 +524,26 @@
+ #define LOCALE_NLS
+ #endif
+
++#ifdef __FreeBSD__
++#define ARCHSYSNAME "unknown-freebsd"
++#define DEFSMADE
++#define OPENRDMODE "r"
++#define OPENWRMODE "w"
++#define OPENUPMODE "r+"
++#define IEEEFLOAT
++typedef signed char Integ8;
++typedef unsigned char Card8;
++typedef signed short Integ16;
++typedef unsigned short Card16;
++#define HAS16
++typedef signed int Integ32;
++typedef unsigned int Card32;
++typedef signed long Integ64;
++typedef unsigned long Card64;
++#define HAS64
++#define NO_NLS
++#endif
++
+ #endif /* __alpha */
+
+ /*===========================================================================*/
+@@ -725,6 +745,38 @@
+ #endif /* __i386 */
+
+ /*===========================================================================*/
++/* AMD opteron/athlon64/k8 platforms */
++
++#ifdef __amd64__
++
++#define ARCHPRNAME "amd64"
++
++/*---------------------------------------------------------------------------*/
++/* amd64 with FreeBSD and GCC: */
++
++#ifdef __FreeBSD__
++#define ARCHSYSNAME "unknown-freebsd"
++#define DEFSMADE
++#define OPENRDMODE "r"
++#define OPENWRMODE "w"
++#define OPENUPMODE "r+"
++#define IEEEFLOAT
++typedef signed char Integ8;
++typedef unsigned char Card8;
++typedef signed short Integ16;
++typedef unsigned short Card16;
++#define HAS16
++typedef signed int Integ32;
++typedef unsigned int Card32;
++typedef signed long Integ64;
++typedef unsigned long Card64;
++#define HAS64
++#define LOCALE_NLS
++#endif
++
++#endif /* __amd64__ */
++
++/*===========================================================================*/
+ /* Misc... */
+
+ /*---------------------------------------------------------------------------*/
Modified: head/devel/asl/pkg-plist
==============================================================================
--- head/devel/asl/pkg-plist Fri Apr 11 13:18:36 2014 (r350941)
+++ head/devel/asl/pkg-plist Tue May 20 20:20:33 2014 (r354683)
@@ -3,6 +3,11 @@ bin/p2hex
bin/p2bin
bin/pbind
bin/plist
+man/man1/asl.1.gz
+man/man1/p2bin.1.gz
+man/man1/p2hex.1.gz
+man/man1/pbind.1.gz
+man/man1/plist.1.gz
share/asl/80c50x.inc
share/asl/80c552.inc
share/asl/as.msg
More information about the svn-ports-all
mailing list