summaryrefslogtreecommitdiff
path: root/geography/epsg/Makefile
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2006-10-03 12:53:44 +0000
committergdt <gdt@pkgsrc.org>2006-10-03 12:53:44 +0000
commit1f2b627621e39b4481a96795242ad5a78b0c5a86 (patch)
treeb2d77cd74899618f6a4d8fd77f799a03fc1baba2 /geography/epsg/Makefile
parentf484c5f61962cc1164b578f72a120de439a71ba8 (diff)
downloadpkgsrc-1f2b627621e39b4481a96795242ad5a78b0c5a86.tar.gz
Packaging update from Brook Milligan:
change DIST_SUBDIR to be based on date add helper script to load data into a database PKGREVISION++
Diffstat (limited to 'geography/epsg/Makefile')
-rw-r--r--geography/epsg/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/geography/epsg/Makefile b/geography/epsg/Makefile
index 20f928dc027..7066ed41bac 100644
--- a/geography/epsg/Makefile
+++ b/geography/epsg/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2006/08/23 18:29:53 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2006/10/03 12:53:44 gdt Exp $
#
DISTNAME= epsg-v6_11sql-PostgreSQL
PKGNAME= epsg-6.11
+PKGREVISION= 1
CATEGORIES= geography databases
MASTER_SITES+= http://www.epsg.org/databases/
DISTFILES+= epsg-v6_11sql-PostgreSQL.zip \
@@ -10,7 +11,7 @@ DISTFILES+= epsg-v6_11sql-PostgreSQL.zip \
G7-1.pdf G7-2.pdf
EXTRACT_ONLY= epsg-v6_11sql-PostgreSQL.zip \
epsg-v6_11sql-mySQL.zip
-DIST_SUBDIR= epsg-6.11
+DIST_SUBDIR= epsg-20060823
MAINTAINER= brook@nmsu.edu
HOMEPAGE= http://www.epsg.org/
@@ -31,9 +32,11 @@ WRKSRC.mysql= ${WRKDIR}/epsg-v6_11sql-mySQL
NO_BUILD= yes
DOCDIR= ${PREFIX}/share/doc/epsg
+EGDIR= ${PREFIX}/share/examples/epsg
EPSGDIR= ${PREFIX}/share/epsg
MESSAGE_SUBST+= DOCDIR=${DOCDIR:Q}
+MESSAGE_SUBST+= EGDIR=${EGDIR:Q}
MESSAGE_SUBST+= EPSGDIR=${EPSGDIR:Q}
DATAFILES.pgsql+= EPSG_v6_11.mdb_Data_PostgreSQL.sql
@@ -44,16 +47,26 @@ 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.sh ${WRKSRC}
do-install:
- ${INSTALL_DATA_DIR} ${EPSGDIR}
${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${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.sh ${EGDIR}/epsg
.for d in pgsql mysql
.for f in ${DATAFILES.${d}}
${INSTALL_DATA} ${WRKSRC.${d}}/${f} ${EPSGDIR:Q}/${f}