diff --git a/comms/xnec2c/Makefile b/comms/xnec2c/Makefile index 9ce55ee10935..654a0bf934a0 100644 --- a/comms/xnec2c/Makefile +++ b/comms/xnec2c/Makefile @@ -1,25 +1,40 @@ PORTNAME= xnec2c -PORTVERSION= 4.4.12 +PORTVERSION= 4.4.16 DISTVERSIONPREFIX= v -PORTREVISION= 3 CATEGORIES= comms hamradio MASTER_SITES= https://www.xnec2c.org/releases/ \ LOCAL/db MAINTAINER= hamradio@FreeBSD.org COMMENT= Used to calculate antenna patterns useful to ham radio -WWW= https://www.qsl.net/5b4az/ +WWW= https://www.xnec2c.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -USES= autoreconf desktop-file-utils gettext gmake gnome pkgconfig shared-mime-info +USES= autoreconf desktop-file-utils gettext gmake gnome pkgconfig \ + shared-mime-info -GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share -CONFIGURE_ENV+= LIBS=-lexecinfo -CONFIGURE_ENV+= LDFLAGS="-L/${LOCALBASE}/lib ${LDFLAGS}" +GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share +CONFIGURE_ENV+= LIBS=-lexecinfo +USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 intltool -USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 intltool +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in NEC2-bug.txt nec2c.txt xnec2c.html NearFieldCalcs.txt + ${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR} +.endfor + @${MKDIR} ${STAGEDIR}${DOCSDIR}/images +.for f in currents.png freq_plots.png radiation.png web-heading.xcf \ + excitation.png nec2_edit.png web-heading.png wire.png + ${INSTALL_DATA} ${WRKSRC}/doc/images/$f ${STAGEDIR}${DOCSDIR}/images +.endfor .include diff --git a/comms/xnec2c/distinfo b/comms/xnec2c/distinfo index c79d25de4ec9..082eb37ffb2b 100644 --- a/comms/xnec2c/distinfo +++ b/comms/xnec2c/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1675124025 -SHA256 (xnec2c-v4.4.12.tar.gz) = e98af1e8b9098df9cc03f90950358b846cc6a2965e79c0114ab711fbe51272c5 -SIZE (xnec2c-v4.4.12.tar.gz) = 1496988 +TIMESTAMP = 1714135914 +SHA256 (xnec2c-v4.4.16.tar.gz) = 5e2662f297e67c78c6a5e3e4472fe91754c0fb945dc57e001ae2b31b95aaae69 +SIZE (xnec2c-v4.4.16.tar.gz) = 1509642 diff --git a/comms/xnec2c/files/patch-Makefile.am b/comms/xnec2c/files/patch-Makefile.am new file mode 100644 index 000000000000..61affd9d742b --- /dev/null +++ b/comms/xnec2c/files/patch-Makefile.am @@ -0,0 +1,25 @@ +--- Makefile.am.orig 2024-04-08 20:35:29 UTC ++++ Makefile.am +@@ -73,22 +73,6 @@ SUFFIXES += .1.in .1 + @$(MKDIR_P) $(@D) + $(SED) $(SED_CMDS) < $< > $@ + +-dist_doc_DATA = +-dist_doc_DATA += doc/NEC2-bug.txt +-dist_doc_DATA += doc/NearFieldCalcs.txt +-dist_doc_DATA += doc/nec2c.txt +-dist_doc_DATA += doc/xnec2c.html +- +-docimagesdir = $(docdir)/images +-dist_docimages_DATA = +-dist_docimages_DATA += doc/images/currents.png +-dist_docimages_DATA += doc/images/excitation.png +-dist_docimages_DATA += doc/images/freq_plots.png +-dist_docimages_DATA += doc/images/nec2_edit.png +-dist_docimages_DATA += doc/images/radiation.png +-dist_docimages_DATA += doc/images/web-heading.png +-dist_docimages_DATA += doc/images/web-heading.xcf +-dist_docimages_DATA += doc/images/wire.png + + + ######################################################################## diff --git a/comms/xnec2c/pkg-message b/comms/xnec2c/pkg-message new file mode 100644 index 000000000000..2f759af5e4ca --- /dev/null +++ b/comms/xnec2c/pkg-message @@ -0,0 +1,9 @@ +[ +{ type: install + message: <