aboutsummaryrefslogtreecommitdiffstats
path: root/polish/gnugadu/Makefile
blob: 328355e394189c44fe54b3fc5cc05ab37a20372b (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
47
48
49
50
51
52
53
54
55
56
# Ports collection makefile for: gnugadu
# Date created:     23 dec 2001
# Whom:         doc@lublin.t1.pl
#
# $FreeBSD$
#

PORTNAME=   gnugadu
PORTVERSION=    0.2.2
CATEGORIES= net
MASTER_SITES=   ftp://ftp.slackware.pl/gg/
DISTNAME=   gg-${PORTVERSION}

MAINTAINER= doc@lublin.t1.pl
COMMENT=    A GaduGadu client for X11/GTK

WRKSRC= ${WRKDIR}/gg-${PORTVERSION}

USE_GMAKE=  yes
USE_GNOME=  gtk12
WANT_GNOME= yes
GNU_CONFIGURE=  yes

.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mesound}!=""
USE_GNOME+= esound
PKGNAMESUFFIX=  -esound
.else
CONFIGURE_ARGS+=    --disable-esd
.endif

.if defined(WITH_GNOME)
CONFIGURE_ARGS+=    --enable-gnome
USE_GNOME=  yes
.else
pre-everything::
    @${ECHO_MSG}    "Define WITH_GNOME to include GNOME support"
.endif
.if defined(WITH_DOCKAPP)
CONFIGURE_ARGS+=    --enable-dockapp
.else
pre-everything::
    @${ECHO_MSG}    "Define WITH_DOCKAPP to include WindowMaker support"
.endif

post-patch:
    @${PERL} -pi -e 's,CFLAGS =, CFLAGS += \@GTK_CFLAGS\@,; \
        s,GTK_ CFLAGS,GTK_CFLAGS,' ${WRKSRC}/Makefile.in \
        ${WRKSRC}/src/Makefile.in
    @${PERL} -pi -e 's,-O2,,; s,gtk-config,${GTK_CONFIG},' \
        ${WRKSRC}/configure

post-install:
         strip ${PREFIX}/bin/gg

.include <bsd.port.post.mk>