blob: bad7c9e84ac6444f937ba7eab09d4878ff37c1a9 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Created by: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
PORTNAME= rubrica
PORTVERSION= 2.1.6
PORTREVISION= 2
CATEGORIES= deskutils gnome
MASTER_SITES= BERLIOS
DISTNAME= ${PORTNAME}2-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Addressbook for the GNOME 2 desktop
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libnotify.so:devel/libnotify
RUN_DEPENDS= gnome-icon-theme>=0:misc/gnome-icon-theme
USES= desktop-file-utils gmake gnome libtool localbase pathfix \
pkgconfig tar:bzip2
GNU_CONFIGURE= yes
USE_GNOME= gconf2 gnomeprefix libglade2 intltool
USE_LDCONFIG= yes
MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP}
GCONF_SCHEMAS= rubrica2.schemas
LIBS+= -lm -lgthread-2.0
PORTDOCS= *
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|-Wall -g|-Wall|g ; \
s|-Wmissing-prototypes -g|-Wmissing-prototypes|g'
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|_Modifica|_Edit|' \
-e 's|A_iuto|_Help|' \
${WRKSRC}/interface/MainWindow.glade
@${REINPLACE_CMD} -e \
's|^Categories=.*|Categories=GNOME;Application;Office;System;Utility;|' \
${WRKSRC}/rubrica2.desktop.in
post-patch-NLS-off:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in
post-install:
@${LN} -sf ${LOCALBASE}/share/icons/gnome \
${STAGEDIR}${PREFIX}/share/pixmaps/rubrica2/22x22/hicolor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CREDITS ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc/reference/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/libRAL-reference
.include <bsd.port.mk>
|