aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtkunique/Makefile
blob: c45b2e08cfa876e2ffe252a1657900fef2abf5fa (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
# Created by: Pav Lucistnik <pav@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gtkunique
PORTVERSION=    0.9.1
PORTREVISION=   7
CATEGORIES= x11-toolkits
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= pav
DIST_SUBDIR=    gnome2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Single instance application library

USE_AUTOTOOLS=  libtool
USE_GNOME=  gtk20 ltverhack
USE_LDCONFIG=   yes
USES=       pkgconfig gettext
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= DBUS
OPTIONS_DEFAULT=    DBUS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDBUS}
LIB_DEPENDS+=   dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
PLIST_SUB+= DBUS="" XLIBS="@comment "
.else
PLIST_SUB+= DBUS="@comment " XLIBS=""
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-Werror ||' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>