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

PORTNAME=   nemo
PORTVERSION=    1.8.5
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
LIB_DEPENDS=    libexif.so:${PORTSDIR}/graphics/libexif \
        libnotify.so:${PORTSDIR}/devel/libnotify \
        libexempi.so:${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

WRKSRC=     ${WRKDIR}/linuxmint-nemo-63f7b44

USE_GITHUB= yes
GH_ACCOUNT= linuxmint
GH_TAGNAME= 1.8.5
GH_COMMIT=  40f84d6

INSTALLS_ICONS= yes
USES=       desktop-file-utils gettext gmake pathfix \
        pkgconfig shared-mime-info
USE_GNOME=  gnomeprefix intlhack gnomedesktop3 libxml2 \
        introspection:build
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

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>