mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
72e81b30d3
- Fix license - Fix whitespace - Switch to options helpers PR: 208156 Approved by: portmgr blanket
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fet
|
|
PORTVERSION= 5.29.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= udvzsolt@gmail.com
|
|
COMMENT= Free timetabling software
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= qmake tar:bzip2
|
|
USE_QT4= gui network xml \
|
|
moc_build rcc_build uic_build
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
DESKTOP_ENTRIES="FET" \
|
|
"Free timetable software" \
|
|
"" \
|
|
"fet" \
|
|
"Education;Qt;" \
|
|
true
|
|
|
|
OPTIONS_DEFINE= EXAMPLES NLS ONLYCL
|
|
ONLYCL_DESC= Build only command line version (without Qt4 GUI)
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MONLYCL}
|
|
INSTALL_TARGET= ${WRKSRC}/fet-cl
|
|
.else
|
|
INSTALL_TARGET= ${WRKSRC}/fet
|
|
QMAKE_PRO= src/src-cl.pro
|
|
.endif
|
|
|
|
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>
|