mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Initial import of gpsmanshp 1.2
Provides Tcl/Tk shapelib file support for gpsman.
This commit is contained in:
parent
99849b1ff9
commit
991af4c17f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113917
@ -136,6 +136,7 @@
|
||||
SUBDIR += gpdf
|
||||
SUBDIR += gphoto2
|
||||
SUBDIR += gplot
|
||||
SUBDIR += gpsmanshp
|
||||
SUBDIR += gqview
|
||||
SUBDIR += gracula
|
||||
SUBDIR += graphopt
|
||||
|
29
graphics/gpsmanshp/Makefile
Normal file
29
graphics/gpsmanshp/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# New ports collection makefile for: gpsmanshp
|
||||
# Date created: 7 July 2004
|
||||
# Whom: John Hay
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= gpsmanshp
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= graphics tcl84
|
||||
MASTER_SITES= http://www.ncc.up.pt/gpsmanshp/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= jhay@FreeBSD.org
|
||||
COMMENT= Shapelib support for gpsman
|
||||
|
||||
RUN_DEPENDS= gpsman:${PORTSDIR}/astro/gpsman
|
||||
LIB_DEPENDS= shp.1:${PORTSDIR}/devel/shapelib
|
||||
|
||||
PLIST_SUB= TCLVERSION=8.4 PORTVERSION=${PORTVERSION}
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/* ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
graphics/gpsmanshp/distinfo
Normal file
2
graphics/gpsmanshp/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (gpsmanshp_1.2.tgz) = b32e16afe3e306cf991ea38713fd0c9e
|
||||
SIZE (gpsmanshp_1.2.tgz) = 104092
|
37
graphics/gpsmanshp/files/patch-Makefile
Normal file
37
graphics/gpsmanshp/files/patch-Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
--- Makefile.orig Fri Jul 9 11:05:39 2004
|
||||
+++ Makefile Fri Jul 9 11:18:01 2004
|
||||
@@ -25,11 +25,15 @@
|
||||
VERSION = 1.2
|
||||
|
||||
TCLVERSION = 8.4
|
||||
+TCLLVERSION = 84
|
||||
|
||||
-INSTALLDIR = /usr/lib/tcl$(TCLVERSION)
|
||||
+INSTALLDIR = ${PREFIX}/lib/tcl$(TCLVERSION)/gpsmanshp-$(VERSION)
|
||||
|
||||
-CFLAGS = -Wall -fPIC -c -I/usr/include/tcl$(TCLVERSION)
|
||||
-LINKOPT = -lshp -ltcl$(TCLVERSION)
|
||||
+CFLAGS += -Wall -fPIC -c -I${PREFIX}/include/tcl$(TCLVERSION)
|
||||
+CFLAGS += -I${PREFIX}/include
|
||||
+LINKOPT = -L${PREFIX}/lib -lshp -ltcl$(TCLLVERSION)
|
||||
+
|
||||
+all: pkgIndex.tcl
|
||||
|
||||
gpsmanshp.so: gpsmanshp.o
|
||||
$(CC) -shared -o gpsmanshp.so $(LINKOPT) gpsmanshp.o
|
||||
@@ -38,12 +42,13 @@
|
||||
$(CC) $(CFLAGS) gpsmanshp.c
|
||||
|
||||
pkgIndex.tcl: gpsmanshp.so
|
||||
- echo "source package-8.3.tcl ; pkg_mkIndex -lazy -verbose . gpsmanshp.so" | tclsh$(TCLVERSION)
|
||||
+ echo "pkg_mkIndex -lazy -verbose . gpsmanshp.so" | tclsh$(TCLVERSION)
|
||||
chmod 644 gpsmanshp.so pkgIndex.tcl
|
||||
|
||||
install: pkgIndex.tcl
|
||||
-mkdir $(INSTALLDIR)
|
||||
- cp gpsmanshp.so pkgIndex.tcl $(INSTALLDIR)
|
||||
+ install -c -s -m 555 -o root -g wheel gpsmanshp.so $(INSTALLDIR)/
|
||||
+ install -c -m 555 -o root -g wheel pkgIndex.tcl $(INSTALLDIR)/
|
||||
|
||||
clean:
|
||||
rm -f gpsmanshp.o gpsmanshp.so pkgIndex.tcl G*.aux G*.log
|
11
graphics/gpsmanshp/files/patch-gpsmanshp.c
Normal file
11
graphics/gpsmanshp/files/patch-gpsmanshp.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- gpsmanshp.c.org Mon Jan 26 14:10:32 2004
|
||||
+++ gpsmanshp.c Wed Jul 7 20:53:40 2004
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
-#include <libshp/shapefil.h>
|
||||
+#include <shapefil.h>
|
||||
#include <tcl.h>
|
||||
|
||||
#define VERSION "1.1"
|
6
graphics/gpsmanshp/pkg-descr
Normal file
6
graphics/gpsmanshp/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
A Tcl Package to Read and Write Shapefiles
|
||||
|
||||
Gpsmanshp was developed for use in GPSMan, a manager of GPS receiver
|
||||
data. It is written in C and is based on shapelib.
|
||||
|
||||
WWW: http://www.ncc.up.pt/gpsmanshp/
|
19
graphics/gpsmanshp/pkg-plist
Normal file
19
graphics/gpsmanshp/pkg-plist
Normal file
@ -0,0 +1,19 @@
|
||||
lib/tcl%%TCLVERSION%%/gpsmanshp-%%PORTVERSION%%/gpsmanshp.so
|
||||
lib/tcl%%TCLVERSION%%/gpsmanshp-%%PORTVERSION%%/pkgIndex.tcl
|
||||
@dirrm lib/tcl%%TCLVERSION%%/gpsmanshp-%%PORTVERSION%%
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPL.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP.pdf
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_1.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_2.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_3.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPSManSHP_4.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/backgr.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/blank.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/gpsman-logo-small.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/newarr.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/newearr.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/next.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/previous.gif
|
||||
%%PORTDOCS%%%%DOCSDIR%%/up.gif
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user