From c0d6bce6225afbcf98a28d2dffbe6cc9337e3022 Mon Sep 17 00:00:00 2001 From: dinoex Date: Thu, 2 Jan 2003 04:06:58 +0000 Subject: - new feature GUI_KDE PR: 45840 Submitted by: lev@serebryakov.spb.ru, fjoe --- net/licq-qt-gui/Makefile | 25 ++++++++++++++++++++++++- net/licq-qt-gui/pkg-plist | 4 ++-- 2 files changed, 26 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/licq-qt-gui/Makefile b/net/licq-qt-gui/Makefile index 02ccc76acea5..a9b6484216ae 100644 --- a/net/licq-qt-gui/Makefile +++ b/net/licq-qt-gui/Makefile @@ -8,14 +8,37 @@ PORTNAME= qt-gui PORTVERSION= ${QT_LICQ_VER} CATEGORIES= net +.if defined(WITH_KDE) +PKGNAMESUFFIX= -kde +.endif MAINTAINER= dinoex@FreeBSD.org -USE_QT_VER= 3 CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \ LIBS="${PTHREAD_LIBS}" INCDIR= ${PORTSDIR}/net +.if defined(WITH_KDE) +USE_KDELIBS_VER=3 +CONFIGURE_ARGS+=--with-kde +CONFIGURE_ENV+= KDEDIR="${LOCALBASE}" +PLIST_SUB+= GUI_NAME=kde +.else +USE_QT_VER= 3 +PLIST_SUB+= GUI_NAME=qt +.endif + +pre-fetch: +.if defined(WITH_KDE) + @${ECHO_MSG} "" + @${ECHO_MSG} "Build with KDE support" + @${ECHO_MSG} "" +.else + @${ECHO_MSG} "" + @${ECHO_MSG} "You could define WITH_KDE if you want KDE support" + @${ECHO_MSG} "" +.endif + post-install: ${RM} -rf ${PREFIX}/share/licq/qt-gui/locale .if exists(${X11BASE}/bin/XFree86) diff --git a/net/licq-qt-gui/pkg-plist b/net/licq-qt-gui/pkg-plist index 3f96f6e8b6fd..8aac9a2d7a0d 100644 --- a/net/licq-qt-gui/pkg-plist +++ b/net/licq-qt-gui/pkg-plist @@ -1,5 +1,5 @@ -lib/licq/licq_qt-gui.la -lib/licq/licq_qt-gui.so +lib/licq/licq_%%GUI_NAME%%-gui.la +lib/licq/licq_%%GUI_NAME%%-gui.so share/licq/qt-gui/dock.console/away.xpm share/licq/qt-gui/dock.console/bothmsg.xpm share/licq/qt-gui/dock.console/console.dock -- cgit