aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/nitrogen/Makefile
blob: 0cc686c38c18e0d88df1af68d41b8468f92a8d67 (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
# Created by: Jonathan Liu <Net147@hotmail.com>
# $FreeBSD$

PORTNAME=   nitrogen
PORTVERSION=    1.5.2
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://projects.l3ib.org/nitrogen/files/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Background browser and setter for X windows

LICENSE=    GPLv2 # (or later)

BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash
LIB_DEPENDS=    atkmm:${PORTSDIR}/accessibility/atkmm \
        glibmm:${PORTSDIR}/devel/glibmm \
        pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
        sigc-2.0:${PORTSDIR}/devel/libsigc++20 \
        pcre:${PORTSDIR}/devel/pcre \
        cairo:${PORTSDIR}/graphics/cairo \
        cairomm:${PORTSDIR}/graphics/cairomm \
        png15:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2 \
        expat:${PORTSDIR}/textproc/expat2 \
        fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
        gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24 \
        pangomm:${PORTSDIR}/x11-toolkits/pangomm \
        xcb:${PORTSDIR}/x11/libxcb
RUN_DEPENDS=    gnome-icon-theme>0:${PORTSDIR}/misc/gnome-icon-theme \
        hicolor-icon-theme>0:${PORTSDIR}/misc/hicolor-icon-theme

OPTIONS_DEFINE= XINERAMA
OPTIONS_DEFAULT=XINERAMA

USE_GETTEXT=    yes
USE_ICONV=  yes
USE_GNOME=  gtk20
USE_XORG=   pixman x11 xau xcomposite xcursor xdamage xdmcp xext xfixes \
        xrandr xrender
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-inotify
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN1=       nitrogen.1

DESKTOP_ENTRIES="Nitrogen" "${COMMENT}" "${PORTNAME}" "${PORTNAME}" \
        "Graphics;Viewer;" true

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MXINERAMA}
USE_XORG+=  xinerama
CONFIGURE_ARGS+=--enable-xinerama
.else
CONFIGURE_ARGS+=--disable-xinerama
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
        ${WRKSRC}/data/icon-theme-installer

.include <bsd.port.mk>