View | Details | Raw Unified | Return to bug 204188
Collapse All | Expand All

(-)Makefile (-8 / +20 lines)
Lines 2-10 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	mspdebug
4
PORTNAME=	mspdebug
5
PORTVERSION=	0.22
5
PORTVERSION=	0.23.20151024
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
MASTER_SITES=	SF/${PORTNAME}
8
7
9
MAINTAINER=	peterjeremy@acm.org
8
MAINTAINER=	peterjeremy@acm.org
10
COMMENT=	Debugger for use with MSP 430 MCUs
9
COMMENT=	Debugger for use with MSP 430 MCUs
Lines 11-23 Link Here
11
10
12
LICENSE=	GPLv2
11
LICENSE=	GPLv2
13
12
14
USES=		gmake readline
13
USE_GITHUB=	yes
14
GH_ACCOUNT=	dlbeer
15
GH_TAGNAME=	38ea614
15
16
16
PLIST_FILES=	bin/mspdebug man/man1/mspdebug.1.gz
17
OPTIONS_DEFINE=		READLINE LIBMSP430
18
OPTIONS_DEFAULT=	READLINE LIBMSP430
19
LIBMSP430_DESC=		Use TI libmsp430 USB driver
17
20
18
do-install:
21
READLINE_USES=		readline
19
	${INSTALL_PROGRAM} ${WRKSRC}/mspdebug ${STAGEDIR}${PREFIX}/bin
22
READLINE_MAKE_ARGS_OFF=	WITHOUT_READLINE=1
20
	${INSTALL_MAN} ${WRKSRC}/mspdebug.man \
21
		${STAGEDIR}${MANPREFIX}/man/man1/mspdebug.1
22
23
24
LIBMSP430_LIB_DEPENDS=	libmsp430.so:${PORTSDIR}/devel/msp430-debug-stack
25
26
USES=		gmake
27
28
PLIST_FILES=	bin/mspdebug \
29
		man/man1/mspdebug.1.gz \
30
		share/mspdebug/ti_3410.fw.ihex \
31
		share/mspdebug/ti_3410.fw.txt \
32
		share/doc/mspdebug/EmbeddedMode.txt \
33
		share/doc/mspdebug/README
34
23
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mspdebug-0.22.tar.gz) = 9a0550f3c7911bcc4e3231fff652c8f14763eb6a945609ce715db7164bf76c55
1
SHA256 (dlbeer-mspdebug-0.23.20151024-38ea614_GH0.tar.gz) = 2978e3628064d57a0b834bce87cd63e99f6e9d074c5584aee8f008e944c732fb
2
SIZE (mspdebug-0.22.tar.gz) = 230959
2
SIZE (dlbeer-mspdebug-0.23.20151024-38ea614_GH0.tar.gz) = 327235
(-)files/patch-Makefile (-12 / +44 lines)
Lines 1-17 Link Here
1
--- Makefile.orig	2012-11-26 10:27:48.000000000 +1100
1
--- Makefile.orig	2015-10-16 19:45:43 UTC
2
+++ Makefile	2012-12-16 15:13:34.359453238 +1100
2
+++ Makefile
3
@@ -45,8 +45,14 @@
3
@@ -22,8 +22,9 @@ PREFIX ?= /usr/local
4
 LDFLAGS ?= -s
5
 
6
 BINDIR = ${PREFIX}/bin/
7
-MANDIR = ${PREFIX}/share/man/man1
8
-LIBDIR = ${PREFIX}/lib/
9
+MANDIR = ${PREFIX}/man/man1
10
+DATDIR = ${PREFIX}/share
11
+DOCDIR = ${PREFIX}/share/doc/mspdebug
12
 
13
 ifdef WITHOUT_READLINE
14
 	READLINE_CFLAGS =
15
@@ -70,6 +71,9 @@ else
16
     else ifneq ($(filter $(UNAME_S),OpenBSD NetBSD DragonFly),)
4
 	PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
17
 	PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
5
 	PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
18
 	PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
6
   else
19
+    else ifeq ($(UNAME_S),FreeBSD)
7
+    ifeq ($(UNAME_S),FreeBSD) # FreeBSD Ports stuff
20
+	PORTS_CFLAGS := -I${PREFIX}/include
8
+# This is only needed prior to FreeBSD 8.x to find libusb
21
+	PORTS_LDFLAGS := -L${PREFIX}/lib
9
+	PORTS_CFLAGS := -I${LOCALBASE}/include
22
     else
10
+	PORTS_LDFLAGS := -L${LOCALBASE}/lib
11
+    else
12
 	PORTS_CFLAGS :=
23
 	PORTS_CFLAGS :=
13
 	PORTS_LDFLAGS :=
24
 	PORTS_LDFLAGS :=
14
+    endif
25
@@ -78,7 +82,7 @@ endif
15
   endif
16
 endif
17
 
26
 
27
 INCLUDES = -I. -Isimio -Iformats -Itransport -Idrivers -Iutil -Iui
28
 GCC_CFLAGS = -O1 -Wall -Wno-char-subscripts -ggdb
29
-CONFIG_CFLAGS = -DLIB_DIR=\"$(LIBDIR)\"
30
+CONFIG_CFLAGS = -DLIB_DIR=\"$(DATDIR)\"
31
 
32
 MSPDEBUG_LDFLAGS = $(LDFLAGS) $(PORTS_LDFLAGS)
33
 MSPDEBUG_LIBS = -lusb $(READLINE_LIBS) $(OS_LIBS)
34
@@ -108,9 +112,12 @@ install: $(BINARY) mspdebug.man
35
 	$(INSTALL) -m 0755 $(BINARY) $(DESTDIR)$(BINDIR)
36
 	mkdir -p $(DESTDIR)$(MANDIR)
37
 	$(INSTALL) -m 0644 mspdebug.man $(DESTDIR)$(MANDIR)/mspdebug.1
38
-	mkdir -p $(DESTDIR)$(LIBDIR)/mspdebug
39
-	$(INSTALL) -m 0644 ti_3410.fw.ihex \
40
-		$(DESTDIR)$(LIBDIR)/mspdebug/ti_3410.fw.ihex
41
+	mkdir -p $(DESTDIR)$(DATDIR)/mspdebug
42
+	$(INSTALL) -m 0644 ti_3410.fw.ihex ti_3410.fw.txt \
43
+		$(DESTDIR)$(DATDIR)/mspdebug/
44
+	mkdir -p $(DESTDIR)$(DOCDIR)
45
+	$(INSTALL) -m 0644 README EmbeddedMode.txt \
46
+		$(DESTDIR)$(DOCDIR)/
47
 
48
 .SUFFIXES: .c .o
49
 

Return to bug 204188