QtChooser allows you to select your version of Qt among those installed. However, this tool is no longer supported upstream and will not be available for Qt6. By default, our Qt installations are done in ${LOCALBASE}/lib/qt${QT_VERSION} as recommended. We have added symbolic linking for the main binaries to ${LOCALBASE}/bin with the suffix -qt5.
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
PORTNAME= abGate
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.2.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio
|
|
PKGNAMESUFFIX= -lv2
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Noise gate LV2 plugin
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= lv2>0:audio/lv2
|
|
|
|
USES= compiler:c++11-lang gl gmake gnome pkgconfig qt:5 xorg
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= antanasbruzas
|
|
USE_CXXSTD= c++11
|
|
USE_QT= core gui widgets buildtools_build qmake_build
|
|
USE_GL= gl
|
|
USE_GNOME= atkmm gtk20 gtkmm24 libsigc++20
|
|
USE_LDCONFIG= yes
|
|
|
|
# Makefile directly calls 'qmake' binary. Give it such.
|
|
BINARY_ALIAS= qmake=${QMAKE}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e ' \
|
|
s|PREFIX = |PREFIX ?= |; \
|
|
s|g++|$$(CXX)|; \
|
|
s|CPPFLAGS|CXXFLAGS|; \
|
|
s| -g -O3||; \
|
|
s|cd abGateQt; qmake; make|cd abGateQt; $(QMAKE) \&\& $$(MAKE)|' \
|
|
${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -E ' \
|
|
s|^QMAKE_CXXFLAGS (.*)|QMAKE_CXXFLAGS = ${CXXFLAGS}|; \
|
|
s|^QMAKE_LFLAGS (.*)|QMAKE_LFLAGS = ${LDFLAGS}|' \
|
|
${WRKSRC}/abGateQt/abGateQt.pro
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lv2/abGate.lv2/*.so
|
|
|
|
.include <bsd.port.mk>
|