summaryrefslogtreecommitdiffstats
path: root/x11-fm/nemo/Makefile
blob: 3751ebc431e1a2749e911d87126782bef759a982 (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
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $FreeBSD$

PORTNAME=   nemo
PORTVERSION=    1.7.1
CATEGORIES= x11-fm gnome
DIST_SUBDIR=    gnome3

MAINTAINER= gustau.perez@gmail.com
COMMENT=    File manager for the Cinnamon desktop

BUILD_DEPENDS=  ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme \
        gtkdocize:${PORTSDIR}/textproc/gtk-doc \
        gnome-autogen.sh:${PORTSDIR}/devel/gnome-common \
        ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas \
        g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
LIB_DEPENDS=    exif:${PORTSDIR}/graphics/libexif \
        notify:${PORTSDIR}/devel/libnotify \
        exempi:${PORTSDIR}/textproc/exempi
RUN_DEPENDS=    ${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme \
        ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:${PORTSDIR}/devel/gsettings-desktop-schemas

USE_GITHUB= yes
GH_ACCOUNT= linuxmint
GH_TAGNAME= 1.7.1
GH_COMMIT=  63f7b44

INSTALLS_ICONS= yes
USE_GMAKE=  yes
USES=       gettext pathfix desktop-file-utils
USE_GNOME=  gnomeprefix intlhack gnomedesktop3 libxml2
USE_LDCONFIG=   yes
USE_AUTOTOOLS=  libtool autoconf automake
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ARGS= --enable-static --disable-packagekit --disable-tracker
MAKE_ENV=   G_CHARSET_ALIAS="${LOCALBASE}/libdata/charset.alias"

GLIB_SCHEMAS=   org.nemo.gschema.xml

MAN1=       nemo-connect-server.1 \
        nemo.1

post-patch:
    @${MKDIR} ${WRKSRC}/files${PREFIX}

    @${MV} ${WRKSRC}/files/usr/share ${WRKSRC}/files${PREFIX}

    @${REINPLACE_CMD} -e 's|find|find ${WRKSRC}/files|g' \
        ${WRKSRC}/files/Makefile.in

    @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
        ${WRKSRC}/src/nemo-properties-window.c

    @${FIND} ${WRKSRC} -name \* | ${XARGS} ${EGREP} -l "#!.*\/usr\/bin\/python" | \
        ${XARGS} ${REINPLACE_CMD} -e "s|#!.*python.*|#!/usr/bin/env python|g"

pre-configure:
    cd ${WRKSRC} && NOCONFIGURE=yes ${SH} ./autogen.sh

.include <bsd.port.mk>