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

(-)graphics/gpsmanshp/Makefile (-11 / +12 lines)
Lines 2-30 Link Here
2
# $FreeBSD: head/graphics/gpsmanshp/Makefile 383293 2015-04-05 14:01:51Z antoine $
2
# $FreeBSD: head/graphics/gpsmanshp/Makefile 383293 2015-04-05 14:01:51Z antoine $
3
3
4
PORTNAME=	gpsmanshp
4
PORTNAME=	gpsmanshp
5
PORTVERSION=	1.2
5
PORTVERSION=	1.2.3
6
PORTREVISION=	2
7
CATEGORIES=	graphics tcl geography
6
CATEGORIES=	graphics tcl geography
8
MASTER_SITES=	http://www.ncc.up.pt/gpsmanshp/
7
MASTER_SITES=	SF/${PORTNAME}/distr
9
DISTNAME=	${PORTNAME}_${PORTVERSION}
8
DISTNAME=	${PORTNAME}_${PORTVERSION}
10
EXTRACT_SUFX=	.tgz
11
9
12
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
13
COMMENT=	Shapelib support for gpsman
11
COMMENT=	Shapelib support for gpsman
14
12
15
BROKEN=		No public distfiles
13
LICENSE=	GPLv3 # (or later)
16
14
15
LIB_DEPENDS=	libshp.so:${PORTSDIR}/devel/shapelib
17
RUN_DEPENDS=	gpsman:${PORTSDIR}/astro/gpsman
16
RUN_DEPENDS=	gpsman:${PORTSDIR}/astro/gpsman
18
LIB_DEPENDS=	libshp.so:${PORTSDIR}/devel/shapelib \
19
		libtcl${TCLVERSION:S/.//}.so:${PORTSDIR}/lang/tcl${TCLVERSION:S/.//}
20
17
21
TCLVERSION?=	8.4
18
USES=		tar:tgz tcl
22
PLIST_SUB=	TCLVERSION=${TCLVERSION} PORTVERSION=${PORTVERSION}
19
MAKE_ENV=	TCLVERSION="${TCL_VER}"
20
21
PORTDOCS=	*
22
PLIST_FILES=	${TCL_LIBDIR:S,${PREFIX}/,,}/gpsmanshp-${PORTVERSION}/gpsmanshp.so \
23
		${TCL_LIBDIR:S,${PREFIX}/,,}/gpsmanshp-${PORTVERSION}/pkgIndex.tcl
23
24
24
OPTIONS_DEFINE=	DOCS
25
OPTIONS_DEFINE=	DOCS
25
26
26
post-install:
27
post-install:
27
	${MKDIR} ${STAGEDIR}${DOCSDIR}
28
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
28
	${INSTALL_MAN} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
29
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
29
30
30
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)graphics/gpsmanshp/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gpsmanshp_1.2.tgz) = f216332c8d42f7c6d6f3a3111835e55793e5fc562036299dd8c4ace406f30cd3
1
SHA256 (gpsmanshp_1.2.3.tgz) = 2803524aa8f87db6ff1eaec93cef9619c944c9aa00149e554be11f6e2f1cafd2
2
SIZE (gpsmanshp_1.2.tgz) = 104092
2
SIZE (gpsmanshp_1.2.3.tgz) = 150070
(-)graphics/gpsmanshp/files/patch-Makefile (-13 / +10 lines)
Lines 1-30 Link Here
1
--- Makefile.orig	Fri Jul  9 11:05:39 2004
1
--- Makefile.orig	Fri Jul  9 11:05:39 2004
2
+++ Makefile	Fri Jul  9 11:18:01 2004
2
+++ Makefile	Fri Jul  9 11:18:01 2004
3
@@ -25,11 +25,15 @@
3
@@ -24,12 +24,16 @@
4
 VERSION = 1.2
5
 
4
 
6
 TCLVERSION = 8.4
5
 VERSION = 1.2.3
7
+TCLLVERSION = 84
6
 
7
-TCLVERSION = 8.4
8
+TCLVERSION ?= 8.4
9
+TCLLVERSION = $(TCLVERSION:S/.//)
8
 
10
 
9
-INSTALLDIR = /usr/lib/tcl$(TCLVERSION)
11
-INSTALLDIR = /usr/lib/tcl$(TCLVERSION)
10
+INSTALLDIR = ${DESTDIR}${PREFIX}/lib/tcl$(TCLVERSION)/gpsmanshp-$(VERSION)
12
+INSTALLDIR = ${DESTDIR}${PREFIX}/lib/tcl$(TCLVERSION)/gpsmanshp-$(VERSION)
11
 
13
 
12
-CFLAGS = -Wall -fPIC -c -I/usr/include/tcl$(TCLVERSION)
14
-CFLAGS = -Wall -fPIC -c -I/usr/include/tcl$(TCLVERSION)
13
-LINKOPT = -lshp -ltcl$(TCLVERSION)
15
-LINKOPT = -lshp -ltcl$(TCLVERSION)
14
+CFLAGS += -Wall -fPIC -c -I${PREFIX}/include/tcl$(TCLVERSION)
16
+CFLAGS += -Wall -fPIC -c -I${LOCALBASE}/include/tcl$(TCLVERSION)
15
+CFLAGS += -I${PREFIX}/include
17
+CFLAGS += -I${LOCALBASE}/include
16
+LINKOPT = -L${PREFIX}/lib -lshp -ltcl$(TCLLVERSION)
18
+LINKOPT = -L${LOCALBASE}/lib -lshp -ltcl$(TCLLVERSION)
17
+
19
+
18
+all:	pkgIndex.tcl
20
+all:	pkgIndex.tcl
19
 
21
 
20
 gpsmanshp.so: gpsmanshp.o
22
 gpsmanshp.so: gpsmanshp.o
21
 	$(CC) -shared -o gpsmanshp.so $(LINKOPT) gpsmanshp.o
23
 	$(CC) -shared -o gpsmanshp.so $(LINKOPT) gpsmanshp.o
22
@@ -38,12 +42,13 @@
24
@@ -42,8 +46,9 @@
23
 	$(CC) $(CFLAGS) gpsmanshp.c
24
 
25
 pkgIndex.tcl: gpsmanshp.so
26
-	echo "source package-8.3.tcl ; pkg_mkIndex -lazy -verbose . gpsmanshp.so" | tclsh$(TCLVERSION)
27
+	echo "pkg_mkIndex -lazy -verbose . gpsmanshp.so" | tclsh$(TCLVERSION)
28
 	chmod 644 gpsmanshp.so pkgIndex.tcl
25
 	chmod 644 gpsmanshp.so pkgIndex.tcl
29
 
26
 
30
 install: pkgIndex.tcl
27
 install: pkgIndex.tcl
(-)graphics/gpsmanshp/files/patch-gpsmanshp.c (-11 lines)
Lines 1-11 Link Here
1
--- gpsmanshp.c.org	Mon Jan 26 14:10:32 2004
2
+++ gpsmanshp.c	Wed Jul  7 20:53:40 2004
3
@@ -65,7 +65,7 @@
4
 
5
 #include <stdlib.h>
6
 #include <string.h>
7
-#include <libshp/shapefil.h>
8
+#include <shapefil.h>
9
 #include <tcl.h>
10
 
11
 #define VERSION "1.1"
(-)graphics/gpsmanshp/pkg-descr (-1 / +1 lines)
Lines 3-6 Link Here
3
Gpsmanshp was developed for use in GPSMan, a manager of GPS receiver
3
Gpsmanshp was developed for use in GPSMan, a manager of GPS receiver
4
data. It is written in C and is based on shapelib.
4
data. It is written in C and is based on shapelib.
5
5
6
WWW: http://www.ncc.up.pt/gpsmanshp/
6
WWW: http://gpsmanshp.sourceforge.net/
(-)graphics/gpsmanshp/pkg-plist (-17 lines)
Lines 1-17 Link Here
1
lib/tcl%%TCLVERSION%%/gpsmanshp-%%PORTVERSION%%/gpsmanshp.so
2
lib/tcl%%TCLVERSION%%/gpsmanshp-%%PORTVERSION%%/pkgIndex.tcl
3
%%PORTDOCS%%%%DOCSDIR%%/GPL.txt
4
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP.html
5
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP.pdf
6
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_1.html
7
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_2.html
8
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_3.html
9
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_4.html
10
%%PORTDOCS%%%%DOCSDIR%%/backgr.gif
11
%%PORTDOCS%%%%DOCSDIR%%/blank.gif
12
%%PORTDOCS%%%%DOCSDIR%%/gpsman-logo-small.gif
13
%%PORTDOCS%%%%DOCSDIR%%/newarr.gif
14
%%PORTDOCS%%%%DOCSDIR%%/newearr.gif
15
%%PORTDOCS%%%%DOCSDIR%%/next.gif
16
%%PORTDOCS%%%%DOCSDIR%%/previous.gif
17
%%PORTDOCS%%%%DOCSDIR%%/up.gif

Return to bug 199235