68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
COMMENT-main= radio/rotator control library
|
|
COMMENT-python= python bindings for hamlib
|
|
COMMENT-tcl= tcl bindings for hamlib
|
|
|
|
VERSION= 4.4
|
|
DISTNAME= hamlib-${VERSION}
|
|
CATEGORIES= comms hamradio
|
|
|
|
MULTI_PACKAGES= -main -python -tcl
|
|
|
|
SHARED_LIBS += hamlib 4.0 # 4.4
|
|
SHARED_LIBS += hamlib++ 4.0 # 4.4
|
|
|
|
HOMEPAGE= http://hamlib.sourceforge.net/
|
|
|
|
MODULES= lang/python \
|
|
lang/tcl
|
|
|
|
# GPLv2/LGPLv2.1
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
|
|
cWANTLIB= m pthread usb-1.0
|
|
WANTLIB-main= ${cWANTLIB} ${COMPILER_LIBCXX} \
|
|
c curses iconv lzma perl readline xml2 z
|
|
WANTLIB-python= ${cWANTLIB} hamlib iconv intl util ${MODPY_WANTLIB}
|
|
WANTLIB-tcl= ${cWANTLIB} hamlib ${MODTCL_WANTLIB}
|
|
|
|
LIB_DEPENDS-main= textproc/libxml \
|
|
devel/libusb1 \
|
|
${MODGCC4_CPPLIBDEP}
|
|
LIB_DEPENDS-python= ${BUILD_PKGPATH} \
|
|
${MODPY_LIB_DEPENDS}
|
|
LIB_DEPENDS-tcl= ${BUILD_PKGPATH} \
|
|
${MODTCL_LIB_DEPENDS}
|
|
|
|
BUILD_DEPENDS= devel/swig
|
|
|
|
RUN_DEPENDS-main=
|
|
RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS}
|
|
RUN_DEPENDS-tcl= ${MODTCL_RUN_DEPENDS}
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hamlib/}
|
|
|
|
CONFIGURE_STYLE= autoreconf
|
|
AUTOCONF_VERSION= 2.69
|
|
AUTOMAKE_VERSION= 1.16
|
|
|
|
CONFIGURE_ARGS= --with-cxx-binding \
|
|
--with-perl-binding \
|
|
--with-rpc-backends \
|
|
--with-tcl-binding \
|
|
--with-python-binding \
|
|
--with-tcl=${MODTCL_LIBDIR} \
|
|
--with-xml-support
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
post-install:
|
|
rm -f ${PREFIX}/libdata/perl5/site_perl/*-openbsd/perltest.pl \
|
|
${PREFIX}/libdata/perl5/*-openbsd/perllocal.pod
|
|
rmdir ${PREFIX}/libdata/perl5/*-openbsd
|
|
|
|
.include <bsd.port.mk>
|