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

PORTNAME=   cinnamon-session
PORTVERSION=    2.2.1
CATEGORIES= x11 gnome
MASTER_SITES=   http://github.com/linuxmint/${PORTNAME}/archive/${PORTVERSION}.tar.gz?dummy=/
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Session component for the cinnamon desktop

BUILD_DEPENDS=  gnome-autogen.sh:${PORTSDIR}/devel/gnome-common
LIB_DEPENDS=    libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
        libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
        libjson-glib-1.0.so:${PORTSDIR}/devel/json-glib \
        libupower-glib.so:${PORTSDIR}/sysutils/upower \
        libcanberra.so:${PORTSDIR}/audio/libcanberra
RUN_DEPENDS=    ${LOCALBASE}/sbin/console-kit-daemon:${PORTSDIR}/sysutils/consolekit \
        ${LOCALBASE}/bin/xdpyinfo:${PORTSDIR}/x11/xdpyinfo

USES=       gettext gmake libtool pathfix pkgconfig tar:xz
USE_XORG=   ice sm xau xext xtst xrender xtrans xcomposite
USE_GL=     gl
USE_GNOME=  gnomeprefix gtk30 intltool
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libtoolize autoconf automake
PATHFIX_MAKEFILEIN= Makefile.am
CONFIGURE_ARGS= --disable-docbook-docs
CPPFLAGS+=  -I${LOCALBASE}/include -Wno-error=format-nonliteral -Wno-error=implicit-function-declaration
CFLAGS+=    -I${LOCALBASE}/include -Wno-error=format-nonliteral -Wno-error=implicit-function-declaration
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

GLIB_SCHEMAS=   org.cinnamon.SessionManager.gschema.xml

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

.include <bsd.port.mk>