1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/deskutils/fet/Makefile
Tobias Kortkamp 555c187413 deskutils/fet: Fix build on 11.1
In file included from engine/timetableexport.cpp:46:
engine/timetable_defs.h:38:20: error: unknown type name 'constexpr'
template <class T> constexpr std::add_const_t<T>& qAsConst(T& t) noexcept
                   ^

http://beefy10.nyi.freebsd.org/data/111i386-default/478099/logs/fet-5.37.1.log

PR:		230523
Approved by:	maintainer
2018-08-27 08:58:38 +00:00

63 lines
1.7 KiB
Makefile

# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es>
# $FreeBSD$
PORTNAME= fet
DISTVERSION= 5.37.1
CATEGORIES= deskutils kde
MASTER_SITES= http://lalescu.ro/liviu/fet/download/ \
http://lalescu.ro/liviu/fet/download/old/ \
http://timetabling.de/download/ \
http://timetabling.de/download/old/
MAINTAINER= uzsolt@uzsolt.hu
COMMENT= Free timetabling software
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++14-lang qmake tar:bzip2
USE_CXXSTD= c++14
PORTEXAMPLES= *
DESKTOP_ENTRIES="FET" \
"Free timetable software" \
"" \
"fet" \
"Education;Qt;" \
true
OPTIONS_DEFINE= EXAMPLES NLS ONLYCL
OPTIONS_SINGLE= QTVER
OPTIONS_SINGLE_QTVER= QT4 QT5
OPTIONS_DEFAULT= QT4
ONLYCL_DESC= Build only command line version (without Qt GUI)
OPTIONS_SUB= yes
QT4_USES= qt:4
QT4_USE= QT=corelib,moc_build,rcc_build,uic_build,xml
QT5_USES= qt:5
QT5_USE= QT=buildtools_build,core,printsupport,widgets,xml GL=gl
INSTALL_TARGET= ${WRKSRC}/fet-cl
ONLYCL_VARS= QMAKE_SOURCE_PATH=${WRKSRC}/src/src-cl.pro
ONLYCL_VARS_OFF= INSTALL_TARGET+=${WRKSRC}/fet USE_QT+="gui network"
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/fet|${DATADIR}|g' \
${WRKSRC}/src/interface/fet.cpp
do-install:
${INSTALL_PROGRAM} ${INSTALL_TARGET} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/fet-cl ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/fet*.gz ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}/translations
cd ${WRKSRC}/translations && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR}/translations
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>