aboutsummaryrefslogtreecommitdiffstats
path: root/net/edonkey-gui-gtk-kioslave/Makefile
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-07-04 01:17:27 +0800
committerlioux <lioux@FreeBSD.org>2002-07-04 01:17:27 +0800
commit528ac22874229eaf736519e6ebd6478459c0bd35 (patch)
tree6bdd332a3cb2177f5109bd2e6d9e435e0b3791d5 /net/edonkey-gui-gtk-kioslave/Makefile
parent310e979a60b56a48d4bf4fae3d691c481ceccd3d (diff)
downloadfreebsd-ports-graphics-528ac22874229eaf736519e6ebd6478459c0bd35.tar.gz
freebsd-ports-graphics-528ac22874229eaf736519e6ebd6478459c0bd35.tar.zst
freebsd-ports-graphics-528ac22874229eaf736519e6ebd6478459c0bd35.zip
o Enable build for KDE either 2 or 3
o Bump PORTREVISION
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>