aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nitrogen/Makefile
blob: 88be34cdbe32338c7a995d7472178bc1e08937c2 (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
# Ports collection makefile for:	nitrogen
# Date created:				4 July 3007
# Whom:					Jonathan Liu <Net147@hotmail.com>
#
# $FreeBSD$
#

PORTNAME=	nitrogen
PORTVERSION=	1.0
PORTREVISION=	2
CATEGORIES=	sysutils
MASTER_SITES=	http://l3ib.org/nitrogen/files/ \
		http://www.sourcefiles.org/Toys/Candy/

MAINTAINER=	Net147@hotmail.com
COMMENT=	Background browser and setter for X windows

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash
LIB_DEPENDS=	gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24
RUN_DEPENDS=	${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme \
		${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme

USE_GNOME=	gtk20
INSTALLS_ICONS=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-inotify
CXXFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib

OPTIONS=	XINERAMA "Xinerama support" on

MAN1=		nitrogen.1

.include <bsd.port.pre.mk>

.if defined(WITHOUT_XINERAMA)
CONFIGURE_ARGS+=--disable-xinerama
.else
CONFIGURE_ARGS+=--enable-xinerama
USE_XORG+=	xinerama
.endif

post-patch:
	@${REINPLACE_CMD} -e 's,#!/bin/bash,#!${LOCALBASE}/bin/bash,' \
		${WRKSRC}/data/icon-theme-installer

.include <bsd.port.post.mk>