Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / misc / zyGrib / Makefile
blobcc166d788b1ad87d09d8bf3fc6c8591603026b82
1 # $NetBSD: Makefile,v 1.37 2013/02/06 23:23:04 jperkin Exp $
4 DISTNAME= zyGrib-6.0.1
5 PKGREVISION= 6
6 CATEGORIES= misc
7 MASTER_SITES= http://www.zygrib.org/getfile.php?file=
8 EXTRACT_SUFX= .tgz
10 MAINTAINER= plunky@rya-online.net
11 HOMEPAGE= http://www.zygrib.org/
12 COMMENT= GRIB file viewer for weather data
13 LICENSE= gnu-gpl-v3
15 DEPENDS+= liberation-ttf-[0-9]*:../../fonts/liberation-ttf
17 WRKSRC= ${WRKDIR}/${DISTNAME}/src
18 USE_LANGUAGES= c c++
19 USE_TOOLS+= make
21 CONFIGURE_ENV+= QTDIR=${QTDIR}
23 SUBST_CLASSES+= paths
24 SUBST_STAGE.paths= post-patch
25 SUBST_MESSAGE.paths= Fixing shared data paths.
26 SUBST_FILES.paths= util/Util.h
27 SUBST_SED.paths+= -e "s|\"data/|\"${PREFIX}/share/zyGrib/|"
29 INSTALLATION_DIRS+= bin
30 INSTALLATION_DIRS+= share/zyGrib/colors
31 INSTALLATION_DIRS+= share/zyGrib/config
32 INSTALLATION_DIRS+= share/zyGrib/gis
33 INSTALLATION_DIRS+= share/zyGrib/img
34 INSTALLATION_DIRS+= share/zyGrib/maps/gshhs
35 INSTALLATION_DIRS+= share/zyGrib/stuff
36 INSTALLATION_DIRS+= share/zyGrib/tr
38 INSTALL_FILES+= colors/colors_binary.txt
39 INSTALL_FILES+= colors/colors_cape_jkg.txt
40 INSTALL_FILES+= colors/colors_clouds_black_pc.txt
41 INSTALL_FILES+= colors/colors_clouds_white_pc.txt
42 INSTALL_FILES+= colors/colors_current_kts.txt
43 INSTALL_FILES+= colors/colors_deltatemp_celcius.txt
44 INSTALL_FILES+= colors/colors_humidrel_pc.txt
45 INSTALL_FILES+= colors/colors_rain_mmh.txt
46 INSTALL_FILES+= colors/colors_snowdepth_m.txt
47 INSTALL_FILES+= colors/colors_temp_celcius.txt
48 INSTALL_FILES+= colors/colors_waveheight_m.txt
49 INSTALL_FILES+= colors/colors_whitecap_prb.txt
50 INSTALL_FILES+= colors/colors_whitecap_prb.txt.colors
51 INSTALL_FILES+= colors/colors_wind_kts.txt
52 INSTALL_FILES+= gis/cities_10k-more.txt.gz
53 INSTALL_FILES+= gis/cities_3k-10k.txt.gz
54 INSTALL_FILES+= gis/countries_en.txt.gz
55 INSTALL_FILES+= gis/countries_fr.txt.gz
56 INSTALL_FILES+= gis/states_en.txt.gz
57 INSTALL_FILES+= gis/stations_metar.txt.gz
58 INSTALL_FILES+= img/1leftarrow.png
59 INSTALL_FILES+= img/1rightarrow.png
60 INSTALL_FILES+= img/2leftarrow.png
61 INSTALL_FILES+= img/2rightarrow.png
62 INSTALL_FILES+= img/anim.png
63 INSTALL_FILES+= img/back.png
64 INSTALL_FILES+= img/connect_no.png
65 INSTALL_FILES+= img/down.png
66 INSTALL_FILES+= img/drapeau_ar.png
67 INSTALL_FILES+= img/drapeau_cz.png
68 INSTALL_FILES+= img/drapeau_de.png
69 INSTALL_FILES+= img/drapeau_en.png
70 INSTALL_FILES+= img/drapeau_es.png
71 INSTALL_FILES+= img/drapeau_fi.png
72 INSTALL_FILES+= img/drapeau_fr.png
73 INSTALL_FILES+= img/drapeau_it.png
74 INSTALL_FILES+= img/drapeau_nl.png
75 INSTALL_FILES+= img/drapeau_pt.png
76 INSTALL_FILES+= img/drapeau_ru.png
77 INSTALL_FILES+= img/exit.png
78 INSTALL_FILES+= img/fileclose.png
79 INSTALL_FILES+= img/fileopen.png
80 INSTALL_FILES+= img/forward.png
81 INSTALL_FILES+= img/help.png
82 INSTALL_FILES+= img/info.png
83 INSTALL_FILES+= img/media-floppy.png
84 INSTALL_FILES+= img/meteoblue.png
85 INSTALL_FILES+= img/network.png
86 INSTALL_FILES+= img/player_eject.png
87 INSTALL_FILES+= img/player_end.png
88 INSTALL_FILES+= img/player_fwd.png
89 INSTALL_FILES+= img/player_pause.png
90 INSTALL_FILES+= img/player_play.png
91 INSTALL_FILES+= img/player_playlist.png
92 INSTALL_FILES+= img/player_rew.png
93 INSTALL_FILES+= img/player_start.png
94 INSTALL_FILES+= img/player_stop.png
95 INSTALL_FILES+= img/reload.png
96 INSTALL_FILES+= img/resource.rc
97 INSTALL_FILES+= img/up.png
98 INSTALL_FILES+= img/viewmag+.png
99 INSTALL_FILES+= img/viewmag-.png
100 INSTALL_FILES+= img/viewmag1.png
101 INSTALL_FILES+= img/viewmagfit.png
102 INSTALL_FILES+= img/zyGrib.icns
103 INSTALL_FILES+= img/zyGrib_32.ico
104 INSTALL_FILES+= img/zyGrib_32.xpm
105 INSTALL_FILES+= maps/gshhs/README.gshhs
106 INSTALL_FILES+= maps/gshhs/README.gshhs.rangs
107 INSTALL_FILES+= maps/gshhs/gshhs_2.rim
108 INSTALL_FILES+= maps/gshhs/gshhs_3.rim
109 INSTALL_FILES+= maps/gshhs/gshhs_4.rim
110 INSTALL_FILES+= maps/gshhs/rangs_2.cat
111 INSTALL_FILES+= maps/gshhs/rangs_2.cel
112 INSTALL_FILES+= maps/gshhs/rangs_3.cat
113 INSTALL_FILES+= maps/gshhs/rangs_3.cel
114 INSTALL_FILES+= maps/gshhs/rangs_4.cat
115 INSTALL_FILES+= maps/gshhs/rangs_4.cel
116 INSTALL_FILES+= maps/gshhs/wdb_borders_c.b
117 INSTALL_FILES+= maps/gshhs/wdb_borders_i.b
118 INSTALL_FILES+= maps/gshhs/wdb_borders_l.b
119 INSTALL_FILES+= maps/gshhs/wdb_rivers_c.b
120 INSTALL_FILES+= maps/gshhs/wdb_rivers_i.b
121 INSTALL_FILES+= maps/gshhs/wdb_rivers_l.b
122 INSTALL_FILES+= stuff/boat_parameters.csv
123 INSTALL_FILES+= tr/zyGrib_ar.qm
124 INSTALL_FILES+= tr/zyGrib_ar.ts
125 INSTALL_FILES+= tr/zyGrib_cz.qm
126 INSTALL_FILES+= tr/zyGrib_cz.ts
127 INSTALL_FILES+= tr/zyGrib_de.qm
128 INSTALL_FILES+= tr/zyGrib_de.ts
129 INSTALL_FILES+= tr/zyGrib_es.qm
130 INSTALL_FILES+= tr/zyGrib_es.ts
131 INSTALL_FILES+= tr/zyGrib_fi.qm
132 INSTALL_FILES+= tr/zyGrib_fi.ts
133 INSTALL_FILES+= tr/zyGrib_fr.qm
134 INSTALL_FILES+= tr/zyGrib_fr.ts
135 INSTALL_FILES+= tr/zyGrib_it.qm
136 INSTALL_FILES+= tr/zyGrib_it.ts
137 INSTALL_FILES+= tr/zyGrib_nl.qm
138 INSTALL_FILES+= tr/zyGrib_nl.ts
139 INSTALL_FILES+= tr/zyGrib_pt.qm
140 INSTALL_FILES+= tr/zyGrib_pt.ts
141 INSTALL_FILES+= tr/zyGrib_ru.qm
142 INSTALL_FILES+= tr/zyGrib_ru.ts
144 do-configure:
145 cd ${WRKSRC} && ${QTDIR}/bin/qmake
147 do-install:
148 ${INSTALL_PROGRAM} ${WRKSRC}/zyGrib ${DESTDIR}${PREFIX}/bin
149 .for f in ${INSTALL_FILES}
150 ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/data/${f} ${DESTDIR}${PREFIX}/share/zyGrib/${f}
151 .endfor
153 .include "../../archivers/bzip2/buildlink3.mk"
154 .include "../../devel/zlib/buildlink3.mk"
155 .include "../../geography/proj/buildlink3.mk"
156 .include "../../security/openssl/buildlink3.mk"
157 .include "../../x11/qt4-libs/buildlink3.mk"
158 .include "../../x11/qt4-tools/buildlink3.mk"
159 .include "../../x11/qwt6-qt4/buildlink3.mk"
160 .include "../../mk/bsd.pkg.mk"