aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/nemo-extensions/Makefile
blob: bdc15f52da443d5f0af9d97ba234791517945167 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $FreeBSD$

PORTNAME=   nemo-extensions
PORTVERSION=    2.4.0
PORTREVISION=   3
CATEGORIES= deskutils gnome
DIST_SUBDIR=    gnome3

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

BUILD_DEPENDS=  gnome-icon-theme>=0:misc/gnome-icon-theme \
        gtkdocize:textproc/gtk-doc \
        python:lang/python \
        rst2html:textproc/py-docutils \
        gnome-autogen.sh:devel/gnome-common \
        ${LOCALBASE}/libdata/pkgconfig/gsettings-desktop-schemas.pc:devel/gsettings-desktop-schemas
LIB_DEPENDS=    libexif.so:graphics/libexif \
        libcinnamon-desktop.so:x11/cinnamon-desktop \
        libnemo-extension.so:x11-fm/nemo \
        libnotify.so:devel/libnotify \
        libexempi.so:textproc/exempi \
        libcjs.so:lang/cjs \
        libclutter-1.0.so:graphics/clutter \
        libevdocument3.so:graphics/evince \
        libclutter-gtk-1.0.so:graphics/clutter-gtk3 \
        libclutter-gst-2.0.so:multimedia/clutter-gst \
        libmusicbrainz5.so:audio/libmusicbrainz5
RUN_DEPENDS=    gnome-icon-theme>=0:misc/gnome-icon-theme \
        gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas

USE_GITHUB= yes
GH_ACCOUNT= linuxmint
GH_TAGNAME= 6c8ec3a

USE_GNOME=  gconf2 gnomeprefix gnomedocutils gtksourceview3 intlhack \
        introspection:build libxml2 pygtk2
USES=       autoreconf:build gettext gmake libtool pathfix pkgconfig \
        python shebangfix
SHEBANG_FILES=  nemo-dropbox/dropbox.in
INSTALLS_ICONS= yes
USE_LDCONFIG=   yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

NON_AUTO_EXTENSIONS=    nemo-dropbox nemo-fileroller nemo-preview
AUTO_EXTENSIONS=    nemo-share

post-patch:
    @${REINPLACE_CMD} -e 's|AM_GNU_GETTEXT_VERSION(\[0.17\])||g ;\
        s|AM_GNU_GETTEXT(\[external\])||g' \
        ${WRKSRC}/nemo-preview/configure.ac
    @${REINPLACE_CMD} -e 's|webkitgtk-3.0||' \
        ${WRKSRC}/nemo-preview/configure.ac

do-configure:
.for i in ${NON_AUTO_EXTENSIONS}
    cd ${WRKSRC}/${i} && NOCONFIGURE=yes ${SH} autogen.sh && ./configure --prefix=${PREFIX} \
        --with-nemo-extension-dir=${PREFIX}/lib/nemo/extensions-3.0 \
        --mandir=${PREFIX}/man
.endfor

.for i in ${AUTO_EXTENSIONS}
    cd ${WRKSRC}/${i} && ./configure --prefix=${PREFIX} \
        --with-nemo-extension-dir=${PREFIX}/lib/nemo/extensions-3.0 \
        --mandir=${PREFIX}/man
.endfor

do-build:
.for i in ${NON_AUTO_EXTENSIONS} ${AUTO_EXTENSIONS}
    cd ${WRKSRC}/${i} && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
.endfor

do-install:
.for i in ${NON_AUTO_EXTENSIONS} ${AUTO_EXTENSIONS}
    cd ${WRKSRC}/${i} && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${INSTALL_TARGET}
.endfor

.include <bsd.port.mk>