2012-10-07 15:23:27 +02:00
|
|
|
# Created by: smyru@heron.pl
|
2001-12-26 01:54:09 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-01-16 00:48:07 +01:00
|
|
|
PORTNAME= gnugadu2
|
2007-07-27 16:46:50 +02:00
|
|
|
PORTVERSION= 2.3.0
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 11
|
2005-11-09 20:11:29 +01:00
|
|
|
CATEGORIES= polish net-im
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF/ggadu/gg2/${PORTVERSION}
|
2004-05-11 14:13:35 +02:00
|
|
|
DISTNAME= gg2-${PORTVERSION}
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2009-05-04 22:17:52 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2008-05-18 18:14:26 +02:00
|
|
|
COMMENT= Gadu-Gadu IM network client
|
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
|
|
|
|
2008-05-18 18:14:26 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_ICONS= yes
|
2005-04-11 11:03:22 +02:00
|
|
|
USE_BZIP2= yes
|
2013-08-03 10:45:51 +02:00
|
|
|
USES= gettext perl5
|
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
|
2008-05-18 18:14:26 +02:00
|
|
|
USE_XORG= x11 xaw ice xscrnsaver
|
2004-01-16 00:48:07 +01:00
|
|
|
WANT_GNOME= yes
|
2008-05-18 18:14:26 +02:00
|
|
|
# there is a header conflict here, that breaks build
|
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
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-01-16 00:48:07 +01:00
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
OPTIONS_DEFINE= ARTS AUTODETECT DBUS DOCKAPP DOCKLET ESOUND \
|
|
|
|
GTKSPELL JABBER TLEN XOSD
|
|
|
|
OPTIONS_DEFAULT=DOCKLET
|
2005-10-08 01:21:12 +02:00
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
AUTODETECT_DESC=Autodetect plugins
|
|
|
|
DOCKLET_DESC= Enable fd.o docklet plugin
|
|
|
|
DOCKAPP_DESC= Enable WindowMaker dockapp plugin
|
|
|
|
GTKSPELL_DESC= Enable GTKSpell checker
|
|
|
|
TLEN_DESC= Enable Tlen.pl network plugin
|
|
|
|
XOSD_DESC= Enable On-Screen-Display messages
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
#.if ${${HAVE_GNOME:Mesound}!="" && empty(PORT_OPTIONS:MESOUND)
|
2001-12-26 01:54:09 +01:00
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.include <bsd.port.pre.mk> # can't change this untile HAVE_GNOME has been fixed
|
2005-10-08 01:21:12 +02:00
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MAUTODETECT}
|
|
|
|
#detect arts
|
|
|
|
.if exists(${LOCALBASE}/lib/libartsc.so) && !${PORT_OPTIONS:MARTS}
|
|
|
|
PORT_OPTIONS+= ARTS
|
|
|
|
.endif
|
|
|
|
#detect dbus - only works with old versions
|
|
|
|
.if exists(${LOCALBASE}/lib/libdbus-1.so) && !${PORT_OPTIONS:MDBUS}
|
|
|
|
PORT_OPTIONS+= DBUS
|
|
|
|
.endif
|
|
|
|
#detect esound
|
|
|
|
.if ${HAVE_GNOME:Mesound}!="" && !${PORT_OPTIONS:MESOUND}
|
|
|
|
PORT_OPTIONS+= ESOUND
|
|
|
|
.endif
|
|
|
|
#detect gtkspell
|
|
|
|
.if exists(${LOCALBASE}/lib/libgtkspell.so) && !${PORT_OPTIONS:MGTKSPELL}
|
|
|
|
PORT_OPTIONS+= GTKSPELL
|
|
|
|
.endif
|
2005-10-08 01:21:12 +02:00
|
|
|
.endif
|
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MTLEN}
|
2005-10-08 01:21:12 +02:00
|
|
|
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
|
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MJABBER}
|
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
|
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if !${PORT_OPTIONS:MDOCKLET}
|
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
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCKAPP}
|
2005-10-08 01:21:12 +02:00
|
|
|
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
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MGTKSPELL}
|
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
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MDBUS}
|
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
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MESOUND}
|
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
|
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MARTS}
|
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
|
|
|
|
|
2012-10-07 15:23:27 +02:00
|
|
|
.if ${PORT_OPTIONS:MXOSD}
|
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
|
2012-10-11 10:34:09 +02:00
|
|
|
PLIST_SUB+= XOSD:=""
|
|
|
|
.else
|
2005-10-08 01:21:12 +02:00
|
|
|
CONFIGURE_ARGS+= --without-xosd
|
|
|
|
PLIST_SUB+= XOSD:="@comment "
|
2004-01-16 00:48:07 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2008-05-18 18:14:26 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,=.*},=${PREFIX},' ${WRKSRC}/src/plugins/dbus/org.freedesktop.im.GG.service
|
|
|
|
@${REINPLACE_CMD} -e 's, -ldl,, ; s,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' ${WRKSRC}/lib/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's,(datadir)/pixmaps,(datadir)/icons/hicolor/48x48/apps,' ${WRKSRC}/pixmaps/Makefile.in
|
2013-03-08 11:51:34 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' ${WRKSRC}/src/plugins/GUI/gtkimhtml.c
|
2004-01-16 00:48:07 +01:00
|
|
|
|
|
|
|
post-install:
|
2008-05-18 18:14:26 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${PREFIX}/share/applications/
|
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>
|