aboutsummaryrefslogtreecommitdiff
path: root/irc/dxirc
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2016-11-23 19:21:19 +0000
committerJason E. Hale <jhale@FreeBSD.org>2016-11-23 19:21:19 +0000
commit8c6d013b62436ef8cc91158c9f2276929465db3a (patch)
tree94912187382d63b9681223751e37947f86974ea6 /irc/dxirc
parent01cffb1fa0766c55022f454b48bbf2f7a1aff36c (diff)
downloadports-8c6d013b62436ef8cc91158c9f2276929465db3a.tar.gz
ports-8c6d013b62436ef8cc91158c9f2276929465db3a.zip
Notes
Diffstat (limited to 'irc/dxirc')
-rw-r--r--irc/dxirc/Makefile94
-rw-r--r--irc/dxirc/distinfo5
-rw-r--r--irc/dxirc/files/patch-CMakeLists.txt44
-rw-r--r--irc/dxirc/files/patch-data_CMakeLists.txt20
-rw-r--r--irc/dxirc/files/patch-fox_CMakeLists.txt61
-rw-r--r--irc/dxirc/files/patch-qt_CMakeLists.txt50
-rw-r--r--irc/dxirc/pkg-descr10
-rw-r--r--irc/dxirc/pkg-plist65
8 files changed, 261 insertions, 88 deletions
diff --git a/irc/dxirc/Makefile b/irc/dxirc/Makefile
index be378270dc10..288afa0190f8 100644
--- a/irc/dxirc/Makefile
+++ b/irc/dxirc/Makefile
@@ -1,80 +1,62 @@
# $FreeBSD$
PORTNAME= dxirc
-PORTVERSION= 1.10.0
-PORTREVISION= 3
-CATEGORIES= irc
+PORTVERSION= 1.30.0
+CATEGORIES= irc ipv6
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
MAINTAINER= arch_dvx@users.sourceforge.net
-COMMENT= Simple IRC client written using the FOX toolkit
+COMMENT= Simple IRC client
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= libFOX-1.6.so:x11-toolkits/fox16
+USE_XORG= ice sm x11 xext
+USES= cmake pkgconfig
+INSTALLS_ICONS= yes
-USE_XORG= xft
-USES= gmake pkgconfig
-GNU_CONFIGURE= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -lpthread -L${LOCALBASE}/lib
+OPTIONS_DEFINE= NLS LUA ENCHANT NOTIFY
+OPTIONS_SINGLE= GUI
+OPTIONS_SINGLE_GUI= FOX16 QT4 QT5
+OPTIONS_DEFAULT= LUA QT5
+OPTIONS_SUB= yes
-OPTIONS_DEFINE= NLS TRAY IPV6 SSL LUA ENCHANT NOTIFY DOCS
-OPTIONS_DEFAULT= TRAY SSL LUA
+ENCHANT_DESC= Spell checking support via Enchant
+ENCHANT_LIB_DEPENDS= libenchant.so:textproc/enchant
+ENCHANT_CMAKE_ON= -DHAVE_ENCHANT:BOOL=ON
+ENCHANT_CMAKE_OFF= -DHAVE_ENCHANT:BOOL=OFF
-TRAY_DESC= Trayicon
-ENCHANT_DESC= Spellchecking support
-NOTIFY_DESC= Libnotify support
+FOX16_DESC= FOX 1.6 toolkit support
+FOX16_LIB_DEPENDS= libFOX-1.6.so:x11-toolkits/fox16
+FOX16_USES= ssl
+FOX16_CMAKE_ON= -DFOX_ENABLE_IPV6:BOOL=ON
-PORTDOCS= README
+LUA_USES= lua
+LUA_CMAKE_ON= -DWITH_LUA:BOOL=ON
+LUA_CMAKE_OFF= -DWITH_LUA:BOOL=OFF
-.include <bsd.port.options.mk>
+NLS_USES= gettext
+NLS_CMAKE_ON= -DWITH_NLS:BOOL=ON
+NLS_CMAKE_OFF= -DWITH_NLS:BOOL=OFF
-.if ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
-USES+= gettext
-PLIST_SUB+= NLS=""
-.endif
+NOTIFY_RUN_DEPENDS= notify-send:devel/libnotify
-.if ! ${PORT_OPTIONS:MTRAY}
-CONFIGURE_ARGS+= --disable-tray
-.endif
+QT4_USE= QT4=corelib,gui,network \
+ QT4=moc_build,rcc_build,uic_build,qmake_build
+QT4_CMAKE_ON= -DQT5:BOOL=OFF
-.if ! ${PORT_OPTIONS:MIPV6}
-CONFIGURE_ARGS+= --disable-ipv6
-.endif
+QT5_USE= QT5=core,gui,multimedia,network,widgets \
+ QT5=buildtools_build,qmake_build
+QT5_CMAKE_ON= -DQT5:BOOL=ON
-.if ${PORT_OPTIONS:MSSL}
-USE_OPENSSL= yes
-.else
-CONFIGURE_ARGS+= --disable-ssl
-.endif
+.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MLUA}
-USES+= lua:51
-CONFIGURE_ENV+= LUA_CFLAGS="-I${LUA_INCDIR}" LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}"
-CONFIGURE_ARGS+= --enable-lua
+.if ${PORT_OPTIONS:MFOX16}
+CMAKE_ARGS+= -DBUILD_FOX:BOOL=ON -DBUILD_QT:BOOL=OFF
+PLIST_SUB+= FOX="" QT="@comment "
.else
-CONFIGURE_ARGS+= --disable-lua
-.endif
-
-.if ${PORT_OPTIONS:MENCHANT}
-LIB_DEPENDS+= libenchant.so:textproc/enchant
-CONFIGURE_ARGS+= --enable-enchant
-.endif
-
-.if ${PORT_OPTIONS:MNOTIFY}
-LIB_DEPENDS+= libnotify.so:devel/libnotify
-CONFIGURE_ARGS+= --enable-libnotify
-.endif
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+CMAKE_ARGS+= -DBUILD_FOX:BOOL=OFF -DBUILD_QT:BOOL=ON
+PLIST_SUB+= FOX="@comment " QT=""
.endif
.include <bsd.port.mk>
diff --git a/irc/dxirc/distinfo b/irc/dxirc/distinfo
index bd97181f9528..7c2e2d9b2705 100644
--- a/irc/dxirc/distinfo
+++ b/irc/dxirc/distinfo
@@ -1,2 +1,3 @@
-SHA256 (dxirc-1.10.0.tar.gz) = 92c2827cde8b08cca3b5595d05beab727afce8dc9d30fdbb71face6be567ec65
-SIZE (dxirc-1.10.0.tar.gz) = 1496185
+TIMESTAMP = 1479762158
+SHA256 (dxirc-1.30.0.tar.gz) = 8a98441f8e3ce3a77e5af8f783e439690ac08f7672616a03151b9892e9ff948d
+SIZE (dxirc-1.30.0.tar.gz) = 1300576
diff --git a/irc/dxirc/files/patch-CMakeLists.txt b/irc/dxirc/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..01c7c39815a5
--- /dev/null
+++ b/irc/dxirc/files/patch-CMakeLists.txt
@@ -0,0 +1,44 @@
+--- CMakeLists.txt.orig 2015-10-28 18:53:26 UTC
++++ CMakeLists.txt
+@@ -5,13 +5,17 @@ set(PROJECT_VERSION "1.30.0")
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
+
+ find_package(PkgConfig)
+-find_package(Libintl)
+-find_package(Gettext)
+
+ # Enable i10n.
+-if(LIBINTL_LIB_FOUND)
++option(WITH_NLS "Enable NLS support" TRUE)
++if(WITH_NLS)
++ find_package(Libintl)
++ find_package(Gettext)
++
++ if(LIBINTL_LIB_FOUND)
+ set(ENABLE_NLS TRUE)
+-endif(LIBINTL_LIB_FOUND)
++ endif(LIBINTL_LIB_FOUND)
++endif(WITH_NLS)
+
+ if(NOT WIN32)
+ option(HAVE_ENCHANT "Enable spellchecking" FALSE)
+@@ -23,11 +27,14 @@ if(APPLE)
+ option(ENABLE_OSX_BUNDLE "Package dxirc as an OSX bundle (ignored on other platforms)." OFF)
+ endif(APPLE)
+
+-set(HAVE_LUA FALSE)
+-find_package(Lua)
+-if(LUA_FOUND)
+- set(HAVE_LUA TRUE)
+-endif(LUA_FOUND)
++option(WITH_LUA "Enable LUA support" FALSE)
++if(WITH_LUA)
++ set(HAVE_LUA FALSE)
++ find_package(Lua)
++ if(LUA_FOUND)
++ set(HAVE_LUA TRUE)
++ endif(LUA_FOUND)
++endif(WITH_LUA)
+
+ if(APPLE AND ENABLE_OSX_BUNDLE)
+ add_definitions(-DLOCALEDIR="./locale")
diff --git a/irc/dxirc/files/patch-data_CMakeLists.txt b/irc/dxirc/files/patch-data_CMakeLists.txt
new file mode 100644
index 000000000000..bed37f9e7889
--- /dev/null
+++ b/irc/dxirc/files/patch-data_CMakeLists.txt
@@ -0,0 +1,20 @@
+--- data/CMakeLists.txt.orig 2015-10-28 18:53:26 UTC
++++ data/CMakeLists.txt
+@@ -1,9 +1,16 @@
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+
++if(WITH_NLS)
+ add_subdirectory(translations)
++endif(WITH_NLS)
+
+ if(NOT WIN32)
+-install(FILES dxirc-fox.desktop dxirc-qt.desktop DESTINATION share/applications)
++ if(BUILD_FOX)
++ install(FILES dxirc-fox.desktop DESTINATION share/applications)
++ endif(BUILD_FOX)
++ if(BUILD_QT)
++ install(FILES dxirc-qt.desktop DESTINATION share/applications)
++ endif(BUILD_QT)
+ endif(NOT WIN32)
+ install(FILES icons/dxirc.png DESTINATION share/icons/hicolor/48x48/apps)
+ install(DIRECTORY icons/ DESTINATION share/dxirc/icons FILES_MATCHING PATTERN "*.png" PATTERN "*.smiley" PATTERN ".svn" EXCLUDE)
diff --git a/irc/dxirc/files/patch-fox_CMakeLists.txt b/irc/dxirc/files/patch-fox_CMakeLists.txt
new file mode 100644
index 000000000000..d4a297adad02
--- /dev/null
+++ b/irc/dxirc/files/patch-fox_CMakeLists.txt
@@ -0,0 +1,61 @@
+--- fox/CMakeLists.txt.orig 2015-11-16 14:35:35 UTC
++++ fox/CMakeLists.txt
+@@ -20,8 +20,17 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_C
+
+ if(PKG_CONFIG_FOUND)
+ pkg_check_modules(FOX fox)
+- list(APPEND DXIRCFOX_LIBS ${FOX_LIBRARIES})
+- list(APPEND DXIRCFOX_INCLUDE_DIRS ${FOX_INCLUDE_DIRS})
++ find_path(FOX_INCLUDE_DIR FXApp.h
++ PATHS
++ ${FOX_INCLUDE_DIRS}
++ /usr/include/fox-1.6
++ /usr/local/include/fox-1.6)
++ find_library(FOX_LIBRARY FOX-1.6
++ ${FOX_LIBRARY_DIRS}
++ /usr/lib
++ /usr/local/lib)
++ list(APPEND DXIRCFOX_LIBS ${FOX_LIBRARY})
++ list(APPEND DXIRCFOX_INCLUDE_DIRS ${FOX_INCLUDE_DIR})
+ endif(PKG_CONFIG_FOUND)
+
+ if(NOT FOX_FOUND)
+@@ -47,16 +56,14 @@ endif()
+
+ set(HAVE_X11 FALSE)
+ if(NOT WIN32)
+- if(PKG_CONFIG_FOUND)
+- pkg_check_modules(X11 x11)
++ find_package(X11)
+ list(APPEND DXIRCFOX_LIBS ${X11_LIBRARIES})
+- list(APPEND DXIRCFOX_INCLUDE_DIRS ${X11_INCLUDE_DIRS})
++ list(APPEND DXIRCFOX_INCLUDE_DIRS ${X11_INCLUDE_DIR})
+ if(X11_FOUND)
+ set(HAVE_X11 TRUE)
+ else(X11_FOUND)
+ set(FOX_HAVE_TRAY FALSE)
+ endif(X11_FOUND)
+- endif(PKG_CONFIG_FOUND)
+ else(NOT WIN32)
+ list(APPEND DXIRCFOX_LIBS "ws2_32" "winmm")
+ endif(NOT WIN32)
+@@ -89,8 +96,17 @@ endif(HAVE_LUA)
+ if(HAVE_ENCHANT)
+ if(PKG_CONFIG_FOUND)
+ pkg_check_modules(ENCHANT enchant)
+- list(APPEND DXIRCFOX_LIBS ${ENCHANT_LIBRARIES})
+- list(APPEND DXIRCFOX_INCLUDE_DIRS ${ENCHANT_INCLUDE_DIRS})
++ find_path(ENCHANT_INCLUDE_DIR enchant++.h
++ PATHS
++ ${ENCHANT_INCLUDE_DIRS}
++ /usr/include/enchant
++ /usr/local/include/enchant)
++ find_library(ENCHANT_LIBRARY enchant
++ ${ENCHANT_LIBRARY_DIRS}
++ /usr/lib
++ /usr/local/lib)
++ list(APPEND DXIRCFOX_LIBS ${ENCHANT_LIBRARY})
++ list(APPEND DXIRCFOX_INCLUDE_DIRS ${ENCHANT_INCLUDE_DIR})
+ endif(PKG_CONFIG_FOUND)
+ if(NOT ENCHANT_FOUND)
+ set(ENCHANT_INCLUDE_DIR "" CACHE PATH "Path to enchant include dir")
diff --git a/irc/dxirc/files/patch-qt_CMakeLists.txt b/irc/dxirc/files/patch-qt_CMakeLists.txt
new file mode 100644
index 000000000000..e4874cb85bc8
--- /dev/null
+++ b/irc/dxirc/files/patch-qt_CMakeLists.txt
@@ -0,0 +1,50 @@
+--- qt/CMakeLists.txt.orig 2015-11-16 14:35:35 UTC
++++ qt/CMakeLists.txt
+@@ -13,11 +13,11 @@ project(dxirc-qt)
+ option(QT5 "Compile with Qt 5" TRUE)
+
+ if(UNIX)
+- if(BSD)
++ if(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
+ set(CMAKE_THREAD_LIBS -pthread)
+ set(CMAKE_USE_PTHREADS ON)
+ set(CMAKE_EXE_LINKER_FLAGS -pthread)
+- endif(BSD)
++ endif(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
+ endif(UNIX)
+
+ SET(DXIRCQT_LIBS "")
+@@ -35,11 +35,20 @@ endif(HAVE_LUA)
+
+ if(NOT APPLE)
+ if(HAVE_ENCHANT)
+- if(PKG_CONFIG_FOUND)
+- pkg_check_modules(ENCHANT enchant)
+- list(APPEND DXIRCQT_LIBS ${ENCHANT_LIBRARIES})
+- list(APPEND DXIRCQT_INCLUDE_DIRS ${ENCHANT_INCLUDE_DIRS})
+- endif(PKG_CONFIG_FOUND)
++ if(PKG_CONFIG_FOUND)
++ pkg_check_modules(ENCHANT enchant)
++ find_path(ENCHANT_INCLUDE_DIR enchant++.h
++ PATHS
++ ${ENCHANT_INCLUDE_DIRS}
++ /usr/include
++ /usr/local/include)
++ find_library(ENCHANT_LIBRARY enchant
++ ${ENCHANT_LIBRARY_DIRS}
++ /usr/lib
++ /usr/local/lib)
++ list(APPEND DXIRCQT_LIBS ${ENCHANT_LIBRARY})
++ list(APPEND DXIRCQT_INCLUDE_DIRS ${ENCHANT_INCLUDE_DIR})
++ endif(PKG_CONFIG_FOUND)
+ if(NOT ENCHANT_FOUND)
+ set(ENCHANT_INCLUDE_DIR "" CACHE PATH "Path to enchant include dir")
+ set(ENCHANT_LIBRARY "" CACHE FILEPATH "Filepath to enchant library")
+@@ -110,6 +119,7 @@ dialogs/scriptdialog.h
+ dialogs/dccsenddialog.h
+ dialogs/configdialog.h
+ dialogs/keydialog.h
++dialogs/listdialog.h
+ engine/dxsocket.h
+ engine/ircengine.h
+ engine/dccengine.h
diff --git a/irc/dxirc/pkg-descr b/irc/dxirc/pkg-descr
index e377626a7d03..881a72698596 100644
--- a/irc/dxirc/pkg-descr
+++ b/irc/dxirc/pkg-descr
@@ -1,4 +1,10 @@
-dxirc is a simple IRC client for various os (Linux, *BSD, Windows), written
-using the FOX toolkit.
+dxirc is a simple, yet capable, cross-platform IRC client written
+in C++ for the FOX toolkit and the Qt toolkit.
+
+Features:
+ - Fully customizable look independent of system-wide settings
+ - Automated join to specified channels on selected server
+ - Support for multiple simultaneously connected servers
+ - Well-arranged and flexible configuration dialog
WWW: http://www.dxirc.org/
diff --git a/irc/dxirc/pkg-plist b/irc/dxirc/pkg-plist
index a2b06d26e631..97a5aa515f7f 100644
--- a/irc/dxirc/pkg-plist
+++ b/irc/dxirc/pkg-plist
@@ -1,11 +1,15 @@
-bin/dxirc
-share/applications/dxirc.desktop
-share/pixmaps/dxirc.png
+%%FOX%%bin/dxirc-fox
+%%QT%%bin/dxirc-qt
+%%FOX%%share/applications/dxirc-fox.desktop
+%%QT%%share/applications/dxirc-qt.desktop
%%DATADIR%%/COPYING
%%DATADIR%%/icons/arrow_down.png
%%DATADIR%%/icons/arrow_refresh.png
%%DATADIR%%/icons/arrow_up.png
%%DATADIR%%/icons/big_dxirc.png
+%%DATADIR%%/icons/black_dxirc.png
+%%DATADIR%%/icons/bnewfile.png
+%%DATADIR%%/icons/bnewm.png
%%DATADIR%%/icons/cancel.png
%%DATADIR%%/icons/channel.png
%%DATADIR%%/icons/chnewm.png
@@ -15,31 +19,6 @@ share/pixmaps/dxirc.png
%%DATADIR%%/icons/cross.png
%%DATADIR%%/icons/dcc.png
%%DATADIR%%/icons/dccnewm.png
-%%DATADIR%%/icons/disconnect.png
-%%DATADIR%%/icons/door_out.png
-%%DATADIR%%/icons/file.png
-%%DATADIR%%/icons/find.png
-%%DATADIR%%/icons/folder.png
-%%DATADIR%%/icons/folder_go.png
-%%DATADIR%%/icons/help.png
-%%DATADIR%%/icons/keyboard.png
-%%DATADIR%%/icons/logs.png
-%%DATADIR%%/icons/newfile.png
-%%DATADIR%%/icons/newm.png
-%%DATADIR%%/icons/page.png
-%%DATADIR%%/icons/play.png
-%%DATADIR%%/icons/script.png
-%%DATADIR%%/icons/select_all.png
-%%DATADIR%%/icons/server.png
-%%DATADIR%%/icons/small_dxirc.png
-%%DATADIR%%/icons/tick.png
-%%DATADIR%%/icons/unewm.png
-%%DATADIR%%/icons/user.png
-%%DATADIR%%/icons/world.png
-%%DATADIR%%/icons/wrench.png
-%%DATADIR%%/sounds/connected.wav
-%%DATADIR%%/sounds/disconnected.wav
-%%DATADIR%%/sounds/message.wav
%%DATADIR%%/icons/default/irc_admin.png
%%DATADIR%%/icons/default/irc_away.png
%%DATADIR%%/icons/default/irc_halfop.png
@@ -47,6 +26,11 @@ share/pixmaps/dxirc.png
%%DATADIR%%/icons/default/irc_op.png
%%DATADIR%%/icons/default/irc_owner.png
%%DATADIR%%/icons/default/irc_voice.png
+%%DATADIR%%/icons/disconnect.png
+%%DATADIR%%/icons/door_out.png
+%%DATADIR%%/icons/dxirc.png
+%%DATADIR%%/icons/file.png
+%%DATADIR%%/icons/find.png
%%DATADIR%%/icons/flags/ar.png
%%DATADIR%%/icons/flags/as.png
%%DATADIR%%/icons/flags/at.png
@@ -280,11 +264,36 @@ share/pixmaps/dxirc.png
%%DATADIR%%/icons/flags/za.png
%%DATADIR%%/icons/flags/zm.png
%%DATADIR%%/icons/flags/zw.png
+%%DATADIR%%/icons/folder.png
+%%DATADIR%%/icons/folder_go.png
+%%DATADIR%%/icons/ft.png
+%%DATADIR%%/icons/groupclose.png
+%%DATADIR%%/icons/groupopen.png
+%%DATADIR%%/icons/help.png
+%%DATADIR%%/icons/keyboard.png
+%%DATADIR%%/icons/logs.png
+%%DATADIR%%/icons/newfile.png
+%%DATADIR%%/icons/newm.png
+%%DATADIR%%/icons/page.png
+%%DATADIR%%/icons/play.png
+%%DATADIR%%/icons/script.png
+%%DATADIR%%/icons/select_all.png
+%%DATADIR%%/icons/server.png
+%%DATADIR%%/icons/small_dxirc.png
%%DATADIR%%/icons/smileys/biggrin.png
%%DATADIR%%/icons/smileys/cry.png
%%DATADIR%%/icons/smileys/dxirc.smiley
%%DATADIR%%/icons/smileys/smile.png
%%DATADIR%%/icons/smileys/tongue.png
%%DATADIR%%/icons/smileys/unhappy.png
+%%DATADIR%%/icons/tick.png
+%%DATADIR%%/icons/unewm.png
+%%DATADIR%%/icons/user.png
+%%DATADIR%%/icons/world.png
+%%DATADIR%%/icons/wrench.png
+%%DATADIR%%/sounds/connected.wav
+%%DATADIR%%/sounds/disconnected.wav
+%%DATADIR%%/sounds/message.wav
+share/icons/hicolor/48x48/apps/dxirc.png
%%NLS%%share/locale/cs/LC_MESSAGES/dxirc.mo
%%NLS%%share/locale/sk/LC_MESSAGES/dxirc.mo