summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmime-1-fixes.patch180
-rw-r--r--src/vmime.mk4
2 files changed, 5 insertions, 179 deletions
diff --git a/src/vmime-1-fixes.patch b/src/vmime-1-fixes.patch
index 9b50437..afe2b38 100644
--- a/src/vmime-1-fixes.patch
+++ b/src/vmime-1-fixes.patch
@@ -1,186 +1,10 @@
This file is part of MXE.
See index.html for further information.
-From 06914feca1f233a44eb48da584d46c8ffcb99428 Mon Sep 17 00:00:00 2001
-From: Mark Brand <mabrand@mabrand.nl>
-Date: Mon, 12 Nov 2012 12:28:25 +0100
-Subject: [PATCH 1/2] disable shared libs (MXE-specific)
-
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 1bd7011..cb0809f 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -88,21 +88,6 @@ IF(UNIX AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_v
- ENDIF()
- ENDIF()
-
--# Shared library
--ADD_LIBRARY(
-- ${VMIME_LIBRARY_NAME}
-- SHARED
-- ${VMIME_LIBRARY_SRC_FILES}
-- ${VMIME_LIBRARY_INCLUDE_FILES}
--)
--
--SET_TARGET_PROPERTIES(
-- ${VMIME_LIBRARY_NAME}
-- PROPERTIES
-- VERSION "${VMIME_VERSION}"
-- SOVERSION "${VMIME_API_VERSION}"
--)
--
- # Static library
- #
- # Note: cannot have two targets with the same name so the static version has
-@@ -122,19 +107,12 @@ SET_TARGET_PROPERTIES(
-
- # These next two lines are required but it is unclear exactly what they do.
- # The CMake FAQ mentions they are necessary and it does not work otherwise.
--SET_TARGET_PROPERTIES(${VMIME_LIBRARY_NAME} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
- SET_TARGET_PROPERTIES(${VMIME_LIBRARY_NAME}-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
-
- SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries")
-
- # Installation of libraries
- INSTALL(
-- TARGETS ${VMIME_LIBRARY_NAME}
-- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT sharedlibs
-- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT sharedlibs
--)
--
--INSTALL(
- TARGETS ${VMIME_LIBRARY_NAME}-static
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT staticlibs
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT staticlibs
-@@ -222,11 +200,7 @@ SET(CPACK_SOURCE_IGNORE_FILES "\\\\.git;~$;build/")
- SET(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
-
- # Set components
--SET(CPACK_COMPONENTS_ALL sharedlibs staticlibs headers)
--
--SET(CPACK_COMPONENT_SHAREDLIBS_DISPLAY_NAME "Shared libraries")
--SET(CPACK_COMPONENT_SHAREDLIBS_DESCRIPTION
-- "Shared library for general use.")
-+SET(CPACK_COMPONENTS_ALL staticlibs headers)
-
- SET(CPACK_COMPONENT_STATICLIBS_DISPLAY_NAME "Static libraries")
- SET(CPACK_COMPONENT_STATICLIBS_DESCRIPTION
-@@ -236,7 +210,6 @@ SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ Headers")
- SET(CPACK_COMPONENT_HEADERS_DESCRIPTION
- "C/C++ header files.")
-
--SET(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development")
- SET(CPACK_COMPONENT_STATICLIBS_GROUP "Development")
- SET(CPACK_COMPONENT_HEADERS_GROUP "Development")
- SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION "")
-@@ -440,12 +413,6 @@ IF(VMIME_HAVE_SASL_SUPPORT)
- ${GSASL_INCLUDE_DIR}
- )
-
-- TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- ${GSASL_LIBRARIES}
-- )
--
- SET(VMIME_PKGCONFIG_LIBS "${VMIME_PKGCONFIG_LIBS} ${GSASL_LIBRARIES}")
- SET(VMIME_PKGCONFIG_CFLAGS "${VMIME_PKGCONFIG_CFLAGS} ${GSASL_INCLUDE_DIR}")
- SET(VMIME_PKGCONFIG_REQUIRES "${VMIME_PKGCONFIG_REQUIRES} libgsasl")
-@@ -495,12 +462,6 @@ IF(VMIME_HAVE_TLS_SUPPORT)
- ${GNUTLS_LIBRARY_DIRS}
- )
-
-- TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- ${GNUTLS_LIBRARY}
-- )
--
- SET(VMIME_PKGCONFIG_LIBS "${VMIME_PKGCONFIG_LIBS} ${GNUTLS_LIBRARY_DIRS} ${GNUTLS_LIBRARY}")
- SET(VMIME_PKGCONFIG_CFLAGS "${VMIME_PKGCONFIG_CFLAGS} ${GNUTLS_INCLUDE_DIR}")
- SET(VMIME_PKGCONFIG_REQUIRES "${VMIME_PKGCONFIG_REQUIRES} libgnutls")
-@@ -512,12 +473,6 @@ IF(VMIME_HAVE_TLS_SUPPORT)
- ${OPENSSL_INCLUDE_DIR}
- )
-
-- TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- ${OPENSSL_LIBRARIES}
-- )
--
- SET(VMIME_PKGCONFIG_LIBS "${VMIME_PKGCONFIG_LIBS} ${OPENSSL_LIBRARIES}")
- SET(VMIME_PKGCONFIG_CFLAGS "${VMIME_PKGCONFIG_CFLAGS} ${OPENSSL_INCLUDE_DIR}")
- SET(VMIME_PKGCONFIG_REQUIRES "${VMIME_PKGCONFIG_REQUIRES} libopenssl")
-@@ -541,12 +496,6 @@ INCLUDE_DIRECTORIES(
- ${ICONV_INCLUDE_DIR}
- )
-
--TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- ${ICONV_LIBRARIES}
--)
--
-
- ##############################################################################
- # Platform
-@@ -580,11 +529,6 @@ IF(WIN32)
- CHECK_LIBRARY_EXISTS("ws2_32" getch "${CMAKE_LIBRARY_PATH}" VMIME_HAVE_LIBWS2_32)
-
- IF(VMIME_HAVE_LIBWS2_32)
-- TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- "ws2_32"
-- )
- ENDIF()
-
- # MLang
-@@ -594,12 +538,6 @@ IF(WIN32)
- IF(VMIME_HAVE_MLANG_H)
- IF(VMIME_HAVE_MLANG_LIB)
- SET(VMIME_HAVE_MLANG ON)
--
-- TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- "mlang"
-- )
- ENDIF()
- ENDIF()
-
-@@ -618,21 +556,10 @@ CHECK_SYMBOL_EXISTS(SYS_gettid sys/syscall.h VMIME_HAVE_SYSCALL_GETTID)
-
- FIND_PACKAGE(Threads)
-
--TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- ${CMAKE_THREAD_LIBS_INIT}
--)
--
- FIND_LIBRARY(PTHREAD_LIB pthread)
-
- IF(PTHREAD_LIB)
- SET(VMIME_HAVE_PTHREAD 1)
-- TARGET_LINK_LIBRARIES(
-- ${VMIME_LIBRARY_NAME}
-- ${TARGET_LINK_LIBRARIES}
-- ${PTHREAD_LIB}
-- )
- ELSE(PTHREAD_LIB)
- SET(VMIME_HAVE_PTHREAD 0)
- ENDIF(PTHREAD_LIB)
---
-1.7.10.4
-
-
-From 7d3e7b1a224a44ed0a687d1089f20d72df75323f Mon Sep 17 00:00:00 2001
+From 4273540b3b893d0c9a8b7d21ebb9147acc7d1477 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Mon, 12 Nov 2012 13:58:12 +0100
-Subject: [PATCH 2/2] add private dependencies to .pc file (MXE-specific)
+Subject: [PATCH] add private dependencies to .pc file (MXE-specific)
diff --git a/libvmime.pc.in b/libvmime.pc.in
diff --git a/src/vmime.mk b/src/vmime.mk
index 2f43275..fbcfe25 100644
--- a/src/vmime.mk
+++ b/src/vmime.mk
@@ -3,7 +3,7 @@
PKG := vmime
$(PKG)_IGNORE :=
-$(PKG)_CHECKSUM := b63908a12d10b4532a0b13fb32ded0f7f75d4cd8
+$(PKG)_CHECKSUM := 8cea33126bd0d1bb3f365d76706d858d4fffaf1c
$(PKG)_SUBDIR := kisli-vmime-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/kisli/vmime/tarball/$($(PKG)_VERSION)/$(PKG)_FILE
@@ -22,6 +22,8 @@ define $(PKG)_BUILD
-DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \
-DVMIME_HAVE_MESSAGING_PROTO_SENDMAIL=False \
-DCMAKE_CXX_FLAGS='-DWINVER=0x0501 -DAI_ADDRCONFIG=0x0400 -DIPV6_V6ONLY=27' \
+ -DVMIME_BUILD_STATIC_LIBRARY=ON \
+ -DVMIME_BUILD_SHARED_LIBRARY=OFF \
.
# Disable VMIME_HAVE_MLANG_H