41e5eb4134
Upstream does not provide a NEWS file, but says of 8.1: Version 8.1 of the EPSG Geodetic Parameter Dataset comprises of data corrections and updates to the v8.0 release of August 2012. Changes as documented in Change Records through 2012.093, but with actions still remaining on some change requests. New data for Brazil, Tonga and the Arctic. Significant revisions to data for Brunei and Mayotte. Minor revisions to data for Europe, former Soviet Union and New Zealand.
68 lines
2 KiB
Makefile
68 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.14 2012/12/07 02:19:58 gdt Exp $
|
|
#
|
|
|
|
DISTNAME= epsg-v${VERS}sql-PostgreSQL
|
|
PKGNAME= epsg-8.1
|
|
VERS= 8_1
|
|
VERS_README= 8.1
|
|
CATEGORIES= geography databases
|
|
MASTER_SITES+= http://www.epsg.org/databases/ \
|
|
http://www.epsg.org/databases/Arc/${VERS}/
|
|
DISTFILES+= epsg-v${VERS}sql-PostgreSQL.zip \
|
|
epsg-v${VERS}sql-mySQL.zip
|
|
DIST_SUBDIR= epsg-${VERS}
|
|
|
|
MAINTAINER= brook@nmsu.edu
|
|
HOMEPAGE= http://www.epsg.org/
|
|
COMMENT= EPSG geodetic parameters database
|
|
LICENSE= epsg-license
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
NO_BUILD= yes
|
|
|
|
BINDIR= ${PREFIX}/bin
|
|
DOCDIR= ${PREFIX}/share/doc/epsg
|
|
EPSGDIR= ${PREFIX}/share/epsg
|
|
|
|
INSTALLATION_DIRS= ${BINDIR} ${DOCDIR} ${EPSGDIR}
|
|
|
|
MESSAGE_SUBST+= BINDIR=${BINDIR:Q}
|
|
MESSAGE_SUBST+= EPSGDIR=${EPSGDIR:Q}
|
|
|
|
# Sometimes (8.0), pgsql files are in epsg-v${VERS}sql-PostgreSQL/,
|
|
# with mysql files in epsg-v${VERS}sql-mySQL/.
|
|
# Sometimes (8.1), they appear in the working directory itself.
|
|
DATAFILES.pgsql+= EPSG_v${VERS}.mdb_Data_PostgreSQL.sql
|
|
DATAFILES.pgsql+= EPSG_v${VERS}.mdb_FKeys_PostgreSQL.sql
|
|
DATAFILES.pgsql+= EPSG_v${VERS}.mdb_Tables_PostgreSQL.sql
|
|
|
|
DATAFILES.mysql+= EPSG_v${VERS}.mdb_Data_MySQL.sql
|
|
DATAFILES.mysql+= EPSG_v${VERS}.mdb_FKeys_MySQL.sql
|
|
DATAFILES.mysql+= EPSG_v${VERS}.mdb_Tables_MySQL.sql
|
|
|
|
SUBST_CLASSES+= epsg
|
|
SUBST_STAGE.epsg= do-configure
|
|
SUBST_FILES.epsg= epsg-load
|
|
SUBST_VARS.epsg= PREFIX EPSGDIR VERS
|
|
SUBST_MESSAGE.epsg= Fixing EPSG example script
|
|
|
|
PLIST_SUBST+= VERS=${VERS}
|
|
PLIST_SUBST+= VERS_README=${VERS_README}
|
|
|
|
# Note that the doc files are unpacked twice, once for PostgeSQL and
|
|
# once for mySQL. We assume that they are the same and ignore the
|
|
# issue.
|
|
post-extract:
|
|
${CP} ${FILESDIR}/epsg-load ${WRKSRC}
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/epsg-v${VERS_README}_readme.pdf ${DESTDIR}${DOCDIR:Q}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/epsg-load ${DESTDIR}${BINDIR}
|
|
.for d in pgsql mysql
|
|
.for f in ${DATAFILES.${d}}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EPSGDIR:Q}/${f}
|
|
.endfor
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|