diff options
Diffstat (limited to 'net-p2p/eiskaltdcpp-gtk')
-rw-r--r-- | net-p2p/eiskaltdcpp-gtk/Makefile | 94 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-gtk/distinfo | 2 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-gtk/files/patch-CMakeLists.txt | 74 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-gtk/files/patch-cmake__CMakeLists.txt | 85 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-gtk/files/patch-eiskaltdcpp-gtk__CMakeLists.txt | 52 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-gtk/pkg-descr | 8 | ||||
-rw-r--r-- | net-p2p/eiskaltdcpp-gtk/pkg-plist | 7 |
7 files changed, 47 insertions, 275 deletions
diff --git a/net-p2p/eiskaltdcpp-gtk/Makefile b/net-p2p/eiskaltdcpp-gtk/Makefile index fd2df3db3ec2..233bca63d4cf 100644 --- a/net-p2p/eiskaltdcpp-gtk/Makefile +++ b/net-p2p/eiskaltdcpp-gtk/Makefile @@ -1,73 +1,61 @@ # Created by: Stas Timokhin <stast@bsdportal.ru> # $FreeBSD$ -PORTNAME= eiskaltdcpp-gtk -PORTVERSION= 2.2.4 -PORTREVISION= 4 +PORTNAME= eiskaltdcpp CATEGORIES= net-p2p -MASTER_SITES= GOOGLE_CODE -DISTNAME= eiskaltdcpp-${DISTVERSION} +PKGNAMESUFFIX= -gtk MAINTAINER= ports@FreeBSD.org COMMENT= EiskaltDC++ Direct Connect client GTK GUI LICENSE= GPLv3 -RUN_DEPENDS= ${LOCALBASE}/share/eiskaltdcpp/keep_me:${PORTSDIR}/net-p2p/eiskaltdcpp-data +RUN_DEPENDS= eiskaltdcpp-data>=0:${PORTSDIR}/net-p2p/eiskaltdcpp-data LIB_DEPENDS= libeiskaltdcpp.so:${PORTSDIR}/net-p2p/eiskaltdcpp-lib -BUILD_DEPENDS+= chrpath:${PORTSDIR}/devel/chrpath -CMAKE_ARGS+= -DBUILD_LIB:BOOL=OFF -PROJECTHOST= eiskaltdc +MASTERDIR= ${.CURDIR}/../eiskaltdcpp-lib -USE_GCC= yes -USES= cmake gettext tar:xz +USES= cmake gettext compiler:c++11-lib desktop-file-utils USE_OPENSSL= yes - -MAN1= ${PORTNAME}.1 -MANCOMPRESSED= yes - -OPTIONS_DEFINE= MINIUPNP LIBGNOME2 LIBNOTIFY -OPTIONS_DEFAULT= MINIUPNP LIBNOTIFY -MINIUPNP_DESC= UPnP support -LIBGNOME2_DESC= Sound notification support +USE_GNOME= pango glib20 + +OPTIONS_DEFINE= LIBNOTIFY FREE_SPACE +OPTIONS_DEFAULT= LIBNOTIFY FREE_SPACE GTK2 NOSOUND +OPTIONS_SINGLE= GTK SOUND +OPTIONS_SINGLE_GTK= GTK2 GTK3 +OPTIONS_SINGLE_SOUND= NOSOUND LIBGNOME2 LIBCANBERRA +NOSOUND_DESC= Disable sound notification support +LIBGNOME2_DESC= Sound notification support via libgnome +LIBCANBERRA_DESC= Sound notification support via libcanberra LIBNOTIFY_DESC= Popup notification support - -USE_GNOME= pango gtk20 glib20 +FREE_SPACE_DESC=Free space bar in status panel +GTK_DESC= GTK GUI toolkit version CMAKE_ARGS+= -DUSE_QT:BOOL=OFF -CMAKE_ARGS+= -DUSE_GTK:BOOL=ON -CMAKE_ARGS+= -DEISKALTDCPP_INCLUDE_DIR:STRING="${LOCALBASE}/include/eiskaltdcpp" CMAKE_ARGS+= -DCREATE_MO:BOOL=ON -CMAKE_ARGS+= -DCMAKE_LIBRARY_PATH:PATH="${LOCALBASE}/lib:${PREFIX}/lib" -CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=ON CMAKE_ARGS+= -DINSTALL_DATA:BOOL=OFF -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MMINIUPNP} -LIB_DEPENDS+= libminiupnpc.so:${PORTSDIR}/net/miniupnpc -CMAKE_ARGS+= -DUSE_MINIUPNP:BOOL=ON -DLOCAL_MINIUPNP:BOOL=OFF -.else -CMAKE_ARGS+= -DUSE_MINIUPNP:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MLIBGNOME2} -USE_GNOME+= libgnome -CMAKE_ARGS+= -DUSE_LIBGNOME2:BOOL=ON -.else -CMAKE_ARGS+= -DUSE_LIBGNOME2:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MLIBNOTIFY} -LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify -CMAKE_ARGS+= -DUSE_LIBNOTIFY:BOOL=ON -.else -CMAKE_ARGS+= -DUSE_LIBNOTIFY:BOOL=OFF -.endif - -post-build: - ${LOCALBASE}/bin/chrpath -r "${_GCC_RUNTIME}" "${WRKSRC}/${PORTNAME}/${PORTNAME}" - -.include <bsd.port.mk> +NOSOUND_CMAKE_ON= -DUSE_LIBGNOME2:BOOL=OFF -DUSE_LIBCANBERRA:BOOL=OFF + +LIBGNOME2_USE= gnome=libgnome +LIBGNOME2_CMAKE_ON= -DUSE_LIBGNOME2:BOOL=ON -DUSE_LIBCANBERRA:BOOL=OFF + +LIBCANBERRA_LIB_DEPENDS=libcanberra-gtk.so:${PORTSDIR}/audio/libcanberra +LIBCANBERRA_CMAKE_ON= -DUSE_LIBGNOME2:BOOL=OFF -DUSE_LIBCANBERRA:BOOL=ON + +LIBNOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify +LIBNOTIFY_CMAKE_ON= -DUSE_LIBNOTIFY:BOOL=ON +LIBNOTIFY_CMAKE_OFF= -DUSE_LIBNOTIFY:BOOL=OFF + +GTK2_USE= gnome=gtk20 +GTK2_CMAKE_ON= -DUSE_GTK:BOOL=ON -DUSE_GTK3:BOOL=OFF +GTK2_CMAKE_OFF= -DUSE_GTK:BOOL=OFF -DUSE_GTK3:BOOL=ON + +GTK3_USE= gnome=gtk30 +GTK3_CMAKE_ON= -DUSE_GTK:BOOL=OFF -DUSE_GTK3:BOOL=ON +GTK3_CMAKE_OFF= -DUSE_GTK:BOOL=ON -DUSE_GTK3:BOOL=OFF + +FREE_SPACE_CMAKE_ON= -DFREE_SPACE_BAR_C:BOOL=ON +FREE_SPACE_CMAKE_OFF= -DFREE_SPACE_BAR_C:BOOL=OFF + +.include "${MASTERDIR}/Makefile" diff --git a/net-p2p/eiskaltdcpp-gtk/distinfo b/net-p2p/eiskaltdcpp-gtk/distinfo deleted file mode 100644 index f94894f67b5f..000000000000 --- a/net-p2p/eiskaltdcpp-gtk/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (eiskaltdcpp-2.2.4.tar.xz) = a14d44ad1c48dc97354e17d3d8d8fc9bdd7be646d275603d092c6d9ebf7061b4 -SIZE (eiskaltdcpp-2.2.4.tar.xz) = 2008920 diff --git a/net-p2p/eiskaltdcpp-gtk/files/patch-CMakeLists.txt b/net-p2p/eiskaltdcpp-gtk/files/patch-CMakeLists.txt deleted file mode 100644 index f1f6e7321d3b..000000000000 --- a/net-p2p/eiskaltdcpp-gtk/files/patch-CMakeLists.txt +++ /dev/null @@ -1,74 +0,0 @@ ---- CMakeLists.txt.orig 2011-10-02 22:12:43.000000000 +0700 -+++ CMakeLists.txt 2013-05-09 17:58:03.000000000 +0700 -@@ -212,14 +212,14 @@ - - if (USE_LIBGNOME2) - message (STATUS "Building with LibGnome2 support") -- find_package (LibGnome2 REQUIRED) -+ find_library(LIBGNOME2_LIBRARIES gnome-2) - else (USE_LIBGNOME2) - message (STATUS "Building without LibGnome2 support") - endif (USE_LIBGNOME2) - - if (USE_LIBNOTIFY) - message (STATUS "Building with libnotify support") -- set (LIBNOTIFY "-lnotify") -+ find_library(LIBNOTIFY notify) - else (USE_LIBNOTIFY) - message (STATUS "Building without libnotify support") - endif (USE_LIBNOTIFY) -@@ -256,7 +256,7 @@ - endif() - message (STATUS "USED LOCAL BOOST HEADERS") - else (LOCAL_BOOST) -- find_package (Boost REQUIRED) -+ find_package (Boost COMPONENTS system REQUIRED) - if (Boost_VERSION VERSION_LESS 103900) - add_definitions(-DFIX_FOR_OLD_BOOST) - endif() -@@ -370,16 +370,14 @@ - else (MINGW) - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") - endif (MINGW) -- if (NOT APPLE) -- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--as-needed") -- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--as-needed") -- endif (NOT APPLE) - set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -pipe -DNDEBUG") - set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DQT_NO_DEBUG -pipe") - set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -UNDEBUG -g3 -pipe") - endif () - --include_directories(${eiskaltdcpp_BINARY_DIR} -+include_directories( -+ ${EISKALTDCPP_INCLUDE_DIR} -+ ${eiskaltdcpp_BINARY_DIR} - ${eiskaltdcpp_SOURCE_DIR} - ${GMP_INCLUDE_DIR} - ) -@@ -451,7 +449,9 @@ - add_subdirectory (dht) - endif (WITH_DHT) - --add_subdirectory (dcpp) -+if (BUILD_LIB) -+ add_subdirectory (dcpp) -+endif (BUILD_LIB) - - if (USE_QT) - add_subdirectory (eiskaltdcpp-qt) -@@ -482,7 +482,7 @@ - add_subdirectory(cmake) - endif(GETTEXT_FOUND) - --if (USE_QT OR USE_GTK) -+if (INSTALL_DATA AND (USE_QT OR USE_GTK)) - - if (WITH_EXAMPLES) - install (DIRECTORY examples/ DESTINATION ${CLIENT_DATA_DIR}/examples -@@ -524,4 +524,4 @@ - install (FILES icons/icon_128x128.png DESTINATION ${SHARE_DIR}/pixmaps/ RENAME eiskaltdcpp.png) - endif (NOT HAIKU) - endif (APPLE) --endif (USE_QT OR USE_GTK) -+endif (INSTALL_DATA AND (USE_QT OR USE_GTK)) diff --git a/net-p2p/eiskaltdcpp-gtk/files/patch-cmake__CMakeLists.txt b/net-p2p/eiskaltdcpp-gtk/files/patch-cmake__CMakeLists.txt deleted file mode 100644 index 6780e45dbb26..000000000000 --- a/net-p2p/eiskaltdcpp-gtk/files/patch-cmake__CMakeLists.txt +++ /dev/null @@ -1,85 +0,0 @@ ---- ./cmake/CMakeLists.txt.orig 2011-10-02 18:12:43.000000000 +0300 -+++ ./cmake/CMakeLists.txt 2011-10-10 11:10:30.000000000 +0300 -@@ -37,12 +37,14 @@ - - endmacro(GET_RELATIVE_SOURCES) - -+if (BUILD_LIB) - get_absolute_sources(abs_dcpp_sources "${DCPP_SRCS};${DCPP_HDRS}") - get_relative_sources(rel_dcpp_sources "${dcpp_SOURCE_DIR}/po" "${abs_dcpp_sources}") - file(MAKE_DIRECTORY "${dcpp_BINARY_DIR}/po") - set(dcpp_files_from "${dcpp_BINARY_DIR}/po/libeiskaltdcpp_srcs.txt") - string(REGEX REPLACE ";" "\n" dcpp_contents "${rel_dcpp_sources}") - file(WRITE "${dcpp_files_from}" "${dcpp_contents}") -+endif (BUILD_LIB) - - if (USE_GTK) - get_absolute_sources(abs_gtk_cpp_sources "${GTK_SRCS};${GTK_HDRS}") -@@ -163,6 +165,7 @@ - # if the po file doesn't exist. The case where a po file used to - # exist and no longer exists should never occur - -+ if (BUILD_LIB) - if(NOT EXISTS ${dcpp_SOURCE_DIR}/po/${LANG}.po) - add_custom_command( - OUTPUT ${dcpp_SOURCE_DIR}/po/${LANG}.po -@@ -194,6 +197,7 @@ - WORKING_DIRECTORY ${dcpp_SOURCE_DIR}/po - COMMENT "pot-update [dcpp-${LANG}]: Updated po file." - ) -+ endif (BUILD_LIB) - - if (USE_GTK) - if(NOT EXISTS ${eiskaltdcpp-gtk_SOURCE_DIR}/po/${LANG}.po) -@@ -231,15 +235,19 @@ - SET(pot-update-SRC ${pot-update-SRC} ${eiskaltdcpp-gtk_SOURCE_DIR}/po/${LANG}.po.dummy ) - endif (USE_GTK) - -+ if (BUILD_LIB) - SET(pot-update-SRC ${pot-update-SRC} ${dcpp_SOURCE_DIR}/po/${LANG}.po.dummy) -+ endif (BUILD_LIB) - endforeach(LANG ${LANGUAGES}) - - # Add to target list -+ if (BUILD_LIB) - SET(pot-update-SRC - ${pot-update-SRC} - ${dcpp_SOURCE_DIR}/po/libeiskaltdcpp.pot # should depend on languages - - ) -+ endif (BUILD_LIB) - if (USE_GTK) - SET(pot-update-SRC - ${pot-update-SRC} -@@ -329,6 +337,7 @@ - - foreach(LANG ${LANGUAGES}) - -+ if (BUILD_LIB) - add_custom_command( - OUTPUT ${dcpp_BINARY_DIR}/locale/${LANG}/LC_MESSAGES - COMMAND ${CMAKE_COMMAND} -E make_directory -@@ -346,6 +355,7 @@ - WORKING_DIRECTORY ${dcpp_SOURCE_DIR}/po - COMMENT "mo-update [dcpp-${LANG}]: Creating mo file." - ) -+ endif (BUILD_LIB) - if (USE_GTK) - add_custom_command( - OUTPUT ${eiskaltdcpp-gtk_BINARY_DIR}/locale/${LANG}/LC_MESSAGES -@@ -377,6 +387,7 @@ - ) - endif (USE_GTK) - -+ if (BUILD_LIB) - install(FILES - ${dcpp_BINARY_DIR}/locale/${LANG}/LC_MESSAGES/libeiskaltdcpp.mo - DESTINATION ${LOCALE_DIR}/${LANG}/LC_MESSAGES) -@@ -387,6 +398,7 @@ - set(mo-update-LANG-SRC ${mo-update-LANG-SRC} - ${dcpp_BINARY_DIR}/locale/${LANG}/LC_MESSAGES/libeiskaltdcpp.mo - ) -+ endif (BUILD_LIB) - - if(UPDATE_PO) - add_custom_target(mo-update-${LANG} diff --git a/net-p2p/eiskaltdcpp-gtk/files/patch-eiskaltdcpp-gtk__CMakeLists.txt b/net-p2p/eiskaltdcpp-gtk/files/patch-eiskaltdcpp-gtk__CMakeLists.txt deleted file mode 100644 index c6732f696a64..000000000000 --- a/net-p2p/eiskaltdcpp-gtk/files/patch-eiskaltdcpp-gtk__CMakeLists.txt +++ /dev/null @@ -1,52 +0,0 @@ ---- ./eiskaltdcpp-gtk/CMakeLists.txt.orig 2011-10-02 18:12:43.000000000 +0300 -+++ ./eiskaltdcpp-gtk/CMakeLists.txt 2011-10-10 11:10:30.000000000 +0300 -@@ -12,7 +12,7 @@ - set (GTK_SRCS @gtk_srcs@ PARENT_SCOPE) - set (GTK_HDRS @gtk_hdrs@ PARENT_SCOPE) - set (GTK_UI @gtk_ui@ PARENT_SCOPE) --set (GTHREAD "-lgthread-2.0") -+find_library (GTHREAD "gthread-2.0") - - if (USE_GTK) - set(GTK_INCLUDE_DIRS ${GTK2_INCLUDE_DIRS}) -@@ -44,6 +44,10 @@ - list (APPEND LIBS ${LUA_LIBRARIES}) - endif (LUA_SCRIPT) - -+if (USE_MINIUPNP OR FREE_SPACE_BAR_C) -+ list(APPEND LIBS extra) -+endif (USE_MINIUPNP OR FREE_SPACE_BAR_C) -+ - add_executable (eiskaltdcpp-gtk MACOSX_BUNDLE WIN32 - ${gtk_srcs} - ) -@@ -90,10 +94,19 @@ - add_definitions(-DCLIENT_RES_DIR="${CLIENT_DATA_DIR}/gtk/resources") - endif (APPLE) - -+if (BUILD_LIB) -+ set(DCPP_LIB dcpp) -+else (BUILD_LIB) -+ find_library(DCPP_LIB eiskaltdcpp) -+ if (DCPP_LIB) -+ message(STATUS "EiskaltDC++ shared library found at ${DCPP_LIB}") -+ endif (DCPP_LIB) -+endif (BUILD_LIB) -+ - if (APPLE) -- target_link_libraries (eiskaltdcpp-gtk ${LIBS} dcpp iconv intl) -+ target_link_libraries (eiskaltdcpp-gtk ${LIBS} ${DCPP_LIB} iconv intl) - else (APPLE) -- target_link_libraries (eiskaltdcpp-gtk ${LIBS} dcpp) -+ target_link_libraries (eiskaltdcpp-gtk ${LIBS} ${DCPP_LIB}) - endif (APPLE) - - if (UNIX) -@@ -131,6 +144,6 @@ - else (APPLE) - if (UNIX) - install (FILES eiskaltdcpp-gtk.desktop DESTINATION ${SHARE_DIR}/applications) -- install (FILES ${PROJECT_BINARY_DIR}/eiskaltdcpp-gtk.1.gz DESTINATION ${SHARE_DIR}/man/man1) -+ install (FILES ${PROJECT_BINARY_DIR}/eiskaltdcpp-gtk.1.gz DESTINATION man/man1) - endif (UNIX) - endif (APPLE) diff --git a/net-p2p/eiskaltdcpp-gtk/pkg-descr b/net-p2p/eiskaltdcpp-gtk/pkg-descr deleted file mode 100644 index b96cc9ac83f1..000000000000 --- a/net-p2p/eiskaltdcpp-gtk/pkg-descr +++ /dev/null @@ -1,8 +0,0 @@ -EiskaltDC++ is a cross-platform program that uses the Direct Connect -and ADC protocol. It is compatible with other DC clients, such as the -original DC from Neomodus, DC++ and derivatives. EiskaltDC++ also -interoperates with all common DC hub software. - -This port is GTK GUI that uses eiskaltdcpp-lib. - -WWW: http://code.google.com/p/eiskaltdc/ diff --git a/net-p2p/eiskaltdcpp-gtk/pkg-plist b/net-p2p/eiskaltdcpp-gtk/pkg-plist index 51c85646bf1a..af59bd686baa 100644 --- a/net-p2p/eiskaltdcpp-gtk/pkg-plist +++ b/net-p2p/eiskaltdcpp-gtk/pkg-plist @@ -1,4 +1,5 @@ bin/eiskaltdcpp-gtk +man/man1/eiskaltdcpp-gtk.1.gz share/applications/eiskaltdcpp-gtk.desktop share/eiskaltdcpp/gtk/icons/hicolor/128x128/apps/eiskaltdcpp.png share/eiskaltdcpp/gtk/icons/hicolor/16x16/status/eiskaltdcpp-dc++-fw-op.png @@ -103,18 +104,22 @@ share/eiskaltdcpp/gtk/ui/searchspy.ui share/eiskaltdcpp/gtk/ui/settingsdialog.ui share/eiskaltdcpp/gtk/ui/sharebrowser.ui share/eiskaltdcpp/gtk/ui/transfers.ui +share/eiskaltdcpp/gtk/ui/uploadqueue.ui share/locale/be/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/bg/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/cs/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/de/LC_MESSAGES/eiskaltdcpp-gtk.mo +share/locale/el/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/en/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/es/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/fr/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/hu/LC_MESSAGES/eiskaltdcpp-gtk.mo +share/locale/it/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/pl/LC_MESSAGES/eiskaltdcpp-gtk.mo +share/locale/pt_BR/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/ru/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/sk/LC_MESSAGES/eiskaltdcpp-gtk.mo -share/locale/sr/LC_MESSAGES/eiskaltdcpp-gtk.mo +share/locale/sr@latin/LC_MESSAGES/eiskaltdcpp-gtk.mo share/locale/uk/LC_MESSAGES/eiskaltdcpp-gtk.mo @dirrm share/eiskaltdcpp/gtk/icons/hicolor/16x16/status @dirrm share/eiskaltdcpp/gtk/icons/hicolor/16x16 |