2004-01-16 00:48:07 +01:00
|
|
|
# Ports collection makefile for: gnugadu2
|
|
|
|
# Date created: 12 january 2004
|
|
|
|
# Whom: smyru@heron.pl
|
2001-12-26 01:54:09 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-10-14 10:54:54 +02:00
|
|
|
#
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2004-01-16 00:48:07 +01:00
|
|
|
PORTNAME= gnugadu2
|
2006-09-07 17:44:21 +02:00
|
|
|
PORTVERSION= 2.2.9
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 3
|
2005-11-09 20:11:29 +01:00
|
|
|
CATEGORIES= polish net-im
|
2003-05-10 22:02:43 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ggadu
|
2004-05-11 14:13:35 +02:00
|
|
|
DISTNAME= gg2-${PORTVERSION}
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2004-01-16 00:48:07 +01:00
|
|
|
MAINTAINER= smyru@heron.pl
|
|
|
|
COMMENT= GTK2 based Gadu-Gadu client for X11
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2006-09-07 17:44:21 +02:00
|
|
|
LIB_DEPENDS= gadu.3:${PORTSDIR}/polish/libgadu \
|
2005-01-28 01:01:01 +01:00
|
|
|
audiofile.0:${PORTSDIR}/audio/libaudiofile
|
2004-01-16 00:48:07 +01:00
|
|
|
|
2005-04-11 11:03:22 +02:00
|
|
|
USE_BZIP2= yes
|
2004-01-16 00:48:07 +01:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_PERL5= yes
|
2006-09-07 17:44:21 +02:00
|
|
|
USE_GETTEXT= yes
|
2001-12-26 01:54:09 +01:00
|
|
|
USE_GMAKE= yes
|
2004-01-16 00:48:07 +01:00
|
|
|
USE_GNOME= gtk20
|
2006-09-07 17:44:21 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-01-16 00:48:07 +01:00
|
|
|
WANT_GNOME= yes
|
2005-04-11 11:03:22 +02:00
|
|
|
CONFLICTS= qhacc-[0-9]*
|
2004-01-16 00:48:07 +01:00
|
|
|
|
2006-09-07 17:44:21 +02:00
|
|
|
CONFIGURE_ARGS= --disable-esdtest \
|
2004-07-21 23:38:29 +02:00
|
|
|
--with-external-libgadu \
|
2005-01-28 01:01:01 +01:00
|
|
|
--with-static=no \
|
2005-10-08 01:21:12 +02:00
|
|
|
--with-aaway \
|
|
|
|
--with-external \
|
|
|
|
--with-gghist \
|
|
|
|
--with-gui \
|
|
|
|
--with-ignore \
|
|
|
|
--with-oss \
|
|
|
|
--with-sms \
|
|
|
|
--with-update \
|
|
|
|
--without-gnutls \
|
|
|
|
--without-perl \
|
2005-01-28 01:01:01 +01:00
|
|
|
--without-remote
|
2004-01-16 00:48:07 +01:00
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2006-09-07 17:44:21 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CPPFLAGS="-I${X11BASE}/include"
|
2004-01-16 00:48:07 +01:00
|
|
|
|
2006-09-07 17:44:21 +02:00
|
|
|
OPTIONS= TLEN "Enable Tlen.pl network plugin" off \
|
2005-10-08 01:21:12 +02:00
|
|
|
JABBER "Enable Jabber loudmouth plugin" off \
|
2006-09-07 17:44:21 +02:00
|
|
|
DBUS "Enable D-Bus plugin" off \
|
|
|
|
DOCKLET "Enable fd.o docklet plugin" on \
|
2005-10-08 01:21:12 +02:00
|
|
|
DOCKAPP "Enable WindowMaker dockapp plugin" off \
|
|
|
|
GTKSPELL "Enable GTKSpell checker" off \
|
|
|
|
XOSD "Enable On-Screen-Display messages" off \
|
2006-09-07 17:44:21 +02:00
|
|
|
ARTS "Build with aRts sound server" off \
|
2005-10-08 01:21:12 +02:00
|
|
|
ESOUND "Build with esound sound server" off
|
|
|
|
|
2004-01-16 00:48:07 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2006-09-07 17:44:21 +02:00
|
|
|
.if (${HAVE_GNOME:Mesound}!="") && !defined(WITHOUT_ESOUND)
|
2004-01-16 00:48:07 +01:00
|
|
|
WITH_ESOUND= yes
|
2001-12-26 01:54:09 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-08 01:21:12 +02:00
|
|
|
# does not work with newer dbus versions
|
2006-09-07 17:44:21 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libdbus-1.so) && !defined(WITHOUT_DBUS)
|
|
|
|
WITH_DBUS= yes
|
|
|
|
.endif
|
2005-10-08 01:21:12 +02:00
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libgtkspell.so) && !defined(WITHOUT_GTKSPELL)
|
2005-10-08 01:21:12 +02:00
|
|
|
WITH_GTKSPELL= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_TLEN)
|
|
|
|
LIB_DEPENDS+= tlen.1:${PORTSDIR}/polish/libtlen
|
|
|
|
CONFIGURE_ARGS+= --with-tlen
|
|
|
|
PLIST_SUB+= TLEN:=""
|
2005-01-28 01:01:01 +01:00
|
|
|
.else
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --without-tlen
|
|
|
|
PLIST_SUB+= TLEN:="@comment "
|
2004-04-02 00:12:01 +02:00
|
|
|
.endif
|
|
|
|
|
2005-10-08 01:21:12 +02:00
|
|
|
.if defined(WITH_JABBER)
|
2005-11-09 09:21:21 +01:00
|
|
|
LIB_DEPENDS+= loudmouth-1.0:${PORTSDIR}/net-im/loudmouth
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-jabber
|
|
|
|
PLIST_SUB+= JABBER:=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jabber
|
|
|
|
PLIST_SUB+= JABBER:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_DOCKLET)
|
2005-01-28 01:01:01 +01:00
|
|
|
CONFIGURE_ARGS+= --without-docklet-system-tray
|
2004-01-16 00:48:07 +01:00
|
|
|
PLIST_SUB+= DOCKLET:="@comment "
|
2005-01-28 01:01:01 +01:00
|
|
|
.else
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-docklet-system-tray
|
2005-01-28 01:01:01 +01:00
|
|
|
PLIST_SUB+= DOCKLET:=""
|
2004-01-16 00:48:07 +01:00
|
|
|
.endif
|
2003-05-10 22:02:43 +02:00
|
|
|
|
2005-10-08 01:21:12 +02:00
|
|
|
.if defined(WITH_DOCKAPP)
|
|
|
|
CONFIGURE_ARGS+= --with-docklet_dockapp
|
|
|
|
PLIST_SUB+= DOCKAPP:=""
|
|
|
|
.else
|
2004-01-16 00:48:07 +01:00
|
|
|
CONFIGURE_ARGS+= --without-docklet_dockapp
|
|
|
|
PLIST_SUB+= DOCKAPP:="@comment "
|
|
|
|
.endif
|
2002-11-11 09:26:48 +01:00
|
|
|
|
2005-10-08 01:21:12 +02:00
|
|
|
.if defined(WITH_GTKSPELL)
|
2006-05-28 17:54:10 +02:00
|
|
|
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gtkspell
|
2005-01-28 01:01:01 +01:00
|
|
|
.else
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gtkspell
|
2004-01-16 00:48:07 +01:00
|
|
|
.endif
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2006-09-07 17:44:21 +02:00
|
|
|
.if defined(WITH_DBUS)
|
2006-10-14 10:54:54 +02:00
|
|
|
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus
|
2006-09-07 17:44:21 +02:00
|
|
|
CONFIGURE_ARGS+= --with-dbus \
|
|
|
|
--with-dbus-dir=${PREFIX}/share/dbus-1/services
|
|
|
|
PLIST_SUB+= DBUS:=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-dbus
|
|
|
|
PLIST_SUB+= DBUS:="@comment "
|
|
|
|
.endif
|
2003-05-10 22:02:43 +02:00
|
|
|
|
2005-10-08 01:21:12 +02:00
|
|
|
.if defined(WITH_ESOUND)
|
2004-01-16 00:48:07 +01:00
|
|
|
PKGNAMESUFFIX= -esound
|
|
|
|
USE_GNOME+= esound
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-esd
|
2004-01-16 00:48:07 +01:00
|
|
|
PLIST_SUB+= ESOUND:=""
|
2005-10-08 01:21:12 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-esd
|
|
|
|
PLIST_SUB+= ESOUND:="@comment "
|
2004-01-16 00:48:07 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-08 01:21:12 +02:00
|
|
|
.if defined(WITH_ARTS)
|
2005-01-28 01:01:01 +01:00
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-arts
|
2005-01-28 01:01:01 +01:00
|
|
|
PLIST_SUB+= ARTS:=""
|
2005-10-08 01:21:12 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-arts
|
|
|
|
PLIST_SUB+= ARTS:="@comment "
|
2004-01-16 00:48:07 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-08 01:21:12 +02:00
|
|
|
.if defined(WITH_XOSD)
|
2005-01-28 01:01:01 +01:00
|
|
|
LIB_DEPENDS+= xosd.4:${PORTSDIR}/misc/xosd
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-xosd
|
2005-01-28 01:01:01 +01:00
|
|
|
PLIST_SUB+= XOSD:=""
|
2005-10-08 01:21:12 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-xosd
|
|
|
|
PLIST_SUB+= XOSD:="@comment "
|
2004-01-16 00:48:07 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${HAVE_GNOME:Mgnomehier}!="")
|
|
|
|
PLIST_SUB+= GNOME:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNOME:="@comment "
|
|
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/lib/libkdecore.so)
|
|
|
|
PLIST_SUB+= KDE:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= KDE:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/gg2.desktop
|
2004-05-11 14:13:35 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| -ldl|| ; s|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/lib/Makefile.in
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' ${WRKSRC}/src/plugins/gadu_gadu/libgadu/lib/libgadu-config.h.in
|
|
|
|
.endif
|
2004-01-16 00:48:07 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if (${HAVE_GNOME:Mgnomehier}!="")
|
2006-10-14 10:54:54 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${LOCALBASE}/share/gnome/apps/Internet
|
|
|
|
${LN} -sf ${PREFIX}/share/pixmaps/gg2.png ${LOCALBASE}/share/gnome/pixmaps
|
2004-01-16 00:48:07 +01:00
|
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/lib/libkdecore.so)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${LOCALBASE}/share/applnk/Internet
|
2003-05-10 22:02:43 +02:00
|
|
|
.endif
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2006-09-07 17:44:21 +02:00
|
|
|
# vim: set ts=8 sw=8:
|
2004-01-16 00:48:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|