aboutsummaryrefslogtreecommitdiffstats
path: root/net/twinkle
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2011-04-08 14:53:29 +0800
committeracm <acm@FreeBSD.org>2011-04-08 14:53:29 +0800
commit9e496a8300cb472b7333972aec7481e5f0a1b9da (patch)
tree9e5fb1c8bee0c9bc624395053bd72fcb88dee728 /net/twinkle
parent51a9dcd56fed70235173318a975dde1210954c3d (diff)
downloadfreebsd-ports-gnome-9e496a8300cb472b7333972aec7481e5f0a1b9da.tar.gz
freebsd-ports-gnome-9e496a8300cb472b7333972aec7481e5f0a1b9da.tar.zst
freebsd-ports-gnome-9e496a8300cb472b7333972aec7481e5f0a1b9da.zip
- Add KDE option. It enable or disable KDE features
PR: 151285 Suggested by: amdmi3
Diffstat (limited to 'net/twinkle')
-rw-r--r--net/twinkle/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/net/twinkle/Makefile b/net/twinkle/Makefile
index 3f5d99bc267a..22a10a1a30d1 100644
--- a/net/twinkle/Makefile
+++ b/net/twinkle/Makefile
@@ -7,7 +7,7 @@
PORTNAME= twinkle
PORTVERSION= 1.4.2
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= net
MASTER_SITES= http://www.xs4all.nl/~mfnboer/twinkle/download/
@@ -32,7 +32,9 @@ USE_GNOME= libxml2
USE_PERL5= yes
USE_QT_VER= 3
-CONFIGURE_ARGS= --with-qt-dir=${QT_PREFIX} QTDIR=${LOCALBASE}
+OPTIONS= KDE "Compile with kde features" off
+
+CONFIGURE_ARGS= --with-qt-dir=${QT_PREFIX} QTDIR=${LOCALBASE} \
CONFIGURE_ENV= QMAKESPEC="${QMAKESPEC}" \
CFLAGS="${CFLAGS}"
MAKE_ENV= QTDIR=${QT_PREFIX}
@@ -42,6 +44,13 @@ QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
.include <bsd.port.pre.mk>
+.if defined(WITH_KDE)
+USE_KDELIBS_VER=3
+.include <${PORTSDIR}/Mk/bsd.kde.mk>
+.else
+CONFIGURE_ARGS+=--without-kde
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-lresolv||g' -e 's|-lbind||g' ${WRKSRC}/${CONFIGURE_SCRIPT}