add qt
This commit is contained in:
		
							parent
							
								
									b6f279d346
								
							
						
					
					
						commit
						19ac0a9042
					
				
					 4 changed files with 169 additions and 0 deletions
				
			
		
							
								
								
									
										37
									
								
								pkgs/qtbase/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								pkgs/qtbase/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | ||||||
|  | pkgname=qtbase | ||||||
|  | pkgver=5.12 | ||||||
|  | 
 | ||||||
|  | fetch() { | ||||||
|  | 	curl "https://invent.kde.org/qt/qt/qtbase/-/archive/$pkgver/qtbase-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz | ||||||
|  | 	tar -xf $pkgname-$pkgver.tar.xz | ||||||
|  | 	mkdir $pkgname-$pkgver/build | ||||||
|  | 	mkdir $pkgname-$pkgver/.git | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | build() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	cd build | ||||||
|  | 
 | ||||||
|  | 	../configure \ | ||||||
|  | 		-opensource \ | ||||||
|  | 		-confirm-license \ | ||||||
|  | 		-nomake examples \ | ||||||
|  | 		-nomake tests \ | ||||||
|  | 		-platform linux-clang-libc++ \ | ||||||
|  | 		-no-openssl \ | ||||||
|  | 		-prefix /usr | ||||||
|  | 
 | ||||||
|  | 	gmake | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | package() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	cd build | ||||||
|  | 	gmake INSTALL_ROOT=$pkgdir install | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | license() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	cat LICENSE* | ||||||
|  | #	cat COPYING | ||||||
|  | } | ||||||
							
								
								
									
										11
									
								
								pkgs/qtbase/musl-socket.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								pkgs/qtbase/musl-socket.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | --- a/mkspecs/linux-clang/qplatformdefs.h
 | ||||||
|  | +++ b/mkspecs/linux-clang/qplatformdefs.h
 | ||||||
|  | @@ -81,7 +81,7 @@
 | ||||||
|  |   | ||||||
|  |  #undef QT_SOCKLEN_T | ||||||
|  |   | ||||||
|  | -#if defined(__GLIBC__) && (__GLIBC__ >= 2)
 | ||||||
|  | +#if defined(__GLIBC__) && (__GLIBC__ >= 2) || !defined(__GLIBC__)
 | ||||||
|  |  #define QT_SOCKLEN_T            socklen_t | ||||||
|  |  #else | ||||||
|  |  #define QT_SOCKLEN_T            int | ||||||
							
								
								
									
										95
									
								
								pkgs/qtbase/qplatformdefs.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										95
									
								
								pkgs/qtbase/qplatformdefs.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,95 @@ | ||||||
|  | /****************************************************************************
 | ||||||
|  | ** | ||||||
|  | ** Copyright (C) 2016 The Qt Company Ltd. | ||||||
|  | ** Contact: https://www.qt.io/licensing/
 | ||||||
|  | ** | ||||||
|  | ** This file is part of the qmake spec of the Qt Toolkit. | ||||||
|  | ** | ||||||
|  | ** $QT_BEGIN_LICENSE:LGPL$ | ||||||
|  | ** Commercial License Usage | ||||||
|  | ** Licensees holding valid commercial Qt licenses may use this file in | ||||||
|  | ** accordance with the commercial license agreement provided with the | ||||||
|  | ** Software or, alternatively, in accordance with the terms contained in | ||||||
|  | ** a written agreement between you and The Qt Company. For licensing terms | ||||||
|  | ** and conditions see https://www.qt.io/terms-conditions. For further
 | ||||||
|  | ** information use the contact form at https://www.qt.io/contact-us.
 | ||||||
|  | ** | ||||||
|  | ** GNU Lesser General Public License Usage | ||||||
|  | ** Alternatively, this file may be used under the terms of the GNU Lesser | ||||||
|  | ** General Public License version 3 as published by the Free Software | ||||||
|  | ** Foundation and appearing in the file LICENSE.LGPL3 included in the | ||||||
|  | ** packaging of this file. Please review the following information to | ||||||
|  | ** ensure the GNU Lesser General Public License version 3 requirements | ||||||
|  | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
 | ||||||
|  | ** | ||||||
|  | ** GNU General Public License Usage | ||||||
|  | ** Alternatively, this file may be used under the terms of the GNU | ||||||
|  | ** General Public License version 2.0 or (at your option) the GNU General | ||||||
|  | ** Public license version 3 or any later version approved by the KDE Free | ||||||
|  | ** Qt Foundation. The licenses are as published by the Free Software | ||||||
|  | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 | ||||||
|  | ** included in the packaging of this file. Please review the following | ||||||
|  | ** information to ensure the GNU General Public License requirements will | ||||||
|  | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
 | ||||||
|  | ** https://www.gnu.org/licenses/gpl-3.0.html.
 | ||||||
|  | ** | ||||||
|  | ** $QT_END_LICENSE$ | ||||||
|  | ** | ||||||
|  | ****************************************************************************/ | ||||||
|  | 
 | ||||||
|  | #ifndef QPLATFORMDEFS_H | ||||||
|  | #define QPLATFORMDEFS_H | ||||||
|  | 
 | ||||||
|  | // Get Qt defines/settings
 | ||||||
|  | 
 | ||||||
|  | #include "qglobal.h" | ||||||
|  | 
 | ||||||
|  | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
 | ||||||
|  | 
 | ||||||
|  | // 1) need to reset default environment if _BSD_SOURCE is defined
 | ||||||
|  | // 2) need to specify POSIX thread interfaces explicitly in glibc 2.0
 | ||||||
|  | // 3) it seems older glibc need this to include the X/Open stuff
 | ||||||
|  | #ifndef _GNU_SOURCE | ||||||
|  | #  define _GNU_SOURCE | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|  | #include <unistd.h> | ||||||
|  | 
 | ||||||
|  | // We are hot - unistd.h should have turned on the specific APIs we requested
 | ||||||
|  | 
 | ||||||
|  | #include <features.h> | ||||||
|  | #include <pthread.h> | ||||||
|  | #include <dirent.h> | ||||||
|  | #include <fcntl.h> | ||||||
|  | #include <grp.h> | ||||||
|  | #include <pwd.h> | ||||||
|  | #include <signal.h> | ||||||
|  | #include <dlfcn.h> | ||||||
|  | 
 | ||||||
|  | #include <sys/types.h> | ||||||
|  | #include <sys/ioctl.h> | ||||||
|  | #include <sys/ipc.h> | ||||||
|  | #include <sys/time.h> | ||||||
|  | #include <sys/shm.h> | ||||||
|  | #include <sys/socket.h> | ||||||
|  | #include <sys/stat.h> | ||||||
|  | #include <sys/wait.h> | ||||||
|  | #include <netinet/in.h> | ||||||
|  | 
 | ||||||
|  | #define QT_USE_XOPEN_LFS_EXTENSIONS | ||||||
|  | #include "../common/posix/qplatformdefs.h" | ||||||
|  | 
 | ||||||
|  | #undef QT_SOCKLEN_T | ||||||
|  | 
 | ||||||
|  | #if defined(__GLIBC__) && (__GLIBC__ >= 2) || !defined(__GLIBC__) | ||||||
|  | #define QT_SOCKLEN_T            socklen_t | ||||||
|  | #else | ||||||
|  | #define QT_SOCKLEN_T            int | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|  | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) | ||||||
|  | #define QT_SNPRINTF             ::snprintf | ||||||
|  | #define QT_VSNPRINTF            ::vsnprintf | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|  | #endif // QPLATFORMDEFS_H
 | ||||||
							
								
								
									
										26
									
								
								pkgs/qtwayland/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								pkgs/qtwayland/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | ||||||
|  | pkgname=qtwayland | ||||||
|  | pkgver=5.12 | ||||||
|  | 
 | ||||||
|  | fetch() { | ||||||
|  | 	curl "https://invent.kde.org/qt/qt/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz | ||||||
|  | 	tar -xf $pkgname-$pkgver.tar.xz | ||||||
|  | 	mkdir $pkgname-$pkgver/.git | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | build() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 
 | ||||||
|  | 	qmake | ||||||
|  | 	gmake | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | package() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	gmake INSTALL_ROOT=$pkgdir install | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | license() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	cat LICENSE | ||||||
|  | #	cat COPYING | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue