summaryrefslogtreecommitdiff
path: root/comms/hamlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'comms/hamlib/Makefile')
-rw-r--r--comms/hamlib/Makefile54
1 files changed, 31 insertions, 23 deletions
diff --git a/comms/hamlib/Makefile b/comms/hamlib/Makefile
index 4414d9b94947..488a170cb6ad 100644
--- a/comms/hamlib/Makefile
+++ b/comms/hamlib/Makefile
@@ -1,5 +1,5 @@
PORTNAME= hamlib
-PORTVERSION= 4.6.4
+DISTVERSION= 4.6.5
CATEGORIES= comms hamradio
MASTER_SITES= SF
@@ -7,31 +7,40 @@ MAINTAINER= hamradio@FreeBSD.org
COMMENT= Shared libraries for Amateur Radio Equipment Control Applications
WWW= https://sourceforge.net/projects/hamlib/
-LICENSE= LGPL20
+LICENSE= GPLv2+ LGPL21+
+LICENSE_COMB= multi
+LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING
+LICENSE_FILE_LGPL21+ = ${WRKSRC}/COPYING.LIB
BUILD_DEPENDS= swig:devel/swig
-LIB_DEPENDS= libltdl.so:devel/libltdl
-USES= autoreconf gnome libtool:keepla localbase:ldflags perl5 pkgconfig python \
- readline shebangfix tcl
-USE_GNOME= libxml2
+USES= autoreconf gnome libtool:keepla localbase:ldflags perl5 \
+ pkgconfig python readline shebangfix tcl
USE_LDCONFIG= yes
USE_PERL5= build run
USE_PYTHON= py3kplist
# $TCL_INCLUDE_SPEC
SHEBANG_FILES= bindings/perltest.pl
+
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-perl-binding \
- --with-tcl-binding --with-tcl=${TCL_LIBDIR} \
- --with-libusb \
- --with-python-binding
-CONFIGURE_ENV= LIBUSB_LIBS="-lusb" cf_with_cxx=yes
+CONFIGURE_ARGS= --with-libusb \
+ --with-perl-binding \
+ --with-python-binding \
+ --with-tcl-binding \
+ --with-tcl=${TCL_LIBDIR}
+CONFIGURE_ENV= cf_with_cxx=yes \
+ LIBUSB_LIBS="-lusb"
+
INSTALL_TARGET= install-strip
-CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
+
PLIST_SUB= TCL_VER=${TCL_VER}
-OPTIONS_DEFINE= DOCS
+PORTDOCS= AUTHORS COPYING* ChangeLog INSTALL LICENSE NEWS PLAN README* THANKS
+
+OPTIONS_DEFINE= DOCS STATIC
+OPTIONS_SUB= yes
+
+STATIC_CONFIGURE_ENABLE= static
post-build:
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' \
@@ -39,14 +48,13 @@ post-build:
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Hamlib/Hamlib.so
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for d in ${WRKSRC}/AUTHORS ${WRKSRC}/COPYING ${WRKSRC}/COPYING.LIB \
- ${WRKSRC}/ChangeLog ${WRKSRC}/INSTALL ${WRKSRC}/LICENSE \
- ${WRKSRC}/NEWS ${WRKSRC}/PLAN ${WRKSRC}/README \
- ${WRKSRC}/README.betatester ${WRKSRC}/README.osx \
- ${WRKSRC}/README.developer ${WRKSRC}/README.freqranges \
- ${WRKSRC}/README.multicast ${WRKSRC}/THANKS
- ${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
-.endfor
+
+post-install-DOCS-on:
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+post-install-DOCS-off:
+# Upstream scripts install some of the ${PORTDOCS} by default,
+# so we need to remove the whole ${STAGEDIR}${DOCSDIR} explicitly.
+ ${RM} -r ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>