aboutsummaryrefslogtreecommitdiff
path: root/polish
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-05-18 16:14:26 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-05-18 16:14:26 +0000
commita9d51ca6b2594886c41cd4a6e4be82fa486a2006 (patch)
treeee4a8c268e528bb6b2323fce0d588f43a087243b /polish
parent3b94a5d9ab85381e0c5f923a88e37bab5236a006 (diff)
downloadports-a9d51ca6b2594886c41cd4a6e4be82fa486a2006.tar.gz
ports-a9d51ca6b2594886c41cd4a6e4be82fa486a2006.zip
Notes
Diffstat (limited to 'polish')
-rw-r--r--polish/gnugadu2/Makefile39
-rw-r--r--polish/gnugadu2/pkg-plist9
2 files changed, 15 insertions, 33 deletions
diff --git a/polish/gnugadu2/Makefile b/polish/gnugadu2/Makefile
index 2a0405c4ec70..f9c5f9083ab8 100644
--- a/polish/gnugadu2/Makefile
+++ b/polish/gnugadu2/Makefile
@@ -7,28 +7,28 @@
PORTNAME= gnugadu2
PORTVERSION= 2.3.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= polish net-im
MASTER_SITES= SF/ggadu
DISTNAME= gg2-${PORTVERSION}
MAINTAINER= smyru@heron.pl
-COMMENT= GTK2 based Gadu-Gadu client for X11
+COMMENT= Gadu-Gadu IM network client
LIB_DEPENDS= gadu.3:${PORTSDIR}/polish/libgadu \
audiofile.0:${PORTSDIR}/audio/libaudiofile
-BROKEN= Does not configure
-
+GNU_CONFIGURE= yes
+INSTALLS_ICONS= yes
USE_BZIP2= yes
-USE_PERL5= yes
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gtk20
USE_LDCONFIG= yes
-GNU_CONFIGURE= yes
-USE_XORG= x11 xaw ice
+USE_PERL5= yes
+USE_XORG= x11 xaw ice xscrnsaver
WANT_GNOME= yes
+# there is a header conflict here, that breaks build
CONFLICTS= qhacc-[0-9]*
CONFIGURE_ARGS= --disable-esdtest \
@@ -153,29 +153,14 @@ CONFIGURE_ARGS+= --without-xosd
PLIST_SUB+= XOSD:="@comment "
.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
- @${REINPLACE_CMD} -e 's| -ldl|| ; s|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/lib/Makefile.in
+ @${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
post-install:
-.if (${HAVE_GNOME:Mgnomehier}!="")
- ${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${LOCALBASE}/share/gnome/apps/Internet
- ${LN} -sf ${PREFIX}/share/pixmaps/gg2.png ${LOCALBASE}/share/pixmaps
-.endif
-.if exists(${LOCALBASE}/lib/libkdecore.so)
- ${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${LOCALBASE}/share/applnk/Internet
-.endif
+ @${MKDIR} ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${PREFIX}/share/applications/
# vim: set ts=8 sw=8:
.include <bsd.port.post.mk>
diff --git a/polish/gnugadu2/pkg-plist b/polish/gnugadu2/pkg-plist
index 4a15e5221643..2708c2336e5c 100644
--- a/polish/gnugadu2/pkg-plist
+++ b/polish/gnugadu2/pkg-plist
@@ -40,6 +40,7 @@ lib/libgg2_core.so
lib/libgg2_core.so.2
libdata/pkgconfig/gg2_core.pc
%%DBUS:%%share/dbus-1/services/org.freedesktop.im.GG.service
+share/applications/gg2.desktop
share/gg2/pixmaps/arrow.png
share/gg2/pixmaps/away.png
share/gg2/pixmaps/emoticon.gif
@@ -321,9 +322,9 @@ share/gg2/themes/vblue2.theme
share/gg2/themes/vgreen2.theme
share/gg2/themes/vred2.theme
share/gg2/themes/white2.theme
+share/icons/hicolor/48x48/apps/gg2.png
share/locale/nl/LC_MESSAGES/gg2.mo
share/locale/pl/LC_MESSAGES/gg2.mo
-share/pixmaps/gg2.png
@dirrm share/gg2/themes
@dirrm share/gg2/sounds
@dirrm share/gg2/pixmaps/icons/rozgwiazda
@@ -336,8 +337,4 @@ share/pixmaps/gg2.png
@dirrm share/gg2/pixmaps
@dirrm share/gg2
@dirrm lib/gg2
-%%GNOME:%%@cwd %%LOCALBASE%%
-%%GNOME:%%share/gnome/apps/Internet/gg2.desktop
-%%GNOME:%%share/pixmaps/gg2.png
-%%KDE:%%@cwd %%LOCALBASE%%
-%%KDE:%%share/applnk/Internet/gg2.desktop
+@dirrmtry share/applications