1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/deskutils/fet/Makefile
Fernando Apesteguía e752073b92 deskutils/fet: Update to 5.45.0
From ChangeLog: https://www.lalescu.ro/liviu/fet/news.html

 * Slightly improved the code for the constraints of type teacher(s)/students
   (set) max days per week and teacher(s)/students (set) interval max days per
   week.
 * Corrected a compilation warning appearing with the new gcc 10.1.1.
 * Updated the Arabic translation, by Benahmed Abdelkrim.

PR:	247486
Submitted by:	uzsolt@uzsolt.hu (maintainer)
2020-06-24 08:40:49 +00:00

58 lines
1.5 KiB
Makefile

# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es>
# $FreeBSD$
PORTNAME= fet
DISTVERSION= 5.45.0
CATEGORIES= deskutils
MASTER_SITES= https://lalescu.ro/liviu/fet/download/ \
https://lalescu.ro/liviu/fet/download/old/ \
https://timetabling.de/download/ \
https://timetabling.de/download/old/
MAINTAINER= uzsolt@uzsolt.hu
COMMENT= Free timetabling software
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++14-lang gl qmake qt:5 tar:bzip2
USE_GL= gl
USE_QT= buildtools_build core printsupport widgets
PORTEXAMPLES= *
DESKTOP_ENTRIES="FET" \
"Free timetable software" \
"" \
"fet" \
"Education;Qt;" \
true
OPTIONS_DEFINE= EXAMPLES NLS ONLYCL
ONLYCL_DESC= Build only command line version (without Qt GUI)
OPTIONS_SUB= yes
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
do-install-NLS-on:
@${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>