mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
8d6597e0bb
With hat: portmgr Sponsored by: Absolight
36 lines
821 B
Makefile
36 lines
821 B
Makefile
# Created by: Pawel Pekala <c0rn@o2.pl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qnapi
|
|
PORTVERSION= 0.2.1
|
|
CATEGORIES= polish multimedia
|
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
|
COMMENT= Qt5 based subtitle downloader
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/doc/LICENSE
|
|
|
|
BUILD_DEPENDS= qt-maybe>0:devel/qt-maybe \
|
|
libmaia>0:net/libmaia
|
|
LIB_DEPENDS= libmediainfo.so:multimedia/libmediainfo
|
|
RUN_DEPENDS= 7z:archivers/p7zip
|
|
|
|
USE_GITHUB= yes
|
|
|
|
USES= compiler:c++11-lib pkgconfig qmake
|
|
USE_QT5= buildtools_build gui network widgets xml
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include/maia
|
|
QMAKE_ARGS= LIBS=-lmaia
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|/usr|${PREFIX}|; s|share/man|man|; /doc \\/d' \
|
|
${WRKSRC}/qnapi.pro
|
|
|
|
post-install:
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} qnapi-download.desktop \
|
|
qnapi-scan.desktop ${STAGEDIR}${DESKTOPDIR})
|
|
|
|
.include <bsd.port.mk>
|