aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-01-02 04:06:58 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-01-02 04:06:58 +0000
commite676d3950ac073228694ce009a13c60de38f92ac (patch)
tree343ad9518fe1654a1b6214884d12d75bfea61dce
parent83a52d9dcef8368f064fbc9df0622ef04b45c965 (diff)
downloadports-e676d3950ac073228694ce009a13c60de38f92ac.tar.gz
ports-e676d3950ac073228694ce009a13c60de38f92ac.zip
Notes
-rw-r--r--net-im/licq-qt-gui/Makefile25
-rw-r--r--net-im/licq-qt-gui/pkg-plist4
-rw-r--r--net/licq-qt-gui/Makefile25
-rw-r--r--net/licq-qt-gui/pkg-plist4
4 files changed, 52 insertions, 6 deletions
diff --git a/net-im/licq-qt-gui/Makefile b/net-im/licq-qt-gui/Makefile
index 02ccc76acea5..a9b6484216ae 100644
--- a/net-im/licq-qt-gui/Makefile
+++ b/net-im/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-im/licq-qt-gui/pkg-plist b/net-im/licq-qt-gui/pkg-plist
index 3f96f6e8b6fd..8aac9a2d7a0d 100644
--- a/net-im/licq-qt-gui/pkg-plist
+++ b/net-im/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
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