1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/multimedia/py-openlp/Makefile
Tobias C. Berner f3c180c343 Update Qt5 to 5.7.1, and unify the Qt4 and Qt5 ports some more
* Update Qt5 to 5.7.1
* Move Qt4 binaries to lib/qt4/bin
* Move Qt5 libraries to lib/qt5/lib
  By moving the libraries we should finally be able to get rid of the inplace
  upgrade bug (see ports bugs 194088, 195105 and 198720):  when Qt5's libraries
  were lying in /usr/local/lib, which would often get added by pkgconfig to the
  linker paths via dependencies, the already installed libraries were linked
  against, instead of the ones that were being built. This forced us to make
  sure, that -L${WRKSRC}/lib was always coming before -L/usr/local/lib in the
  linker flags. With this change this should no longer be the case.
* Rename some ports to match the rest (foo-qtX -> qtX-foo)
* Depend on new port misc/qtchooser [see UPDATING & CHANGES]

There are several new Qt5 ports which all have been created by Marie Loise Nolden
<nolden@kde.org>. Thanks again.

PR:		216797
Exp-Run by:	antoine
Reviewed by:	rakuco, mat, groot_kde.org
Approved by:	rakuco (mentor)
Differential Revision:	https://reviews.freebsd.org/D9213
2017-02-18 19:48:05 +00:00

59 lines
2.3 KiB
Makefile

# $FreeBSD$
PORTNAME= OpenLP
PORTVERSION= 2.1.6
PORTREVISION= 1
CATEGORIES= multimedia python
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= tabthorpe@FreeBSD.org
COMMENT= Open Source Lyrics Projection
LICENSE= GPLv2
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sip>=0:devel/py-sip \
${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako \
${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=1.0.13:databases/py-sqlalchemy10
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup32>0:www/py-beautifulsoup32 \
${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml \
${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=1.0.13:databases/py-sqlalchemy10 \
${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet \
${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako \
${PYTHON_PKGNAMEPREFIX}enchant>0:textproc/py-enchant \
${PYTHON_PKGNAMEPREFIX}sqlalchemy-migrate>=0.6.1:databases/py-sqlalchemy-migrate \
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3 \
unoconv:textproc/unoconv
USES= desktop-file-utils pyqt:4 python
USE_PYQT= core gui \
network_run opengl_run phonon_run svg_run test_run webkit_run
USE_PYTHON= distutils autoplist
USE_GSTREAMER= good bad ugly
USE_QT4= linguist phonon-gst
QT_LRELEASE= ${LRELEASE}
NO_ARCH= yes
pre-build:
@${RM} ${WRKSRC}/resources/__init__.py
@${MKDIR} ${WRKSRC}/resources/i18n/qm
@set -e; \
for TSFILE in ${WRKSRC}/resources/i18n/*.ts; do \
${QT_LRELEASE} $$TSFILE -qm ${WRKSRC}/resources/i18n/qm/`basename $$TSFILE .ts`.qm; \
done
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/openlp/i18n
${INSTALL_DATA} ${WRKSRC}/resources/i18n/qm/*.qm ${STAGEDIR}${PREFIX}/share/openlp/i18n
${LN} -sf openlp.pyw ${STAGEDIR}${PREFIX}/bin/openlp
${INSTALL_DATA} ${WRKSRC}/resources/openlp.desktop ${STAGEDIR}${PREFIX}/share/applications
set -e; \
for SIZE in 16x16 32x32 48x48 64x64 128x128 256x256; do \
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/$$SIZE/apps && \
${INSTALL_DATA} ${WRKSRC}/resources/images/openlp-logo-$$SIZE.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/$$SIZE/apps/openlp.png; \
done
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
${INSTALL_DATA} ${WRKSRC}/resources/images/openlp-logo.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/openlp.svg
.include <bsd.port.mk>