blob: d01c03442bf25720d7ef87ed2724295e04f40b39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
PORTNAME= lxi-tools
DISTVERSIONPREFIX= v
DISTVERSION= 1.21
PORTREVISION= 1
CATEGORIES= misc
MAINTAINER= dmgk@FreeBSD.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= gl 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>
|