summaryrefslogtreecommitdiff
path: root/deskutils/nagaina/Makefile
blob: 6e20f9b6bc4a0ab3beacc1b294c07dd4d379175a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:	nagaina
# Date created:		21 August 2007
# Whom:			Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	nagaina
PORTVERSION=	0.1.2
CATEGORIES=	deskutils
MASTER_SITES=	http://nagaina.googlecode.com/files/
DISTNAME=	${PORTNAME}-${PORTVERSION}-sources

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A notes-taking application based QT4

USE_QT_VER=	4
QT_COMPONENTS=	gui xml qmake_build moc_build rcc_build uic_build
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_FILES=	bin/${PORTNAME} share/pixmaps/${PORTNAME}.png
PORTDOCS=	CHANGELOG COMPILE LICENSE TODO

DESKTOP_ENTRIES=	"${PORTNAME}" \
			"${COMMENT}" \
			"${PORTNAME}" \
			"${PORTNAME}" \
			"Qt;KDE;Office;Utility;" \
			"false"

pre-build:
	@cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE}

post-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
	@${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>