freebsd-ports/devel/xopcodecalc/Makefile
2022-01-01 17:19:50 +00:00

37 lines
884 B
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= ${GH_PROJECT:[1]:tl}
PORTVERSION= 0.04
CATEGORIES= devel
MAINTAINER= danfe@FreeBSD.org
COMMENT= Graphical x86 CPU opcode calculator
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= pkgconfig qt:5
GNU_CONFIGURE= yes
USE_QT= buildtools_build qmake_build core gui widgets
USE_GITHUB= yes
GH_ACCOUNT= horsicq
GH_PROJECT= XOpcodeCalc XOptions:xo
GH_TAGNAME= 05201c2:xo
GH_SUBDIR= XOptions:xo
post-extract:
@${CHMOD} +x ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/release/xocalc \
${STAGEDIR}${PREFIX}/bin
cd ${INSTALL_WRKSRC}/LINUX && ${COPYTREE_SHARE} hicolor \
${STAGEDIR}${PREFIX}/share/icons
${SED} -e 's,#VERSION#,${PORTVERSION},' \
${WRKSRC}/LINUX/xocalc.desktop \
> ${STAGEDIR}${DESKTOPDIR}/xocalc.desktop
.include <bsd.port.mk>
PATCH_ARGS+= -l