ports/167951: New Port: comms/fl_moxgen Moxon rectangle antenna calculator
Stephen Hurd
shurd at sasktel.net
Wed May 16 08:10:02 UTC 2012
>Number: 167951
>Category: ports
>Synopsis: New Port: comms/fl_moxgen Moxon rectangle antenna calculator
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 16 08:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Stephen Hurd
>Release: 9.0-RELEASE
>Organization:
>Environment:
FreeBSD stephen.hurd.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Fl_MoxGen is a program that will compute the dimensions
of a Moxon Rectangle antenna based on user input of the
desired resonant frequency in MHz and the wire diameter.
>How-To-Repeat:
>Fix:
New port
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# fl_moxgen
# fl_moxgen/Makefile
# fl_moxgen/distinfo
# fl_moxgen/files
# fl_moxgen/files/patch-Makefile
# fl_moxgen/pkg-plist
# fl_moxgen/pkg-descr
#
echo c - fl_moxgen
mkdir -p fl_moxgen > /dev/null 2>&1
echo x - fl_moxgen/Makefile
sed 's/^X//' >fl_moxgen/Makefile << '37050916a91467dd8e510448258d90d3'
X# New ports collection makefile for: fl_moxgen
X# Date created: 2012-05-15
X# Whom: Stephen Hurd <shurd at sasktel.net>
X#
X# $FreeBSD: $
X#
X
XPORTNAME= Fl_MoxGen
XPORTVERSION= 0.05
XCATEGORIES= comms hamradio
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= flmoxgen
X
XMAINTAINER= shurd at sasktel.net
XCOMMENT= Compute the dimensions of a Moxon Rectangle antenna
X
XLICENSE= GPLv3
X
XLIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk
X
XOPTIONS= PDF "Enable PDF Writing (requires libharu)" on
X
X.include <bsd.port.options.mk>
X
X.ifdef WITH_PDF
X LIB_DEPENDS= hpdf:${PORTSDIR}/print/libharu
X ALL_TARGET= fl_moxgen
X.else
X ALL_TARGET= fl_moxgen_no_pdf
X.endif
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
X ${WRKSRC}/Makefile
X
X.include <bsd.port.mk>
37050916a91467dd8e510448258d90d3
echo x - fl_moxgen/distinfo
sed 's/^X//' >fl_moxgen/distinfo << '87b27baf79dea04121740093d183b9ae'
XSHA256 (Fl_MoxGen-0.05.tar.gz) = 19271c51438d6762c58b498fcd8b9293295b1f7497f3c52d3635a8710818ba20
XSIZE (Fl_MoxGen-0.05.tar.gz) = 37489
87b27baf79dea04121740093d183b9ae
echo c - fl_moxgen/files
mkdir -p fl_moxgen/files > /dev/null 2>&1
echo x - fl_moxgen/files/patch-Makefile
sed 's/^X//' >fl_moxgen/files/patch-Makefile << '94ec1cc462eba6ef94fe252b97b763bd'
X--- Makefile.orig 2009-12-21 18:58:35.000000000 -0800
X+++ Makefile 2012-05-16 00:49:03.000000000 -0700
X@@ -32,10 +32,10 @@
X # BINDIR directory. Files needed at run time will
X # be installed in the SHAREDIR directory.
X
X-BINDIR=/usr/local/bin
X+BINDIR=%%LOCALBASE%%/bin
X #BINDIR=/usr/bin
X
X-SHAREDIR=/usr/local/share/fl_moxgen
X+SHAREDIR=%%LOCALBASE%%/share/fl_moxgen
X #SHAREDIR=/usr/share/fl_moxgen
X
X # If libHaru is installed, be sure that LIBHARU_INC
X@@ -44,30 +44,24 @@
X # accordingly. If libHaru is not installed,
X # comment out both lines.
X
X-LIBHARU_INC = /usr/local/include
X+LIBHARU_INC = %%LOCALBASE%%/include
X #LIBHARU_INC = /usr/include
X
X-# Set the FLTK_INC variable to be the location of the
X-# include files for FLTK.
X-
X-FLTK_INC = /usr/include
X-#FLTK_INC = /usr/local/include
X-
X all:
X @if [ -f $(LIBHARU_INC)/hpdf.h ]; \
X then $(MAKE) fl_moxgen; \
X else $(MAKE) fl_moxgen_no_pdf; fi
X
X write_pdf.o: write_pdf.c
X- @$(CC) -c -o write_pdf.o write_pdf.c
X+ @$(CC) -c -o write_pdf.o write_pdf.c -I$(LIBHARU_INC)
X
X fl_moxgen: fl_moxgen.cxx fl_moxgen_defines.h write_pdf.o
X @echo "Building Fl_MoxGen with PDF support"
X- $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -I$(FLTK_INC) -I. -lfltk -lfltk_images -lhpdf
X+ $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -I. `fltk-config --use-images --cxxflags --ldflags` -lhpdf
X
X fl_moxgen_no_pdf: fl_moxgen.cxx fl_moxgen_defines.h
X @echo "Building Fl_MoxGen without PDF support"
X- $(CXX) -o fl_moxgen fl_moxgen.cxx -I$(FLTK_INC) -I. -lfltk -lfltk_images
X+ $(CXX) -o fl_moxgen fl_moxgen.cxx -I. `fltk-config --use-images --cxxflags --ldflags`
X
X fl_moxgen_defines.h:
X @rm -f fl_moxgen_defines.h
94ec1cc462eba6ef94fe252b97b763bd
echo x - fl_moxgen/pkg-plist
sed 's/^X//' >fl_moxgen/pkg-plist << '48d661d59e65a5039a5e783d228a3b64'
Xbin/fl_moxgen
Xshare/fl_moxgen/moxgen.png
X at dirrm share/fl_moxgen
48d661d59e65a5039a5e783d228a3b64
echo x - fl_moxgen/pkg-descr
sed 's/^X//' >fl_moxgen/pkg-descr << '45287c68f7f650bcf965facb4d163f3a'
XFl_MoxGen is a program that will compute the dimensions
Xof a Moxon Rectangle antenna based on user input of the
Xdesired resonant frequency in MHz and the wire diameter.
X
XWWW: http://home.comcast.net/~andystewart/moxon_sw.html
45287c68f7f650bcf965facb4d163f3a
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list