aboutsummaryrefslogtreecommitdiff
path: root/deskutils
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-11-01 16:13:13 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-11-01 16:13:13 +0000
commit231445e6b9849f9794e3496489cbfe74194b7c4b (patch)
treef1b2d126c40c12d47f8853994ca6c7abb6cab583 /deskutils
parent57b80a52e7648573997989a6d3ba3e20304e6af9 (diff)
downloadports-231445e6b9849f9794e3496489cbfe74194b7c4b.tar.gz
ports-231445e6b9849f9794e3496489cbfe74194b7c4b.zip
Notes
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/nagaina/Makefile54
1 files changed, 36 insertions, 18 deletions
diff --git a/deskutils/nagaina/Makefile b/deskutils/nagaina/Makefile
index 15ba839f519b..6ba28efd025d 100644
--- a/deskutils/nagaina/Makefile
+++ b/deskutils/nagaina/Makefile
@@ -1,43 +1,61 @@
-# New ports collection makefile for: nagaina
-# Date created: 21 August 2007
-# Whom: Yinghong Liu <relaxbsd@gmail.com>
-#
+# Created by: Yinghong Liu <relaxbsd@gmail.com>
# $FreeBSD$
-#
PORTNAME= nagaina
PORTVERSION= 0.1.2
-PORTREVISION= 3
+DISTVERSIONSUFFIX= -sources
+PORTREVISION= 4
CATEGORIES= deskutils
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
-DISTNAME= ${PORTNAME}-${PORTVERSION}-sources
+MASTER_SITES= GOOGLE_CODE
MAINTAINER= ports@FreeBSD.org
-COMMENT= A notes-taking application based QT4
+COMMENT= Notes-taking application based on Qt4
+
+LICENSE= GPLv2
+
+LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
+ pcre:${PORTSDIR}/devel/pcre \
+ png15:${PORTSDIR}/graphics/png \
+ freetype:${PORTSDIR}/print/freetype2 \
+ expat:${PORTSDIR}/textproc/expat2 \
+ fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
+ xcb:${PORTSDIR}/x11/libxcb
+
+OPTIONS_DEFINE= DOCS
-USE_QT4= gui xml qmake_build moc_build rcc_build uic_build
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_GETTEXT= yes
+USE_ICONV= yes
+USE_GNOME= glib20
+USE_QT4= corelib gui xml moc_build qmake_build rcc_build uic_build
+USE_XORG= ice sm x11 xau xdmcp xext xrender
+MAKE_JOBS_SAFE= yes
+
+PORTDOCS= CHANGELOG TODO
PLIST_FILES= bin/${PORTNAME} share/pixmaps/${PORTNAME}.png
-PORTDOCS= CHANGELOG COMPILE LICENSE TODO
-DESKTOP_ENTRIES= "${PORTNAME}" \
+DESKTOP_ENTRIES= "Nagaina" \
"${COMMENT}" \
"${PORTNAME}" \
"${PORTNAME}" \
"Qt;KDE;Office;Utility;" \
"false"
-pre-build:
- @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE}
+.include <bsd.port.options.mk>
+
+do-configure:
+ @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
post-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${PREFIX}/share/pixmaps
-.if !defined(NOPORTDOCS)
+ (cd ${WRKSRC}/bin \
+ && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
+ (cd ${WRKSRC}/images \
+ && ${INSTALL_DATA} ${PORTNAME}.png ${PREFIX}/share/pixmaps)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${DOCSDIR})
.endfor
.endif