a3a2332dc6
* Add "gl" to USES as using USE_GL alone is deprecated. Notable changes since 5.37.2: * Updated to Qt 5.13.0 * New constraint types: * Activity tags not overlapping * Min gaps between an ordered pair of activity tags for a students set / all students / a teacher / all teachers * Additional example files * Translation updates * Various crash fixes and code cleanups PR: 239597 Submitted by: Zsolt Udvari <uzsolt@uzsolt.hu> (maintainer)
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fet
|
|
DISTVERSION= 5.39.0
|
|
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 gl qmake qt:5 tar:bzip2
|
|
USE_GL= gl
|
|
USE_QT= buildtools_build core printsupport widgets xml
|
|
USE_CXXSTD= c++14
|
|
|
|
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"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
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>
|