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

PORTNAME=   nitrogen
DISTVERSION=    1.6.1
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   https://github.com/l3ib/nitrogen/releases/download/${DISTVERSION}/

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

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  bash:shells/bash
LIB_DEPENDS=    libfontconfig.so:x11-fonts/fontconfig \
        libfreetype.so:print/freetype2
RUN_DEPENDS=    gnome-icon-theme>0:misc/gnome-icon-theme \
        hicolor-icon-theme>0:misc/hicolor-icon-theme

USES=       compiler:c++11-lang gettext gmake gnome iconv localbase pkgconfig
USE_CXXSTD= c++11
USE_GNOME=  gtkmm24
INSTALLS_ICONS= yes
USE_XORG=   x11

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-inotify

LIBS+=      -lX11

OPTIONS_DEFINE=     XINERAMA
OPTIONS_DEFAULT=    XINERAMA

XINERAMA_CONFIGURE_ENABLE=  xinerama
XINERAMA_USE=           xorg=xinerama

post-patch:
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
        ${WRKSRC}/data/icon-theme-installer
    @${REINPLACE_CMD} '/^LIBS =/s/$$/ @LIBS@/' ${WRKSRC}/src/Makefile.in

.include <bsd.port.mk>