aboutsummaryrefslogtreecommitdiffstats
path: root/net/edonkey-gui-gtk-kioslave/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/edonkey-gui-gtk-kioslave/Makefile')
-rw-r--r--net/edonkey-gui-gtk-kioslave/Makefile37
1 files changed, 33 insertions, 4 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>