pkgsrc/x11/cool-retro-term/Makefile
2022-04-18 19:09:40 +00:00

45 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2022/04/18 19:12:21 adam Exp $
DISTNAME= cool-retro-term-1.1.1
PKGREVISION= 3
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=Swordfish90/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/Swordfish90/cool-retro-term
COMMENT= Terminal emulator which mimics old CRT screens
LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake
USE_LANGUAGES= c c++
MAKE_ENV+= INSTALL_ROOT=${DESTDIR:Q}
LDFLAGS.NetBSD+= -lutil # openpty
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= app/app.pro
SUBST_FILES.paths+= cool-retro-term.pro
SUBST_SED.paths= -e 's,/usr,${PREFIX},g'
GITHUB_SUBMODULES= Swordfish90 qmltermwidget \
5c47d1f49455394226e0e595f79c148f0c098006 qmltermwidget
EXTRACT_USING= bsdtar
do-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QTDIR}/bin/qmake \
-unix -recursive cool-retro-term.pro \
${MAKE_ENV} \
QMAKE_CFLAGS=${CFLAGS:Q} \
QMAKE_CXXFLAGS=${CXXFLAGS:Q} \
QMAKE_LFLAGS=${LDFLAGS:Q}
DEPENDS+= qt5-qtgraphicaleffects-[0-9]*:../../x11/qt5-qtgraphicaleffects
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtdeclarative/buildlink3.mk"
.include "../../x11/qt5-qtquickcontrols/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"