diff options
author | jhale <jhale@FreeBSD.org> | 2012-11-08 19:21:37 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2012-11-08 19:21:37 +0800 |
commit | 861d668f2b29010873933e32111f567857f2c481 (patch) | |
tree | fa63027eaa777142b14f5d7ecf42b8ad26406578 /deskutils/fet/Makefile | |
parent | 3fb7c2f1fa1f7b8348243efc9801cbb7187ca1fa (diff) | |
download | freebsd-ports-gnome-861d668f2b29010873933e32111f567857f2c481.tar.gz freebsd-ports-gnome-861d668f2b29010873933e32111f567857f2c481.tar.zst freebsd-ports-gnome-861d668f2b29010873933e32111f567857f2c481.zip |
- Update to 5.18.2
- Remove name of port from COMMENT
- Move LICENSE to correct location and mark it GPLv2 or GPLv3
- Respect MANPREFIX
- Add NLS option
- Whitespace cleanup
- Convert to new options framework
- Trim Makefile header
- Tab -> space in pkg-descr WWW line
PR: Based on ports/168679
Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com>
Approved by: maintainer timeout (5 months)
makc, avilla (mentors, implicit)
Feature safe: yes
Diffstat (limited to 'deskutils/fet/Makefile')
-rw-r--r-- | deskutils/fet/Makefile | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/deskutils/fet/Makefile b/deskutils/fet/Makefile index 868fc1f97e95..b34d7051be75 100644 --- a/deskutils/fet/Makefile +++ b/deskutils/fet/Makefile @@ -1,13 +1,8 @@ -# New ports collection makefile for: fet -# Date created: 11 March 2010 -# Whom: Leinier Cruz Salfran <salfrancl@yahoo.es> -# +# Created by: Leinier Cruz Salfran <salfrancl@yahoo.es> # $FreeBSD$ -# PORTNAME= fet -PORTVERSION= 5.14.2 -PORTREVISION= 1 +PORTVERSION= 5.18.2 CATEGORIES= deskutils kde MASTER_SITES= http://lalescu.ro/liviu/fet/download/ \ http://lalescu.ro/liviu/fet/download/old/ \ @@ -15,44 +10,54 @@ MASTER_SITES= http://lalescu.ro/liviu/fet/download/ \ http://timetabling.de/download/old/ MAINTAINER= salfrancl@yahoo.es -COMMENT= FET is free timetabling software +COMMENT= Free timetabling software + +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual USE_BZIP2= yes -USE_QT4= gui network qt3support xml \ +USE_QT4= gui network xml \ moc_build qmake_build rcc_build uic_build HAS_CONFIGURE= yes -QMAKE_ARGS= -unix PREFIX=${PREFIX} \ - INCLUDEPATH+=${LOCALBASE}/include \ - LIBS+=-L${LOCALBASE}/lib MAKE_JOBS_SAFE= yes -LICENSE= GPLv2 - -PLIST_FILES= bin/fet MAN1= fet.1 -.ifndef(NOPORTEXAMPLES) + PORTEXAMPLES= * + +DESKTOP_ENTRIES="FET" \ + "Free timetable software" \ + "" \ + "fet" \ + "Application;Education;Qt;" \ + true + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " .endif -DESKTOP_ENTRIES= "FET" \ - "Free timetable software" \ - "" \ - "fet" \ - "Application;Education;Qt;" \ - true +post-patch: + ${REINPLACE_CMD} -e 's|/usr/share/fet|${DATADIR}|g' \ + ${WRKSRC}/src/interface/fet.cpp do-configure: cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ ${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS} do-install: - ${MKDIR} ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/fet ${PREFIX}/bin - ${MKDIR} ${PREFIX}/man/man1 - ${INSTALL_MAN} ${WRKSRC}/doc/fet.1 ${PREFIX}/man/man1 -.ifndef(NOPORTEXAMPLES) + ${INSTALL_MAN} ${WRKSRC}/doc/fet.1 ${MANPREFIX}/man/man1 +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${EXAMPLESDIR} cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \. ${EXAMPLESDIR} .endif +.if ${PORT_OPTIONS:MNLS} + ${MKDIR} ${DATADIR}/translations + cd ${WRKSRC}/translations && ${INSTALL_DATA} *.qm ${DATADIR}/translations +.endif .include <bsd.port.mk> |