Hi,
to whom it may concern :)
While fiddling with qcad which should compile with 4.8.7 and also with 5.4.1,
5.4.2 and 5.5.0, I figured that it links to libquazip.so, which is in
archivers/quazip. As quazip is linked to qt4 and installed to /usr/local/lib,
porting qcad to qt5 won't work as the qcad build-in 3rdparty version doesn't
get installed but the quazip port version is used (resulting in a crash on
start).
To circumvent those problems, I made a patch against quazip to install it to
/usr/local/lib/qt4 and includes to /usr/local/include/qt5 for a new port
quazip-qt5 and fixed the old port to use qt4 and install to /usr/local/lib/qt4.
Maybe a USE_LDCONFIG is still needed in the Makefiles but I guess things should
work without as qt4 and qt5 are already installed for compilation and added
already to ld.
A test would be to rebuild marble or other dependent ports with both versions
installed to see if the build still works for the qt4 version and ldd picks up
the right one on starting the apps.
--
Kind regards,
Ralf Nolden
Index: quazip/files/patch-quazip__quazip.pro
===================================================================
--- quazip/files/patch-quazip__quazip.pro (Revision 0)
+++ quazip/files/patch-quazip__quazip.pro (Arbeitskopie)
@@ -0,0 +1,20 @@
+--- quazip/quazip.pro.orig 2015-09-07 12:49:08.321827000 +0200
++++ quazip/quazip.pro 2015-09-07 13:04:28.517680000 +0200
+@@ -2,6 +2,8 @@
+ CONFIG += qt warn_on
+ QT -= gui
+
++LIB_ARCH=qt4
++
+ # The ABI version.
+
+ !win32:VERSION = 1.0.0
+@@ -34,7 +36,7 @@
+ include(quazip.pri)
+
+ unix:!symbian {
+- headers.path=$$PREFIX/include/quazip
++ headers.path=$$PREFIX/include/$${LIB_ARCH}/quazip
+ headers.files=$$HEADERS
+ target.path=$$PREFIX/lib/$${LIB_ARCH}
+ INSTALLS += headers target
Eigenschaftsänderungen: quazip/files/patch-quazip__quazip.pro
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: quazip/pkg-plist
===================================================================
--- quazip/pkg-plist (Revision 396202)
+++ quazip/pkg-plist (Arbeitskopie)
@@ -1,20 +1,20 @@
-include/quazip/JlCompress.h
-include/quazip/crypt.h
-include/quazip/ioapi.h
-include/quazip/quaadler32.h
-include/quazip/quachecksum32.h
-include/quazip/quacrc32.h
-include/quazip/quagzipfile.h
-include/quazip/quaziodevice.h
-include/quazip/quazip.h
-include/quazip/quazip_global.h
-include/quazip/quazipdir.h
-include/quazip/quazipfile.h
-include/quazip/quazipfileinfo.h
-include/quazip/quazipnewinfo.h
-include/quazip/unzip.h
-include/quazip/zip.h
-lib/libquazip.so
-lib/libquazip.so.1
-lib/libquazip.so.1.0
-lib/libquazip.so.1.0.0
+%%QT_INCDIR%%/quazip/JlCompress.h
+%%QT_INCDIR%%/quazip/crypt.h
+%%QT_INCDIR%%/quazip/ioapi.h
+%%QT_INCDIR%%/quazip/quaadler32.h
+%%QT_INCDIR%%/quazip/quachecksum32.h
+%%QT_INCDIR%%/quazip/quacrc32.h
+%%QT_INCDIR%%/quazip/quagzipfile.h
+%%QT_INCDIR%%/quazip/quaziodevice.h
+%%QT_INCDIR%%/quazip/quazip.h
+%%QT_INCDIR%%/quazip/quazip_global.h
+%%QT_INCDIR%%/quazip/quazipdir.h
+%%QT_INCDIR%%/quazip/quazipfile.h
+%%QT_INCDIR%%/quazip/quazipfileinfo.h
+%%QT_INCDIR%%/quazip/quazipnewinfo.h
+%%QT_INCDIR%%/quazip/unzip.h
+%%QT_INCDIR%%/quazip/zip.h
+%%QT_LIBDIR%%/libquazip.so
+%%QT_LIBDIR%%/libquazip.so.1
+%%QT_LIBDIR%%/libquazip.so.1.0
+%%QT_LIBDIR%%/libquazip.so.1.0.0
Index: quazip-qt5/Makefile
===================================================================
--- quazip-qt5/Makefile (Revision 0)
+++ quazip-qt5/Makefile (Arbeitskopie)
@@ -0,0 +1,19 @@
+# Created by: Nicola Vitale <[email protected]>
+# $FreeBSD$
+
+PORTNAME= quazip
+PORTVERSION= 0.7.1
+CATEGORIES= archivers
+MASTER_SITES= SF
+PKGNAMEPREFIX= qt5-
+
+MAINTAINER= [email protected]
+COMMENT= Qt/C++ wrapper for ZIP/UNZIP package
+
+LICENSE= LGPL21
+
+USES= qmake
+#USE_LDCONFIG= yes
+USE_QT5= core buildtools_build network_build testlib_build
+
+.include <bsd.port.mk>
Eigenschaftsänderungen: quazip-qt5/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+FreeBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: quazip-qt5/distinfo
===================================================================
--- quazip-qt5/distinfo (Revision 0)
+++ quazip-qt5/distinfo (Arbeitskopie)
@@ -0,0 +1,2 @@
+SHA256 (quazip-0.7.1.tar.gz) = 78c984103555c51e6f7ef52e3a2128e2beb9896871b2cc4d4dbd4d64bff132de
+SIZE (quazip-0.7.1.tar.gz) = 390629
Eigenschaftsänderungen: quazip-qt5/distinfo
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: quazip-qt5/files/patch-quazip__quazip.pro
===================================================================
--- quazip-qt5/files/patch-quazip__quazip.pro (Revision 0)
+++ quazip-qt5/files/patch-quazip__quazip.pro (Arbeitskopie)
@@ -0,0 +1,20 @@
+--- quazip/quazip.pro.orig 2015-09-07 12:49:08.321827000 +0200
++++ quazip/quazip.pro 2015-09-07 13:04:28.517680000 +0200
+@@ -2,6 +2,8 @@
+ CONFIG += qt warn_on
+ QT -= gui
+
++LIB_ARCH=qt5
++
+ # The ABI version.
+
+ !win32:VERSION = 1.0.0
+@@ -34,7 +36,7 @@
+ include(quazip.pri)
+
+ unix:!symbian {
+- headers.path=$$PREFIX/include/quazip
++ headers.path=$$PREFIX/include/$${LIB_ARCH}/quazip
+ headers.files=$$HEADERS
+ target.path=$$PREFIX/lib/$${LIB_ARCH}
+ INSTALLS += headers target
Eigenschaftsänderungen: quazip-qt5/files/patch-quazip__quazip.pro
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: quazip-qt5/pkg-descr
===================================================================
--- quazip-qt5/pkg-descr (Revision 0)
+++ quazip-qt5/pkg-descr (Arbeitskopie)
@@ -0,0 +1,6 @@
+QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package that
+can be used to access ZIP archives. It uses Trolltech's Qt toolkit.
+
+This Version is compiled with Qt Version 5.
+
+WWW: http://quazip.sourceforge.net/
Eigenschaftsänderungen: quazip-qt5/pkg-descr
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Index: quazip-qt5/pkg-plist
===================================================================
--- quazip-qt5/pkg-plist (Revision 0)
+++ quazip-qt5/pkg-plist (Arbeitskopie)
@@ -0,0 +1,20 @@
+%%QT_INCDIR%%/quazip/JlCompress.h
+%%QT_INCDIR%%/quazip/crypt.h
+%%QT_INCDIR%%/quazip/ioapi.h
+%%QT_INCDIR%%/quazip/quaadler32.h
+%%QT_INCDIR%%/quazip/quachecksum32.h
+%%QT_INCDIR%%/quazip/quacrc32.h
+%%QT_INCDIR%%/quazip/quagzipfile.h
+%%QT_INCDIR%%/quazip/quaziodevice.h
+%%QT_INCDIR%%/quazip/quazip.h
+%%QT_INCDIR%%/quazip/quazip_global.h
+%%QT_INCDIR%%/quazip/quazipdir.h
+%%QT_INCDIR%%/quazip/quazipfile.h
+%%QT_INCDIR%%/quazip/quazipfileinfo.h
+%%QT_INCDIR%%/quazip/quazipnewinfo.h
+%%QT_INCDIR%%/quazip/unzip.h
+%%QT_INCDIR%%/quazip/zip.h
+%%QT_LIBDIR%%/libquazip.so
+%%QT_LIBDIR%%/libquazip.so.1
+%%QT_LIBDIR%%/libquazip.so.1.0
+%%QT_LIBDIR%%/libquazip.so.1.0.0
Eigenschaftsänderungen: quazip-qt5/pkg-plist
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
_______________________________________________
kde-freebsd mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information