freebsd-ports/astro/gpsman/Makefile
Chris Rees 422e3bda8b Update to 6.4.4
* new option in file config.tcl indicating whether GPSMan data can be
appended to an existing file when saving; to be used with care as a
file with conflicting time offsets can result that will not be
loaded by GPSMan; asked by Zvi Grauer.
* explicit support for the Garmin Street Pilot I, with thanks to
Martin Espinoza who sent the protocols list.

In addition, I tried to clean up the port a wee bit:
* I removed a line in the Makefile that had been commented-out
Wed Jul 26 08:32:31 2006 UTC (r168793).
* I changed the USE_TK_RUN specification to permit the use of
Tcl/Tk 8.5 (and tested that it brings in 8.5 if that's
available, and that gpsman works with it).

PR:		ports/178112
Submitted by:	dhw (maintainer)
2013-04-24 18:09:51 +00:00

67 lines
2 KiB
Makefile

# New ports collection makefile for: gpsman
# Date created: 26 November 2001
# Whom: David Wolfskill
#
# $FreeBSD$
#
PORTNAME= gpsman
PORTVERSION= 6.4.4
CATEGORIES= astro tk geography
MASTER_SITES= SF/${PORTNAME}/distrib
EXTRACT_SUFX= .tgz
MAINTAINER= david@catwhisker.org
COMMENT= A Tcl/Tk-based GPS management utility
USE_TK_RUN= 84+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
SUB_FILES= pkg-message
NO_BUILD= yes
PORTDOCS= *
PORTDATA= *
PLIST_FILES= bin/gpsman
# MAN1= gpsman.1
# MANCOMPRESSED= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800045
GPSMAN_DEFAULT_PORT?= /dev/cuad0
.else
GPSMAN_DEFAULT_PORT?= /dev/cuau0
.endif
post-patch:
@(cd ${WRKSRC} && ${REINPLACE_CMD} "s|/dev/ttyS0|${GPSMAN_DEFAULT_PORT}|" \
util/exerciser.tcl manual/html/info/l_realtime.doc.txt gpsman.tcl)
pre-install:
@${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/gpsman.tcl
do-install:
@${MKDIR} ${PREFIX}/share/gpsman/gmsrc/gmicons
@${MKDIR} ${PREFIX}/share/gpsman/util
${INSTALL_DATA} ${WRKSRC}/gmsrc/*.tcl ${PREFIX}/share/gpsman/gmsrc
${INSTALL_DATA} ${WRKSRC}/gmsrc/gmicons/* ${PREFIX}/share/gpsman/gmsrc/gmicons
${INSTALL_DATA} ${WRKSRC}/util/*.sh ${PREFIX}/share/gpsman/util
${INSTALL_DATA} ${WRKSRC}/util/*.tcl ${PREFIX}/share/gpsman/util
${INSTALL_SCRIPT} ${WRKSRC}/gpsman.tcl ${PREFIX}/share/gpsman
${LN} -fs ${PREFIX}/share/gpsman/gpsman.tcl ${PREFIX}/bin/gpsman
# ${INSTALL_MAN} ${WRKSRC}/gpsman.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/gpsman/html/info
${INSTALL_DATA} ${WRKSRC}/manual/*.pdf ${PREFIX}/share/doc/gpsman
${INSTALL_DATA} ${WRKSRC}/manual/html/*.html ${PREFIX}/share/doc/gpsman/html
${RM} ${PREFIX}/share/doc/gpsman/html/index.html
${LN} ${PREFIX}/share/doc/gpsman/html/GPSMandoc.html ${PREFIX}/share/doc/gpsman/html/index.html
${INSTALL_DATA} ${WRKSRC}/manual/html/*.gif ${PREFIX}/share/doc/gpsman/html
.for i in gif txt ps
${INSTALL_DATA} ${WRKSRC}/manual/html/info/*.${i} ${PREFIX}/share/doc/gpsman/html/info
.endfor
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>