blob: b9341f373840cd0ea9301ffb00f62d8e4e99fbcc (
plain)
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
|
# $NetBSD: Makefile,v 1.4 2006/10/04 14:25:57 gdt Exp $
#
DISTNAME= epsg-v6_11sql-PostgreSQL
PKGNAME= epsg-6.11
PKGREVISION= 2
CATEGORIES= geography databases
MASTER_SITES+= http://www.epsg.org/databases/
DISTFILES+= epsg-v6_11sql-PostgreSQL.zip \
epsg-v6_11sql-mySQL.zip \
G7-1.pdf G7-2.pdf
EXTRACT_ONLY= epsg-v6_11sql-PostgreSQL.zip \
epsg-v6_11sql-mySQL.zip
DIST_SUBDIR= epsg-20060823
MAINTAINER= brook@nmsu.edu
HOMEPAGE= http://www.epsg.org/
COMMENT= EPSG Geodetic Parameters database
LICENSE= epsg-license
RESTRICTED= No commercial redistribution
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
SITES.G7-1.pdf= http://www.epsg.org/guides/docs/
SITES.G7-2.pdf= ${SITES.G7-1.pdf}
WRKSRC= ${WRKDIR}/epsg-v6_11sql-postgresql
WRKSRC.pgsql= ${WRKDIR}/epsg-v6_11sql-PostgreSQL
WRKSRC.mysql= ${WRKDIR}/epsg-v6_11sql-mySQL
NO_BUILD= yes
BINDIR= ${PREFIX}/bin
DOCDIR= ${PREFIX}/share/doc/epsg
EPSGDIR= ${PREFIX}/share/epsg
MESSAGE_SUBST+= DOCDIR=${DOCDIR:Q}
MESSAGE_SUBST+= EPSGDIR=${EPSGDIR:Q}
DATAFILES.pgsql+= EPSG_v6_11.mdb_Data_PostgreSQL.sql
DATAFILES.pgsql+= EPSG_v6_11.mdb_FKeys_PostgreSQL.sql
DATAFILES.pgsql+= EPSG_v6_11.mdb_Tables_PostgreSQL.sql
DATAFILES.mysql+= EPSG_v6_11.mdb_Data_MySQL.sql
DATAFILES.mysql+= EPSG_v6_11.mdb_FKeys_MySQL.sql
DATAFILES.mysql+= EPSG_v6_11.mdb_Tables_MySQL.sql
SUBST_CLASSES+= epsg
SUBST_STAGE.epsg= configure
SUBST_FILES.epsg= epsg.sh
SUBST_SED.epsg= -e "s:$$[{]PREFIX[}]:${PREFIX:Q}:"
SUBST_SED.epsg+= -e "s:$$[{]EPSGDIR[}]:${EPSGDIR:Q}:"
SUBST_MESSAGE.epsg= Fixing EPSG example script
post-extract:
${CP} ${_DISTDIR}/G7-1.pdf ${WRKSRC}
${CP} ${_DISTDIR}/G7-2.pdf ${WRKSRC}
${CP} ${FILESDIR}/epsg-load ${WRKSRC}
do-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${EPSGDIR}
${INSTALL_DATA} ${WRKSRC}/G7-1.pdf ${DOCDIR:Q}
${INSTALL_DATA} ${WRKSRC}/G7-2.pdf ${DOCDIR:Q}
${INSTALL_DATA} ${WRKSRC}/epsg-v6_11-readme.pdf ${DOCDIR:Q}
${INSTALL_SCRIPT} ${WRKSRC}/epsg-load ${BINDIR}
.for d in pgsql mysql
.for f in ${DATAFILES.${d}}
${INSTALL_DATA} ${WRKSRC.${d}}/${f} ${EPSGDIR:Q}/${f}
.endfor
.endfor
.include "../../mk/bsd.pkg.mk"
|