aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/unique/Makefile
blob: 88b63bf87ee003c84a459432fef692d55e6efd7b (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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/x11-toolkits/unique/Makefile,v 1.12 2012/09/03 16:28:30 mezz Exp $

PORTNAME=   unique
PORTVERSION=    1.1.6
PORTREVISION=   4
CATEGORIES= x11-toolkits
MASTER_SITES=   GNOME/sources/lib${PORTNAME}/${PORTVERSION:R}/
DISTNAME=   lib${PORTNAME}-${PORTVERSION}

MAINTAINER= kwm@FreeBSD.org
COMMENT=    Library for single instance applications

LIB_DEPENDS=    dbus-1:${PORTSDIR}/devel/dbus

USE_XORG=   ice
USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_LDCONFIG=   yes
USE_AUTOTOOLS=  libtool
USE_GNOME=  gtk20 gnomeprefix ltverhack:2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-maintainer-flags
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|g' \
        ${WRKSRC}/configure ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|G_CONST_RETURN|const|g' \
        ${WRKSRC}/unique/uniqueapp.c \
        ${WRKSRC}/unique/uniquebackend.[ch] \
        ${WRKSRC}/unique/uniqueinternals.h \
        ${WRKSRC}/unique/uniquemessage.[ch]

.include <bsd.port.mk>