diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-05-17 18:58:23 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-05-17 18:58:23 +0000 |
commit | f68a3224baa32618b315709aacb9bb17785c5e1f (patch) | |
tree | 26f5bbc9503205abd9eae15d048bf2881c5dd060 /comms | |
parent | 00c4181b3ecc512d6668a128a4510d259aa0f1d5 (diff) | |
download | ports-f68a3224baa32618b315709aacb9bb17785c5e1f.tar.gz ports-f68a3224baa32618b315709aacb9bb17785c5e1f.zip |
Notes
Diffstat (limited to 'comms')
-rw-r--r-- | comms/Makefile | 1 | ||||
-rw-r--r-- | comms/fl_moxgen/Makefile | 42 | ||||
-rw-r--r-- | comms/fl_moxgen/distinfo | 2 | ||||
-rw-r--r-- | comms/fl_moxgen/files/patch-Makefile | 50 | ||||
-rw-r--r-- | comms/fl_moxgen/pkg-descr | 5 | ||||
-rw-r--r-- | comms/fl_moxgen/pkg-plist | 3 |
6 files changed, 103 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile index 48abc272eb6a..2a09ff80ee7f 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -32,6 +32,7 @@ SUBDIR += efax-gtk SUBDIR += ems-flasher SUBDIR += esmska + SUBDIR += fl_moxgen SUBDIR += fldigi SUBDIR += flwrap SUBDIR += gammu diff --git a/comms/fl_moxgen/Makefile b/comms/fl_moxgen/Makefile new file mode 100644 index 000000000000..48ffefc68237 --- /dev/null +++ b/comms/fl_moxgen/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: fl_moxgen +# Date created: 2012-05-15 +# Whom: Stephen Hurd <shurd@sasktel.net> +# +# $FreeBSD$ +# + +PORTNAME= fl_moxgen +PORTVERSION= 0.05 +CATEGORIES= comms hamradio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= flmoxgen +DISTNAME= Fl_MoxGen-${PORTVERSION} + +MAINTAINER= shurd@sasktel.net +COMMENT= Compute the dimensions of a Moxon Rectangle antenna + +LICENSE= GPLv3 + +LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk + +DESKTOP_ENTRIES= "Fl_MoxGen" "${COMMENT}" "" "${PORTNAME}" \ + "Network;HamRadio;" "false" + +OPTIONS= PDF "Enable PDF Writing (requires libharu)" on + +.include <bsd.port.options.mk> + +.ifdef WITH_PDF + LIB_DEPENDS+= hpdf:${PORTSDIR}/print/libharu + ALL_TARGET= fl_moxgen +.else + ALL_TARGET= fl_moxgen_no_pdf +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \ + -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + -e 's|%%DATADIR%%|${DATADIR}|' \ + ${WRKSRC}/Makefile + +.include <bsd.port.mk> diff --git a/comms/fl_moxgen/distinfo b/comms/fl_moxgen/distinfo new file mode 100644 index 000000000000..2390f20797d0 --- /dev/null +++ b/comms/fl_moxgen/distinfo @@ -0,0 +1,2 @@ +SHA256 (Fl_MoxGen-0.05.tar.gz) = 19271c51438d6762c58b498fcd8b9293295b1f7497f3c52d3635a8710818ba20 +SIZE (Fl_MoxGen-0.05.tar.gz) = 37489 diff --git a/comms/fl_moxgen/files/patch-Makefile b/comms/fl_moxgen/files/patch-Makefile new file mode 100644 index 000000000000..699c5dbac30d --- /dev/null +++ b/comms/fl_moxgen/files/patch-Makefile @@ -0,0 +1,50 @@ +--- Makefile.orig 2009-12-21 18:58:35.000000000 -0800 ++++ Makefile 2012-05-16 00:49:03.000000000 -0700 +@@ -32,10 +32,10 @@ + # BINDIR directory. Files needed at run time will + # be installed in the SHAREDIR directory. + +-BINDIR=/usr/local/bin ++BINDIR=%%PREFIX%%/bin + #BINDIR=/usr/bin + +-SHAREDIR=/usr/local/share/fl_moxgen ++SHAREDIR=%%DATADIR%% + #SHAREDIR=/usr/share/fl_moxgen + + # If libHaru is installed, be sure that LIBHARU_INC +@@ -44,30 +44,24 @@ + # accordingly. If libHaru is not installed, + # comment out both lines. + +-LIBHARU_INC = /usr/local/include ++LIBHARU_INC = %%LOCALBASE%%/include + #LIBHARU_INC = /usr/include + +-# Set the FLTK_INC variable to be the location of the +-# include files for FLTK. +- +-FLTK_INC = /usr/include +-#FLTK_INC = /usr/local/include +- + all: + @if [ -f $(LIBHARU_INC)/hpdf.h ]; \ + then $(MAKE) fl_moxgen; \ + else $(MAKE) fl_moxgen_no_pdf; fi + + write_pdf.o: write_pdf.c +- @$(CC) -c -o write_pdf.o write_pdf.c ++ @$(CC) -c -o write_pdf.o write_pdf.c -I$(LIBHARU_INC) + + fl_moxgen: fl_moxgen.cxx fl_moxgen_defines.h write_pdf.o + @echo "Building Fl_MoxGen with PDF support" +- $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -I$(FLTK_INC) -I. -lfltk -lfltk_images -lhpdf ++ $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -I. `fltk-config --use-images --cxxflags --ldflags` -lhpdf + + fl_moxgen_no_pdf: fl_moxgen.cxx fl_moxgen_defines.h + @echo "Building Fl_MoxGen without PDF support" +- $(CXX) -o fl_moxgen fl_moxgen.cxx -I$(FLTK_INC) -I. -lfltk -lfltk_images ++ $(CXX) -o fl_moxgen fl_moxgen.cxx -I. `fltk-config --use-images --cxxflags --ldflags` + + fl_moxgen_defines.h: + @rm -f fl_moxgen_defines.h diff --git a/comms/fl_moxgen/pkg-descr b/comms/fl_moxgen/pkg-descr new file mode 100644 index 000000000000..bacac3930587 --- /dev/null +++ b/comms/fl_moxgen/pkg-descr @@ -0,0 +1,5 @@ +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. + +WWW: http://home.comcast.net/~andystewart/moxon_sw.html diff --git a/comms/fl_moxgen/pkg-plist b/comms/fl_moxgen/pkg-plist new file mode 100644 index 000000000000..d99cdc29c961 --- /dev/null +++ b/comms/fl_moxgen/pkg-plist @@ -0,0 +1,3 @@ +bin/fl_moxgen +%%DATADIR%%/moxgen.png +@dirrm %%DATADIR%% |