2020-12-04 21:44:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.27 2020/12/04 20:45:31 nia Exp $
|
2003-07-28 16:57:00 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= routeplanner_0.11
|
|
|
|
PKGNAME= routeplanner-cli-0.11
|
2020-12-04 21:44:57 +01:00
|
|
|
PKGREVISION= 6
|
2003-07-28 16:57:00 +02:00
|
|
|
CATEGORIES= misc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=routeplanner/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-03-20 12:57:53 +01:00
|
|
|
HOMEPAGE= http://routeplanner.sourceforge.net/
|
2003-07-28 16:57:00 +02:00
|
|
|
COMMENT= Highway trip planner written in Python
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/routeplanner-0.11
|
2003-07-28 16:57:00 +02:00
|
|
|
NO_BUILD= yes
|
2005-07-15 20:27:48 +02:00
|
|
|
USE_TOOLS+= gzip
|
2003-07-28 16:57:00 +02:00
|
|
|
|
2014-01-25 11:45:15 +01:00
|
|
|
REPLACE_PYTHON= rpcli
|
2019-11-03 18:04:19 +01:00
|
|
|
RPLIBDIR= ${PREFIX}/lib/routeplanner
|
|
|
|
RPPY= rpcli.py rpcountry.py rpdbase.py rpunits.py rpcity.py rproute.py
|
|
|
|
RPDB= Basic-USA.rpl3 NorthAmerica.rpl3
|
2003-07-28 16:57:00 +02:00
|
|
|
|
|
|
|
RP_LIBDIR_SED= "s|/usr/share/routeplanner|${RPLIBDIR}|g"
|
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2003-07-28 16:57:00 +02:00
|
|
|
post-patch:
|
|
|
|
for i in rpcli rpcli.py;do \
|
|
|
|
${MV} ${WRKSRC}/$$i ${WRKSRC}/$$i.tmp && \
|
|
|
|
${SED} ${RP_LIBDIR_SED} <${WRKSRC}/$$i.tmp >${WRKSRC}/$$i; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-install:
|
2008-03-04 20:21:10 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rpcli ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${RPLIBDIR}
|
2003-07-28 16:57:00 +02:00
|
|
|
for i in ${RPPY}; do \
|
2008-03-04 20:21:10 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${RPLIBDIR}; \
|
2003-07-28 16:57:00 +02:00
|
|
|
done
|
|
|
|
for i in ${RPDB}; do \
|
2008-03-04 20:21:10 +01:00
|
|
|
${GZIP_CMD} -c ${WRKSRC}/$$i >${DESTDIR}${RPLIBDIR}/$$i.gz; \
|
2003-07-28 16:57:00 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
# optional speedup
|
2019-11-03 18:04:19 +01:00
|
|
|
#PYTHON_VERSIONS_INCOMPATIBLE= 36 # py-kjbuckets
|
2004-04-26 02:12:41 +02:00
|
|
|
#.include "../../devel/py-kjbuckets/buildlink3.mk"
|
|
|
|
#.include "../../devel/py-pqueue/buildlink3.mk"
|
2003-07-28 16:57:00 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|