1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/deskutils/fet/Makefile
2024-07-22 18:49:22 +02:00

58 lines
1.4 KiB
Makefile

PORTNAME= fet
DISTVERSION= 6.22.2
CATEGORIES= deskutils education
MASTER_SITES= https://lalescu.ro/liviu/fet/download/ \
https://lalescu.ro/liviu/fet/download/old/ \
https://timetabling.de/download/ \
https://timetabling.de/download/old/
PKGNAMESUFFIX= -${FLAVOR}
MAINTAINER= uzsolt@FreeBSD.org
COMMENT= Free timetabling software
WWW= https://lalescu.ro/liviu/fet/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
FLAVORS= qt6 qt5
FLAVOR?= qt6
USES= compiler:c++17-lang gl qmake qt:${FLAVOR:S/qt//} tar:bzip2
USE_GL= gl
_USE_QT5= core gui network printsupport widgets buildtools:build
_USE_QT6= base
USE_QT= ${_USE_QT${FLAVOR:S/qt//}}
CONFLICTS_INSTALL= ${FLAVORS:@fl@fet-${fl}@}
DESKTOP_ENTRIES= "FET" \
"Free timetable software" \
"" \
"fet" \
"Education;Qt;" \
true
PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES NLS
OPTIONS_SUB= yes
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/fet|${DATADIR}|g' \
${WRKSRC}/src/interface/fet.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fet ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/fet-cl ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/fet*.gz ${STAGEDIR}${PREFIX}/share/man/man1
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
do-install-NLS-on:
@${MKDIR} ${STAGEDIR}${DATADIR}/translations
cd ${WRKSRC}/translations && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR}/translations
.include <bsd.port.mk>