aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/libcompizconfig/Makefile
blob: afb6d9bf1d332902798d5a693b75ceabef0a4df7 (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
# Created by: Robert Noland <rnoland@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libcompizconfig
PORTVERSION=    0.8.4
PORTREVISION=   6
CATEGORIES= x11-wm
MASTER_SITES=   http://releases.compiz.org/${PORTVERSION}/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Alternative configuration system for Compiz

BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/compiz.pc:${PORTSDIR}/x11-wm/compiz

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

USES=       gmake libtool pathfix pkgconfig
USE_GNOME=  intltool libxml2

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

OPTIONS_DEFINE= INOTIFY
OPTIONS_DEFAULT=    INOTIFY
INOTIFY_DESC?=  Enable inotify support

INOTIFY_LIB_DEPENDS=    libinotify.so:${PORTSDIR}/devel/libinotify
INOTIFY_LDFLAGS=    -linotify

.include <bsd.port.pre.mk>

post-patch:
.if empty(PORT_OPTIONS:MINOTIFY)
    @${REINPLACE_CMD} -e 's|sys/inotify.h||' ${WRKSRC}/configure
.endif
    @echo "OSVERSION=${OSVERSION}"
    @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
        ${WRKSRC}/src/main.c            \
        ${WRKSRC}/src/lists.c           \
        ${WRKSRC}/src/filewatch.c       \
        ${WRKSRC}/src/ini.c         \
        ${WRKSRC}/backend/ini.c

.include <bsd.port.post.mk>