1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/comms/yfklog/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

59 lines
1.9 KiB
Makefile

# Created by: db
# $FreeBSD$
PORTNAME= yfklog
PORTVERSION= 0.3.5
CATEGORIES= comms hamradio
MASTER_SITES= http://fkurz.net/ham/yfklog/ \
LOCAL/db
DISTFILES= ${DISTNAME}.tar.gz yfk.png
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Amateur Radio curses based logging program
LICENSE= GPLv2
RUN_DEPENDS= p5-Curses>=0:${PORTSDIR}/devel/p5-Curses \
p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite \
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
hamlib>=0:${PORTSDIR}/comms/hamlib \
p5-Net-FTP-File>=0:${PORTSDIR}/net/p5-Net-FTP-File
USES= perl5
NO_BUILD= yes
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \
${WRKSRC}/yfk ${WRKSRC}/yfksubs.pl
@${REINPLACE_CMD} -e 's|prefix="/usr"|prefix="${PREFIX}"|' \
${WRKSRC}/yfk ${WRKSRC}/yfksubs.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/yfk ${STAGEDIR}${PREFIX}/bin/yfklog
${INSTALL_DATA} ${FILESDIR}/yfklog.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/yfksubs.pl ${STAGEDIR}${PREFIX}/libexec/yfksubs.pl
${INSTALL_DATA} ${_DISTDIR}/yfk.png ${STAGEDIR}${PREFIX}/share/pixmaps/yfklog.png
${MKDIR} ${STAGEDIR}${DATADIR}
.for f in cty.dat db_calls.sql db_clubs.sql \
db_config.sql db_log.sql db_log.sqlite \
zweckform3421.lab zweckform3475.lab zweckform3657.lab config
@${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR}
.endfor
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/onlinelog
.for f in README search.php test.txt
${INSTALL_DATA} ${WRKSRC}/onlinelog/$f ${STAGEDIR}${EXAMPLESDIR}/onlinelog
.endfor
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/clubs
.for f in README hsc2sql.awk hscmember.txt
${INSTALL_DATA} ${WRKSRC}/clubs/$f ${STAGEDIR}${EXAMPLESDIR}/clubs
.endfor
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in AUTHORS CHANGELOG COPYING INSTALL MANUAL README RELEASENOTES
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>