Edit

IABSD.fr/ports/comms/hamlib/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2024-05-06 12:22:30
    Hash : b980bb55
    Message : bump REVISION for py3.10 -> py3.11 switch

  • comms/hamlib/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
    
    REVISION-main=	1
    REVISION-python=2
    REVISION-tcl=	1
    
    MULTI_PACKAGES=	-main -python -tcl
    
    SHARED_LIBS +=	hamlib               4.0      # 4.4
    SHARED_LIBS +=	hamlib++             4.0      # 4.4
    
    HOMEPAGE=	https://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}
    
    SITES=			${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 \
    			--without-indi
    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>