mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
3e98c9faed
Changelog: https://github.com/lxi-tools/lxi-tools/releases/tag/v1.21 PR: 229676 Submitted by: Dmitri Goutnik <dg@syrec.org> (maintainer)
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= lxi-tools
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.21
|
|
CATEGORIES= misc
|
|
|
|
MAINTAINER= dg@syrec.org
|
|
COMMENT= Collection of tools that enables control of LXI compatible instruments
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= liblxi.so:misc/liblxi
|
|
|
|
USES= autoreconf libtool localbase lua:52 pkgconfig readline
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= lxi-tools
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-static \
|
|
--with-bash-completion-dir=${PREFIX}/etc/bash_completion.d
|
|
CFLAGS+= -D_WITH_GETLINE # enable getline(3) prototype
|
|
|
|
PORTDOCS= README
|
|
|
|
PLIST_FILES= bin/lxi \
|
|
etc/bash_completion.d/lxi \
|
|
etc/bash_completion.d/lxi.snap \
|
|
man/man1/lxi.1.gz
|
|
|
|
OPTIONS_DEFINE= DOCS GUI
|
|
|
|
GUI_USES= qmake:no_env qt:5
|
|
GUI_USE= qt=core,gui,charts,widgets,buildtools_build,qmake_build gl=gl
|
|
GUI_CONFIGURE_ENABLE= lxi-gui
|
|
GUI_CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${QT_LIBDIR}"
|
|
GUI_PLIST_FILES= bin/lxi-gui
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '/\$$(QTCHOOSER)/s/-qt=5//' \
|
|
${WRKSRC}/src/gui/lxi-gui/Makefile.am
|
|
|
|
post-install-GUI-on:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lxi-gui
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|