freebsd-ports/multimedia/mpc-qt/Makefile

42 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= mpc-qt
DISTVERSIONPREFIX= v
DISTVERSION= 0.0.0.s20160921
CATEGORIES= multimedia audio
MASTER_SITES= https://aur.archlinux.org/cgit/aur.git/plain/${PORTNAME}.desktop?h=${PORTNAME}-git&id=b1a6b91&dummy=/:desktop
DISTFILES= ${PORTNAME}.desktop:desktop
EXTRACT_ONLY= ${DISTFILES:N*\:desktop:C/:.*//}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Qt 5 clone of Media Player Classic based on libmpv
LICENSE= GPLv2
LIB_DEPENDS= libmpv.so:multimedia/mpv
USE_GITHUB= yes
GH_ACCOUNT= cmdrkotori
GH_TAGNAME= e4c46f6
USES= compiler:c++11-lib desktop-file-utils pkgconfig qmake
USE_QT5= qmake_build buildtools_build core gui network widgets x11extras
USE_GL= gl
CXXFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \
-D_DECLARE_C99_LDBL_MATH # XXX ports/193528
PLIST_FILES= bin/${PORTNAME} \
share/applications/${PORTNAME}.desktop \
share/pixmaps/${PORTNAME}.png
post-patch:
@${REINPLACE_CMD} '/-Werror/d' ${WRKSRC}/${PORTNAME}.pro
do-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.desktop \
${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/images/bitmaps/icon.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.include <bsd.port.mk>