1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/deskutils/fet/Makefile
William Grzybowski 23c1b48121 deskutils/fet: update to 5.21.3
- USES tar:bzip2
- New option to install only command line

PR:		189408
Submitted by:	Zsolt Udvari
Approved by:	maintainer (timeout)
2014-06-20 01:40:42 +00:00

59 lines
1.4 KiB
Makefile

# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es>
# $FreeBSD$
PORTNAME= fet
PORTVERSION= 5.21.3
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= salfrancl@yahoo.es
COMMENT= Free timetabling software
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
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}/doc/fet.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \. ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DATADIR}/translations
cd ${WRKSRC}/translations && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR}/translations
.include <bsd.port.mk>