aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/rubrica/Makefile
blob: 814b63c99f9cce926df683ff0351e15ba0617586 (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
45
46
47
48
# New ports collection makefile for:    rubrica
# Date created:     27 February 2003
# Whom:         Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
#
# $FreeBSD$
#

PORTNAME=   rubrica
PORTVERSION=    1.0.13
PORTREVISION=   1
CATEGORIES= deskutils gnome
MASTER_SITES=   http://digilander.libero.it/nfragale/download/rubrica/

MAINTAINER= ports@FreeBSD.org
COMMENT=    An addressbook for the gnome2 desktop

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_GNOME=  gnomehack gnomeprefix gnometarget libgnomeui
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
INSTALL_TARGET= install install-schemas

GCONF_SCHEMAS=  rubrica.schemas

post-patch:
.for file in src/dialog.c src/ui.c
    @${REINPLACE_CMD} -e 's|rub\.png|rubrica.png|g' ${WRKSRC}/${file}
.endfor
.for file in src/rubrica_type.h
    @${REINPLACE_CMD} -e '/^#include/d' ${WRKSRC}/${file}
.endfor

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in AUTHORS CREDITS ChangeLog INSTALL NEWS README TODO
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.for file in examples.rub
    ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>