aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/edonkey-gui-gtk-kioslave/Makefile37
-rw-r--r--net/edonkey-gui-gtk-kioslave/distinfo1
-rw-r--r--net/edonkey-gui-gtk-kioslave/pkg-plist4
3 files changed, 36 insertions, 6 deletions
diff --git a/net/edonkey-gui-gtk-kioslave/Makefile b/net/edonkey-gui-gtk-kioslave/Makefile
index 59b07d95ee9..f771817048a 100644
--- a/net/edonkey-gui-gtk-kioslave/Makefile
+++ b/net/edonkey-gui-gtk-kioslave/Makefile
@@ -7,22 +7,51 @@
PORTNAME= edonkey
PORTVERSION= 0.0.1
+PORTREVISION= 1
CATEGORIES= net kde
-MASTER_SITES= http://users.aber.ac.uk/tpm01/
+MASTER_SITES= http://users.aber.ac.uk/tpm01/ \
+ http://krazykiwi.homeip.net/admin/:kde_admin \
+ ${MASTER_SITE_LOCAL:S/$/:kde_admin/}
+MASTER_SITE_SUBDIR= lioux/:kde_admin
PKGNAMESUFFIX= -gui-gtk-kioslave
-DISTNAME= ed2k_kde2_kioslave
+DISTFILES= ed2k_kde2_kioslave.tar.gz
MAINTAINER= lioux@FreeBSD.org
RUN_DEPENDS= ed2k_gui:${PORTSDIR}/net/edonkey-gui-gtk
+.if exists(${X11BASE}/include/qt2/qapp.h)
USE_KDELIBS_VER= 2
+.else
+USE_KDELIBS_VER= 3
+.endif
USE_XLIB= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/ed2kslave
+.include <bsd.port.pre.mk>
+
+.if ${USE_KDELIBS_VER} == 3
+DISTFILES+= kde-admindir-3.0.1.tar.gz:kde_admin
+
+BUILD_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf \
+ automake:${PORTSDIR}/devel/automake
+
+PLIST_SUB+= KDEDIR_VERSION=kde3
+
+post-extract:
+ @${RM} -Rf ${WRKSRC}/admin
+ @${CP} -Rp ${WRKDIR}/admin ${WRKSRC}
+
pre-configure:
- @${RM} ${WRKSRC}/config.cache
+ @${RM} -f ${WRKSRC}/config.cache
+ @cd ${WRKSRC} && ${GMAKE} -f admin/Makefile.common cvs || ${TRUE}
+
+.else
+
+PLIST_SUB+= KDEDIR_VERSION=kde2
+
+.endif # ${USE_KDELIBS_VER} == 3
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net/edonkey-gui-gtk-kioslave/distinfo b/net/edonkey-gui-gtk-kioslave/distinfo
index 02d77d74430..e87492a586b 100644
--- a/net/edonkey-gui-gtk-kioslave/distinfo
+++ b/net/edonkey-gui-gtk-kioslave/distinfo
@@ -1 +1,2 @@
MD5 (ed2k_kde2_kioslave.tar.gz) = 3d516c4bcfe08d091e365f424c7fa573
+MD5 (kde-admindir-3.0.1.tar.gz) = 2b9efbf9905b326080d2dd5bbdcff8db
diff --git a/net/edonkey-gui-gtk-kioslave/pkg-plist b/net/edonkey-gui-gtk-kioslave/pkg-plist
index 1d47a854a15..ec603dccbc2 100644
--- a/net/edonkey-gui-gtk-kioslave/pkg-plist
+++ b/net/edonkey-gui-gtk-kioslave/pkg-plist
@@ -1,3 +1,3 @@
-lib/kde2/kio_ed2kslave.la
-lib/kde2/kio_ed2kslave.so
+lib/%%KDEDIR_VERSION%%/kio_ed2kslave.la
+lib/%%KDEDIR_VERSION%%/kio_ed2kslave.so
share/services/ed2kslave.protocol