summaryrefslogtreecommitdiff
path: root/devel/picasm
diff options
context:
space:
mode:
authorkamil <kamil>2016-06-12 20:03:45 +0000
committerkamil <kamil>2016-06-12 20:03:45 +0000
commit6eed99c0d7c4bcfe537ab8f205a4ad9c787254f2 (patch)
treebe4098a91b083dd97008a52034d475f76660c91f /devel/picasm
parenta57a38b96de3a20758bb5796ba7382d2cd028c29 (diff)
downloadpkgsrc-6eed99c0d7c4bcfe537ab8f205a4ad9c787254f2.tar.gz
Import picasm114 (1.14) as devel/picasm
An assembler for the the Microchip PIC family of microcontrollers. Supports the majority of the Microchip PIC family. Uses Microchip (not Parallax) syntax. Originally packaged in pkgsrc-wip by: - myself, - pancake with further maintanance by: - Blue Rats <rodent>, - Aleksej Saushev, - Thomas Klausner, - OBATA Akio, - Sergey Svishchev, - Roland Illig, - Todd Vierling, - grant beattie.
Diffstat (limited to 'devel/picasm')
-rw-r--r--devel/picasm/DESCR5
-rw-r--r--devel/picasm/Makefile40
-rw-r--r--devel/picasm/PLIST69
-rw-r--r--devel/picasm/distinfo7
-rw-r--r--devel/picasm/patches/patch-picasm.c23
5 files changed, 144 insertions, 0 deletions
diff --git a/devel/picasm/DESCR b/devel/picasm/DESCR
new file mode 100644
index 00000000000..1d515282ebe
--- /dev/null
+++ b/devel/picasm/DESCR
@@ -0,0 +1,5 @@
+An assembler for the the Microchip PIC family of microcontrollers.
+
+Supports the majority of the Microchip PIC family.
+
+Uses Microchip (not Parallax) syntax.
diff --git a/devel/picasm/Makefile b/devel/picasm/Makefile
new file mode 100644
index 00000000000..c5f9566befe
--- /dev/null
+++ b/devel/picasm/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2016/06/12 20:03:45 kamil Exp $
+#
+
+DISTNAME= picasm114
+PKGNAME= ${DISTNAME:S/picasm/picasm-/}
+CATEGORIES= devel
+MASTER_SITES= http://nsa.kpu-m.ac.jp/gijutu/kousaku/man-pic/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+# Mirror of the latest release notes
+HOMEPAGE= http://nsa.kpu-m.ac.jp/gijutu/kousaku/man-pic/picasm.html
+COMMENT= Assembler for Microchip PIC16Cxx microcontrollers
+LICENSE= mit
+
+BUILD_TARGET= picasm
+BUILD_MAKE_FLAGS= CC=${CC:Q}
+# We need to construct -DBUILTIN_INCLUDE1=\"/usr/pkg/share/picasm/include\"
+# in order to process symbol correctly to the preprocessor
+BUILD_MAKE_FLAGS= DEFS=-DBUILTIN_INCLUDE1=\\\"${PREFIX}/share/picasm/include\\\"
+
+INSTALLATION_DIRS= bin share/examples/picasm share/doc/picasm \
+ share/picasm/include
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/picasm ${DESTDIR}${PREFIX}/bin
+
+.for file in example.asm morse.asm morse.i pic16f84.i picmac.i
+ ${INSTALL_DATA} ${WRKSRC}/examples/${file} \
+ ${DESTDIR}${PREFIX}/share/examples/picasm
+.endfor
+
+ ${INSTALL_DATA} ${WRKSRC}/device_definitions/*.i \
+ ${DESTDIR}${PREFIX}/share/picasm/include
+
+.for file in picasm.txt picasm.html
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${PREFIX}/share/doc/picasm
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/picasm/PLIST b/devel/picasm/PLIST
new file mode 100644
index 00000000000..b17c2c81681
--- /dev/null
+++ b/devel/picasm/PLIST
@@ -0,0 +1,69 @@
+@comment $NetBSD: PLIST,v 1.1 2016/06/12 20:03:45 kamil Exp $
+bin/picasm
+share/doc/picasm/picasm.html
+share/doc/picasm/picasm.txt
+share/examples/picasm/example.asm
+share/examples/picasm/morse.asm
+share/examples/picasm/morse.i
+share/examples/picasm/pic16f84.i
+share/examples/picasm/picmac.i
+share/picasm/include/_pic12c508.i
+share/picasm/include/_pic12c509.i
+share/picasm/include/_pic12c671.i
+share/picasm/include/_pic12c672.i
+share/picasm/include/_pic14000.i
+share/picasm/include/_pic14c000.i
+share/picasm/include/_pic16c52.i
+share/picasm/include/_pic16c54.i
+share/picasm/include/_pic16c54a.i
+share/picasm/include/_pic16c55.i
+share/picasm/include/_pic16c554.i
+share/picasm/include/_pic16c554a.i
+share/picasm/include/_pic16c556a.i
+share/picasm/include/_pic16c558.i
+share/picasm/include/_pic16c558a.i
+share/picasm/include/_pic16c56.i
+share/picasm/include/_pic16c57.i
+share/picasm/include/_pic16c58a.i
+share/picasm/include/_pic16c61.i
+share/picasm/include/_pic16c62.i
+share/picasm/include/_pic16c620.i
+share/picasm/include/_pic16c621.i
+share/picasm/include/_pic16c622.i
+share/picasm/include/_pic16c62a.i
+share/picasm/include/_pic16c63.i
+share/picasm/include/_pic16c64.i
+share/picasm/include/_pic16c64a.i
+share/picasm/include/_pic16c65.i
+share/picasm/include/_pic16c65a.i
+share/picasm/include/_pic16c66.i
+share/picasm/include/_pic16c67.i
+share/picasm/include/_pic16c71.i
+share/picasm/include/_pic16c710.i
+share/picasm/include/_pic16c711.i
+share/picasm/include/_pic16c715.i
+share/picasm/include/_pic16c72.i
+share/picasm/include/_pic16c73.i
+share/picasm/include/_pic16c73a.i
+share/picasm/include/_pic16c74.i
+share/picasm/include/_pic16c74a.i
+share/picasm/include/_pic16c76.i
+share/picasm/include/_pic16c77.i
+share/picasm/include/_pic16c83.i
+share/picasm/include/_pic16c84.i
+share/picasm/include/_pic16c923.i
+share/picasm/include/_pic16c924.i
+share/picasm/include/_pic16f688.i
+share/picasm/include/_pic16f72.i
+share/picasm/include/_pic16f818.i
+share/picasm/include/_pic16f819.i
+share/picasm/include/_pic16f84.i
+share/picasm/include/_pic16f873.i
+share/picasm/include/_pic16f874.i
+share/picasm/include/_pic16f876.i
+share/picasm/include/_pic16f877.i
+share/picasm/include/_pic17c42.i
+share/picasm/include/_pic17c43.i
+share/picasm/include/_pic17c44.i
+share/picasm/include/_pic17c752.i
+share/picasm/include/_pic17c756.i
diff --git a/devel/picasm/distinfo b/devel/picasm/distinfo
new file mode 100644
index 00000000000..c6eee5ab43a
--- /dev/null
+++ b/devel/picasm/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/06/12 20:03:45 kamil Exp $
+
+SHA1 (picasm114.tar.bz2) = 137689c08ebc8e8842aa62521c47f7c88f70d239
+RMD160 (picasm114.tar.bz2) = b4ed44b64b256b973814848fd7201d01f1beed72
+SHA512 (picasm114.tar.bz2) = a6a8490156afe8af1fc85700890570c745c076396890491f4efe004d7dd701a324f9c7e764fcc710c8954c761f3abb4ed8e97c72ce098100192ead334b335fb7
+Size (picasm114.tar.bz2) = 35429 bytes
+SHA1 (patch-picasm.c) = 5bdc64c5798e0ac100435403e5e1f16a808759e5
diff --git a/devel/picasm/patches/patch-picasm.c b/devel/picasm/patches/patch-picasm.c
new file mode 100644
index 00000000000..f725352a518
--- /dev/null
+++ b/devel/picasm/patches/patch-picasm.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-picasm.c,v 1.1 2016/06/12 20:03:45 kamil Exp $
+
+Remove unused variable.
+
+--- picasm.c.orig 2005-06-29 07:05:34.000000000 +0000
++++ picasm.c
+@@ -1866,7 +1866,7 @@ int
+ main(int argc, char *argv[])
+ {
+ static char in_filename[256], out_filename[256],
+- list_filename[256], sym_filename[256];
++ list_filename[256];
+ static int out_format = IHX8M;
+ int listing = 0, symdump = 0;
+ char *p;
+@@ -1877,7 +1877,6 @@ main(int argc, char *argv[])
+ pic_instr_set = PIC_NONE;
+ out_filename[0] = '\0';
+ list_filename[0] = '\0';
+- sym_filename[0] = '\0';
+ warnlevel = 0;
+
+ init_assembler();