summaryrefslogtreecommitdiffstats
path: root/deskutils/nautilus-actions/Makefile
blob: b4cc0e2a597aa16c166ceef513b0e00b5185d967 (plain)
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
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/deskutils/nautilus-actions/Makefile,v 1.21 2010/04/16 23:41:09 kwm Exp $

PORTNAME=	nautilus-actions
PORTVERSION=	2.30.3
PORTREVISION=	1
CATEGORIES=	deskutils
MASTER_SITES=	GNOME

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Extension for Nautilus to configure programs to launch on files

LIB_DEPENDS=	libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
		libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
		libunique-1.0.so:${PORTSDIR}/x11-toolkits/unique

INSTALLS_ICONS=	yes
USE_BZIP2=	yes
USES=		gettext gmake pkgconfig
USE_GNOME=	nautilus2 intlhack
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--with-nautilus-extdir=${LOCALBASE}/lib/nautilus/extensions-2.0

PORTDOCS=	AUTHORS COPYING ChangeLog ChangeLog-2008 ChangeLog-2009 INSTALL \
		MAINTAINERS NEWS README TODO export-format-id io-provider-id \
		objects-hierarchy.odg

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|-Werror"|"|g' ${WRKSRC}/configure
.if ! ${PORT_OPTIONS:MDOCS}
	@${REINPLACE_CMD} -e 's| install-dist_pkgdocDATA||g' \
		${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in
.else
	@${REINPLACE_CMD} -e 's|doc/@PACKAGE@-@VERSION@|doc/@PACKAGE@|g' \
		${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in
.endif

.if ${ARCH} == "powerpc"
BROKEN=		Does not compile on powerpc
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/nautilus/extensions-2.0/*.so
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/nautilus-actions/*.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud