aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/notecase/Makefile
blob: ede7ed10f2c7bf1b0e8b3ea331488285020a5a6b (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
# New ports collection makefile for:    notecase
# Date created:             19 July 2007
# Whom:                 Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   notecase
PORTVERSION=    1.9.8
CATEGORIES= deskutils textproc
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-${PORTVERSION}_src

MAINTAINER= ganael.laplanche@martymac.com
COMMENT=    A hierarchical text notes manager

USE_GMAKE=  yes
USE_GNOME=  gtk20 gtksourceview2 gnomevfs2 desktopfileutils pkgconfig
USE_GETTEXT=    yes

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

.if !defined(NOPORTDOCS)
PORTDOCS=   help.ncd license.txt
INSTALL_TARGET= install docinstall
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|^prefix=.*|prefix=${PREFIX}|' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|^docsdir=.*|docsdir=${DOCSDIR}|' \
        ${WRKSRC}/Makefile

post-install:
    @-update-mime-database ${PREFIX}/share/mime
    @-update-desktop-database

.include <bsd.port.mk>