mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
7ad72d866d
Add USES=xorg and USES=gl to ports in categories starting with 'l' and 'm'. While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
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>
|