aboutsummaryrefslogtreecommitdiffstats
path: root/astro/tclgeomap/Makefile
blob: 0190ef3cd163964a4bb0e93db808e0d7cad4d150 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# New ports collection makefile for:    tclgeomap
# Date created:     25 August 2006
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   tclgeomap
PORTVERSION=    2.10.1
CATEGORIES= astro tcl84
MASTER_SITES=   SF
MASTER_SITE_SUBDIR= tkgeomap

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Read, manipulate and display geo data

LIB_DEPENDS=    tcl${USE_TCL}.1:${PORTSDIR}/lang/tcl${USE_TCL}

USE_TCL=    yes
GNU_CONFIGURE=  yes
WRKSRC=     ${WRKDIR}/${DISTNAME}/unix
PLIST_SUB=  INC=include/${PORTNAME} \
        LIB=lib/${PORTNAME} VER=${PORTVERSION}
MAKE_ENV=   MKLINKS_FLAGS=-s
USE_LDCONFIG=   yes

MAN3=   geoLn.3 geoLnArr.3 geoLnArrToMap.3 geoProj.3 geography.3 mapLn.3 mapLnArr.3 tclgeomap.3
MANN=   tclgeomap.n tclgeomap_procs.n
MLINKS= \
    geoLn.3 GeoLn.3 \
    geoLn.3 GeoLnAddPt.3 \
    geoLn.3 GeoLnClear.3 \
    geoLn.3 GeoLnContainGeoPt.3 \
    geoLn.3 GeoLnCreate.3 \
    geoLn.3 GeoLnCtr.3 \
    geoLn.3 GeoLnDestroy.3 \
    geoLn.3 GeoLnGetPt.3 \
    geoLn.3 GeoLnInfo.3 \
    geoLn.3 GeoLnSetAlloc.3 \
    geoLnArr.3 GeoLnArr.3 \
    geoLnArr.3 GeoLnArrAddLine.3 \
    geoLnArr.3 GeoLnArrContainGeoPt.3 \
    geoLnArr.3 GeoLnArrCreate.3 \
    geoLnArr.3 GeoLnArrDestroy,.3 \
    geoLnArr.3 GeoLnArrFree.3 \
    geoLnArr.3 GeoLnArrGetDescr.3 \
    geoLnArr.3 GeoLnArrGetInfo.3 \
    geoLnArr.3 GeoLnArrGetLine.3 \
    geoLnArr.3 GeoLnArrPutLine.3 \
    geoLnArr.3 GeoLnArrSetAlloc.3 \
    geoLnArr.3 GeoLnArrSetDescr.3 \
    geoProj.3 GeoProj.3 \
    geoProj.3 GeoProjAlloc.3 \
    geoProj.3 GeoProjDescriptor.3 \
    geoProj.3 GeoProjDestroy.3 \
    geoProj.3 GeoProjFree.3 \
    geoProj.3 GeoProjGetInfo.3 \
    geoProj.3 GeoProjGetType.3 \
    geoProj.3 GeoProjInit.3 \
    geoProj.3 LatLonToProj.3 \
    geoProj.3 ProjToLatLon.3 \
    geoProj.3 SetCylEqArea.3 \
    geoProj.3 SetCylEqDist.3 \
    geoProj.3 SetLambertConfConic.3 \
    geoProj.3 SetLambertEqArea.3 \
    geoProj.3 SetMercator.3 \
    geoProj.3 SetOrthographic.3 \
    geoProj.3 SetStereographic.3 \
    geography.3 AngleCmp.3 \
    geography.3 AngleFmDeg.3 \
    geography.3 AngleFmRad.3 \
    geography.3 AngleIsBad.3 \
    geography.3 AngleIsOK.3 \
    geography.3 AngleToDeg.3 \
    geography.3 AngleToRad.3 \
    geography.3 Azimuth.3 \
    geography.3 BadAngle.3 \
    geography.3 DeleteRotation.3 \
    geography.3 DomainLat.3 \
    geography.3 DomainLon.3 \
    geography.3 DomainLonPt.3 \
    geography.3 GCircleX.3 \
    geography.3 GeoDistance.3 \
    geography.3 GeoPtGetDeg.3 \
    geography.3 GeoPtGetRad.3 \
    geography.3 GeoPtIsNowhere.3 \
    geography.3 GeoPtIsSomewhere.3 \
    geography.3 GeoPtNowhere.3 \
    geography.3 GeoPtSetDeg.3 \
    geography.3 GeoPtSetRad.3 \
    geography.3 GeoQuickDistance.3 \
    geography.3 GeoStep.3 \
    geography.3 GetRotation.3 \
    geography.3 GwchLon.3 \
    geography.3 GwchLonPt.3 \
    geography.3 ICos.3 \
    geography.3 ISin.3 \
    geography.3 LatCmp.3 \
    geography.3 LonBtwn.3 \
    geography.3 LonBtwn1.3 \
    geography.3 LonCmp.3 \
    geography.3 MapPtIsNowhere.3 \
    geography.3 MapPtIsSomewhere.3 \
    geography.3 MapPtNowhere.3 \
    geography.3 NewRotation.3 \
    geography.3 REarth.3 \
    geography.3 Rotate.3 \
    geography.3 Rotation.3 \
    geography.3 ScaleMapPt.3 \
    geography.3 SetREarth.3 \
    geography.3 SetRotation.3 \
    mapLn.3 MapLn.3 \
    mapLn.3 MapLnAddPt.3 \
    mapLn.3 MapLnClear.3 \
    mapLn.3 MapLnCreate.3 \
    mapLn.3 MapLnDestroy.3 \
    mapLn.3 MapLnGetInfo.3 \
    mapLn.3 MapLnGetPt.3 \
    mapLn.3 MapLnSetAlloc.3 \
    mapLnArr.3 MapLnArr.3 \
    mapLnArr.3 MapLnArrAddLine.3 \
    mapLnArr.3 MapLnArrCreate.3 \
    mapLnArr.3 MapLnArrDestroy.3 \
    mapLnArr.3 MapLnArrGetDescr.3 \
    mapLnArr.3 MapLnArrGetInfo.3 \
    mapLnArr.3 MapLnArrGetLine.3 \
    mapLnArr.3 MapLnArrSet.3 \
    mapLnArr.3 MapLnArrSetAlloc.3 \
    mapLnArr.3 MapLnArrSetDescr.3 \
    tclgeomap.3 Tclgeomap_AddLnArr.3 \
    tclgeomap.3 Tclgeomap_AddLnArrDeleteTask.3 \
    tclgeomap.3 Tclgeomap_AddPlaceDeleteTask.3 \
    tclgeomap.3 Tclgeomap_AddPlaceUpdateTask.3 \
    tclgeomap.3 Tclgeomap_AddProjDeleteTask.3 \
    tclgeomap.3 Tclgeomap_AddProjUpdateTask.3 \
    tclgeomap.3 Tclgeomap_CnxLnArrDeleteTask.3 \
    tclgeomap.3 Tclgeomap_CnxPlaceDeleteTask.3 \
    tclgeomap.3 Tclgeomap_CnxPlaceUpdateTask.3 \
    tclgeomap.3 Tclgeomap_CnxProjDeleteTask.3 \
    tclgeomap.3 Tclgeomap_CnxProjUpdateTask.3 \
    tclgeomap.3 Tclgeomap_GetGeoPtFromObj.3 \
    tclgeomap.3 Tclgeomap_GetLnArr.3 \
    tclgeomap.3 Tclgeomap_GetMapPtFromObj.3 \
    tclgeomap.3 Tclgeomap_GetPlace.3 \
    tclgeomap.3 Tclgeomap_GetProj.3 \
    tclgeomap.3 Tclgeomap_Init.3 \
    tclgeomap.3 Tclgeomap_LnArrName.3 \
    tclgeomap.3 Tclgeomap_NewGeoPtObj.3 \
    tclgeomap.3 Tclgeomap_NewMapPtObj.3 \
    tclgeomap.3 Tclgeomap_PlaceLoc.3 \
    tclgeomap.3 Tclgeomap_PlaceName.3 \
    tclgeomap.3 Tclgeomap_ProjName.3 \
    tclgeomap.3 Tclgeomap_SetGeoPtObj.3 \
    tclgeomap.3 Tclgeomap_SetMapPtObj.3 \
    tclgeomap.n cartg.n \
    tclgeomap.n dectodm.n \
    tclgeomap.n dectodms.n \
    tclgeomap.n dmstodec.n \
    tclgeomap.n domnlat.n \
    tclgeomap.n domnlon.n \
    tclgeomap.n domnlonpt.n \
    tclgeomap.n gclcross.n \
    tclgeomap.n georadius.n \
    tclgeomap.n gwchlon.n \
    tclgeomap.n gwchpt.n \
    tclgeomap.n latlonok.n \
    tclgeomap.n lnarr.n \
    tclgeomap.n lonbtwn.n \
    tclgeomap.n mapptok.n \
    tclgeomap.n place.n \
    tclgeomap.n projection.n \
    tclgeomap.n rotatpt.n \
    tclgeomap.n scalept.n \
    tclgeomap_procs.n circle.n \
    tclgeomap_procs.n fillsegment.n \
    tclgeomap_procs.n grid_list.n \
    tclgeomap_procs.n latitude.n \
    tclgeomap_procs.n latlon.n \
    tclgeomap_procs.n longitude.n \
    tclgeomap_procs.n ocean_list.n

post-install:
    @${LN} -sf ${PREFIX}/lib/lib${PORTNAME}${PORTVERSION}.so \
        ${PREFIX}/lib/lib${PORTNAME}${PORTVERSION}.so.0
    @${LN} -sf ${PREFIX}/lib/lib${PORTNAME}${PORTVERSION}.so \
        ${PREFIX}/lib/lib${PORTNAME}.so.0

post-patch:
    @${REINPLACE_CMD} -e 's/@PACKAGE@@VERSION@/@PACKAGE@/g' ${WRKSRC}/Makefile.in ${WRKSRC}/pkgIndex.tcl.in

# Maintainer section
MY_MLINKS:
    @cd ${MAN3PREFIX}/man/man3/ && ls -l `${FIND} . -type l` | ${GREP} -E '(geo|mapLn)' | ${SED} -Ee 's#^.*\./(.*) -> (.*)$$#\2 \1 \\#' | ${SORT} -u
    @cd ${MANNPREFIX}/man/mann/ && ls -l `${FIND} . -type l` | ${GREP} -E '(geo|mapLn)' | ${SED} -Ee 's#^.*\./(.*) -> (.*)$$#\2 \1 \\#' | ${SORT} -u

.include <bsd.port.mk>