summaryrefslogtreecommitdiffstats
path: root/comms/yfklog/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'comms/yfklog/Makefile')
-rw-r--r--comms/yfklog/Makefile48
1 files changed, 26 insertions, 22 deletions
diff --git a/comms/yfklog/Makefile b/comms/yfklog/Makefile
index 8723f27..f6996dd 100644
--- a/comms/yfklog/Makefile
+++ b/comms/yfklog/Makefile
@@ -6,12 +6,15 @@
#
PORTNAME= yfklog
-PORTVERSION= 0.3.4
+PORTVERSION= 0.3.5
CATEGORIES= comms hamradio
MASTER_SITES= http://fkurz.net/ham/yfklog/ \
- http://www.db.net/downloads/ \
- ${MASTER_SITE_LOCAL}
+ ${MASTER_SITE_LOCAL} \
+ http://www.db.net/downloads/
MASTER_SITE_SUBDIR= db
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz yfk.png
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
MAINTAINER= db@FreeBSD.org
COMMENT= Amateur Radio curses based logging program
@@ -19,6 +22,7 @@ COMMENT= Amateur Radio curses based logging program
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Curses.pm:${PORTSDIR}/devel/p5-Curses \
${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite \
${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
+ ${SITE_PERL}/${PERL_ARCH}/Hamlib.pm:${PORTSDIR}/comms/hamlib \
${SITE_PERL}/Net/FTP.pm:${PORTSDIR}/net/p5-Net-FTP-File
USE_PERL5= yes
@@ -31,30 +35,30 @@ post-patch:
@${REINPLACE_CMD} -e 's|prefix="/usr"|prefix="${PREFIX}"|' \
${WRKSRC}/yfk ${WRKSRC}/yfksubs.pl
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/yfk ${PREFIX}/bin/yfklog
- ${INSTALL_DATA} ${FILESDIR}/yfklog.1 ${MANPREFIX}/man/man1
- ${MKDIR} ${DATADIR}
-.for f in ${WRKSRC}/cty.dat ${WRKSRC}/db_calls.sql db_clubs.sql \
- ${WRKSRC}/db_config.sql ${WRKSRC}/db_log.sql ${WRKSRC}/db_log.sqlite \
- ${WRKSRC}/zweckform3421.lab ${WRKSRC}/zweckform3475.lab yfksubs.pl \
- ${WRKSRC}/zweckform3657.lab ${WRKSRC}/config
+ @${INSTALL_SCRIPT} ${WRKSRC}/yfk ${PREFIX}/bin/yfklog
+ @${INSTALL_DATA} ${FILESDIR}/yfklog.1 ${MANPREFIX}/man/man1
+ @${INSTALL_SCRIPT} ${WRKSRC}/yfksubs.pl ${PREFIX}/libexec/yfksubs.pl
+ @${INSTALL_DATA} ${_DISTDIR}/yfk.png ${PREFIX}/share/pixmaps/yfklog.png
+ @${MKDIR} ${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 ${DATADIR}
.endfor
- ${MKDIR} ${EXAMPLESDIR}/onlinelog
-.for f in ${WRKSRC}/onlinelog/README ${WRKSRC}/onlinelog/search.php \
- ${WRKSRC}/onlinelog/test.txt
- ${INSTALL_DATA} ${WRKSRC}/$f ${EXAMPLESDIR}/onlinelog
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}/onlinelog
+.for f in README search.php test.txt
+ @${INSTALL_DATA} ${WRKSRC}/onlinelog/$f ${EXAMPLESDIR}/onlinelog
.endfor
- ${MKDIR} ${EXAMPLESDIR}/clubs
-.for f in ${WRKSRC}/clubs/README ${WRKSRC}/clubs/hsc2sql.awk \
- ${WRKSRC}/clubs/hscmember.txt
- ${INSTALL_DATA} ${WRKSRC}/$f ${EXAMPLESDIR}/clubs
+ @${MKDIR} ${EXAMPLESDIR}/clubs
+.for f in README hsc2sql.awk hscmember.txt
+ @${INSTALL_DATA} ${WRKSRC}/clubs/$f ${EXAMPLESDIR}/clubs
.endfor
+.endif
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for d in ${WRKSRC}/AUTHORS ${WRKSRC}/CHANGELOG ${WRKSRC}/INSTALL \
- ${WRKSRC}/MANUAL ${WRKSRC}/README ${WRKSRC}/RELEASENOTES
- @${INSTALL_DATA} ${WRKSRC}/${d} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
+.for f in AUTHORS CHANGELOG COPYING INSTALL MANUAL README RELEASENOTES
+ @${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
.endfor
.endif
OpenPOWER on IntegriCloud