aboutsummaryrefslogtreecommitdiff
path: root/devel/libmpcbdm
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-08 23:49:15 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-08 23:49:15 +0000
commitc8757290e859a3245448c9d2538fc71ae68b40e0 (patch)
tree6879e378994255afb98db8a1933f67466a2e0a78 /devel/libmpcbdm
parent88ec828a3123d698d4c3f45f1b19705a0397e095 (diff)
downloadports-c8757290e859a3245448c9d2538fc71ae68b40e0.tar.gz
ports-c8757290e859a3245448c9d2538fc71ae68b40e0.zip
Notes
Diffstat (limited to 'devel/libmpcbdm')
-rw-r--r--devel/libmpcbdm/Makefile30
-rw-r--r--devel/libmpcbdm/distinfo3
-rw-r--r--devel/libmpcbdm/files/patch-examples_main.c12
-rw-r--r--devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c20
-rw-r--r--devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c10
-rw-r--r--devel/libmpcbdm/pkg-descr13
-rw-r--r--devel/libmpcbdm/pkg-plist15
7 files changed, 103 insertions, 0 deletions
diff --git a/devel/libmpcbdm/Makefile b/devel/libmpcbdm/Makefile
new file mode 100644
index 000000000000..7bf93425c6ac
--- /dev/null
+++ b/devel/libmpcbdm/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: libmpcbdm
+# Date created: 2006-06-24
+# Whom: Stanislav Sedov <stas@fonon.realnet>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libmpcbdm
+PORTVERSION= 0.0.3
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ http://mbsd.msk.ru/dist/
+MASTER_SITE_SUBDIR= libmpc8xx
+DISTNAME= mpc8xx-${PORTVERSION}
+
+MAINTAINER= ssedov@mbsd.msk.ru
+COMMENT= Standalone library to control various mpc8xx boards
+
+WRKSRC= ${WRKDIR}/libmpc8xx
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+
+ONLY_FOR_ARCHS= i386
+
+post-install:
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/Flash.dev ${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/devel/libmpcbdm/distinfo b/devel/libmpcbdm/distinfo
new file mode 100644
index 000000000000..95c389107290
--- /dev/null
+++ b/devel/libmpcbdm/distinfo
@@ -0,0 +1,3 @@
+MD5 (mpc8xx-0.0.3.tar.gz) = 9384db55fd34f0c58240432790ea30bb
+SHA256 (mpc8xx-0.0.3.tar.gz) = aa5ba81a3a339c990811e8c64d7e74bade212604c57472ea553e7839319f0aa6
+SIZE (mpc8xx-0.0.3.tar.gz) = 229848
diff --git a/devel/libmpcbdm/files/patch-examples_main.c b/devel/libmpcbdm/files/patch-examples_main.c
new file mode 100644
index 000000000000..491d4fb87baf
--- /dev/null
+++ b/devel/libmpcbdm/files/patch-examples_main.c
@@ -0,0 +1,12 @@
+--- example/main.c.orig Sat Jun 24 13:15:08 2006
++++ example/main.c Sat Jun 24 13:15:44 2006
+@@ -50,7 +50,8 @@
+ power_on = atoi( argv[3] );
+
+ mpc8xx_set_print_function( print );
+- mpc8xx_bdm_init( lpt_port, adapter_version, power_on );
++ if (mpc8xx_bdm_init( lpt_port, adapter_version, power_on ) == -1)
++ exit(1);
+
+ mpc8xx_bdm_reset();
+
diff --git a/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c b/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c
new file mode 100644
index 000000000000..8cee06a2c225
--- /dev/null
+++ b/devel/libmpcbdm/files/patch-libmpc8xx_lptbdm.c
@@ -0,0 +1,20 @@
++++ libmpc8xx/lptbdm.c.orig Sat Jun 24 12:47:47 2006
+--- libmpc8xx/lptbdm.c Sat Jun 24 12:50:21 2006
+@@ -22,7 +22,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <string.h>
+-#include <sys/io.h>
++#include <machine/sysarch.h>
+ #include <time.h>
+
+ static int lptbdm_read( void );
+@@ -252,7 +252,7 @@
+ }
+ }
+
+- nResult = ioperm( lptbdm_port.DATAAddr, 3, 1 );
++ nResult = i386_set_ioperm( lptbdm_port.DATAAddr, 3, 1 );
+
+ seteuid( getuid() );
+
diff --git a/devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c b/devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c
new file mode 100644
index 000000000000..4832eba1a6f3
--- /dev/null
+++ b/devel/libmpcbdm/files/patch-libmpc8xx_mpc8xxflash.c
@@ -0,0 +1,10 @@
+--- libmpc8xx/mpc8xxflash.c.orig Sat Jun 24 12:55:50 2006
++++ libmpc8xx/mpc8xxflash.c Sat Jun 24 12:55:57 2006
+@@ -14,7 +14,6 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
+ #include <ctype.h>
+ #include <stdlib.h>
+
diff --git a/devel/libmpcbdm/pkg-descr b/devel/libmpcbdm/pkg-descr
new file mode 100644
index 000000000000..706299ee9245
--- /dev/null
+++ b/devel/libmpcbdm/pkg-descr
@@ -0,0 +1,13 @@
+Standalone library to control various widely available Freescale's mpc8xx
+based boards. This code was derived from mpcbdm patch by Frank Przybylski.
+
+This allows using this code separately from gdb, for example, to load
+firmware to the board, or retrive information about it.
+
+The package includes example "mpc8xx" program, that displays information
+about connected board using libmpcbdm library.
+
+The schematic of adapter itself can be found at project homepage.
+
+Author: Erwin Rol <erwin@muffin.org>
+WWW: http://libmpc8xx.sourceforge.net/
diff --git a/devel/libmpcbdm/pkg-plist b/devel/libmpcbdm/pkg-plist
new file mode 100644
index 000000000000..06dcfe19373e
--- /dev/null
+++ b/devel/libmpcbdm/pkg-plist
@@ -0,0 +1,15 @@
+bin/mpc8xx
+include/mpc8xx.h
+include/mpc8xx/lptbdm.h
+include/mpc8xx/mpc8xxbdm.h
+include/mpc8xx/mpc8xxflash.h
+include/mpc8xx/mpc8xxmem.h
+include/mpc8xx/mpc8xxmisc.h
+include/mpc8xx/mpc8xxspr.h
+include/mpc8xx/mpc8xxtarget.h
+lib/libmpc8xx.la
+lib/libmpc8xx.so
+lib/libmpc8xx.so.0
+%%DATADIR%%/Flash.dev
+@dirrm %%DATADIR%%
+@dirrm include/mpc8xx