This is a quick-and-dirty LD_PRELOAD hack that allows *some* Gtk
applications to use KDE's file dialogs when run under KDE. The Gtk file chooser functions have been overridden to communicate with this KDE module/application. WWW: http://home.freeuk.net/cpdrummomd/ PR: ports/117792 Submitted by: Rashid N. "Citycat" Achilov <citycat4@ngs.ru>
This commit is contained in:
@@ -330,6 +330,7 @@
|
||||
SUBDIR += kdeadmin3
|
||||
SUBDIR += kdirstat
|
||||
SUBDIR += keep
|
||||
SUBDIR += kgtk
|
||||
SUBDIR += kkbswitch
|
||||
SUBDIR += kkeyled
|
||||
SUBDIR += klaptopdaemon
|
||||
|
||||
52
sysutils/kgtk/Makefile
Normal file
52
sysutils/kgtk/Makefile
Normal file
@@ -0,0 +1,52 @@
|
||||
# Ports collection makefile for: kgtk
|
||||
# Date created: Sep 13, 2007
|
||||
# Whom: Rashid N. "Citycat" Achilov <citycat4@ngs.ru>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= kgtk
|
||||
PORTVERSION= 0.9.4
|
||||
CATEGORIES= sysutils kde
|
||||
MASTER_SITES= http://home.freeuk.com/cpdrummond/
|
||||
DISTNAME= KGtk-${PORTVERSION}
|
||||
|
||||
MAINTAINER= citycat4@ngs.ru
|
||||
COMMENT= Daemon to use KDE dialogs in GTK applications
|
||||
|
||||
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_GNOME= gtk20
|
||||
USE_KDEBASE_VER=3
|
||||
|
||||
CMAKE_PREFIX= ${LOCALBASE}
|
||||
CMAKE_BUILD_DIR=build3
|
||||
BUILD_WRKSRC= ${WRKSRC}/${CMAKE_BUILD_DIR}
|
||||
INSTALL_WRKSRC= ${WRKSRC}/${CMAKE_BUILD_DIR}
|
||||
|
||||
.if defined(WITHOUT_NLS)
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.else
|
||||
USE_GETTEXT= yes
|
||||
PLIST_SUB+= NLS=""
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's| -ldl||' ${WRKSRC}/gtk2/CMakeLists.txt ${WRKSRC}/qt3/CMakeLists.txt ${WRKSRC}/qt4/CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' ${WRKSRC}/mangled.sh
|
||||
|
||||
pre-configure:
|
||||
@${MKDIR} ${WRKSRC}/${CMAKE_BUILD_DIR}
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC}/${CMAKE_BUILD_DIR} && \
|
||||
${CMAKE_PREFIX}/bin/cmake .. \
|
||||
-DCMAKE_INSTALL_DIR=${PREFIX} \
|
||||
-DQT_INCLUDE_DIR=${QT_PREFIX}/include \
|
||||
-DCMAKE_CXX_FLAGS=-I${X11BASE}/include \
|
||||
-DCMAKE_EXE_LINKER_FLAGS=${PTHREAD_LIBS} \
|
||||
-DCMAKE_INSTALL_PREFIX=${PREFIX}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
sysutils/kgtk/distinfo
Normal file
3
sysutils/kgtk/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
MD5 (KGtk-0.9.4.tar.bz2) = a6fde9e4520e1f347ff6a48cda95337a
|
||||
SHA256 (KGtk-0.9.4.tar.bz2) = 2de639a711aad962aac6eb55b6e974c34fa9c68971a825c0c2c6b1d020bc777f
|
||||
SIZE (KGtk-0.9.4.tar.bz2) = 42300
|
||||
7
sysutils/kgtk/pkg-descr
Normal file
7
sysutils/kgtk/pkg-descr
Normal file
@@ -0,0 +1,7 @@
|
||||
This is a quick-and-dirty LD_PRELOAD hack that allows *some* Gtk
|
||||
applications to use KDE's file dialogs when run under KDE.
|
||||
|
||||
The Gtk file chooser functions have been overridden to communicate
|
||||
with this KDE module/application.
|
||||
|
||||
WWW: http://home.freeuk.net/cpdrummomd/
|
||||
14
sysutils/kgtk/pkg-plist
Normal file
14
sysutils/kgtk/pkg-plist
Normal file
@@ -0,0 +1,14 @@
|
||||
bin/kdialogd3
|
||||
bin/kdialogd-wrapper
|
||||
bin/kgtk2-wrapper
|
||||
bin/kgtk-wrapper
|
||||
bin/kqt3-wrapper
|
||||
lib/kgtk/libkgtk2.so
|
||||
lib/kgtk/libkqt3.so
|
||||
%%NLS%%share/locale/cs/LC_MESSAGES/kdialogd3.mo
|
||||
%%NLS%%share/locale/de/LC_MESSAGES/kdialogd3.mo
|
||||
%%NLS%%share/locale/es/LC_MESSAGES/kdialogd3.mo
|
||||
%%NLS%%share/locale/fr/LC_MESSAGES/kdialogd3.mo
|
||||
%%NLS%%share/locale/en_GB/LC_MESSAGES/kdialogd3.mo
|
||||
%%NLS%%share/locale/zh_CN/LC_MESSAGES/kdialogd3.mo
|
||||
@dirrm lib/kgtk
|
||||
Reference in New Issue
Block a user