aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfluffy <fluffy@FreeBSD.org>2009-09-19 19:24:51 +0800
committerfluffy <fluffy@FreeBSD.org>2009-09-19 19:24:51 +0800
commit86caae553d4e6578e6e5dd7209326397e944ea36 (patch)
tree21e6c7c2284a61f2c5802dd1cdcd3c68b98f2431
parent9687d2b20b7ab502130c2de98e829faaa634b7d2 (diff)
downloadfreebsd-ports-gnome-86caae553d4e6578e6e5dd7209326397e944ea36.tar.gz
freebsd-ports-gnome-86caae553d4e6578e6e5dd7209326397e944ea36.tar.zst
freebsd-ports-gnome-86caae553d4e6578e6e5dd7209326397e944ea36.zip
- Update to 0.4.0 release
- Adopt This required for upcoming KOffice-2.1 for KDE4 Approved by: miwi (mentor) Feature safe: yes
-rw-r--r--textproc/wv2/Makefile15
-rw-r--r--textproc/wv2/distinfo6
-rw-r--r--textproc/wv2/files/patch-CMakeLists.txt55
-rw-r--r--textproc/wv2/files/patch-cmake-MacroCreateLibtoolFile.cmake35
-rw-r--r--textproc/wv2/files/patch-cmake_FindIconv.cmake14
-rw-r--r--textproc/wv2/pkg-plist8
6 files changed, 117 insertions, 16 deletions
diff --git a/textproc/wv2/Makefile b/textproc/wv2/Makefile
index 36a838a51a43..b6e51d861f56 100644
--- a/textproc/wv2/Makefile
+++ b/textproc/wv2/Makefile
@@ -6,25 +6,18 @@
#
PORTNAME= wv2
-PORTVERSION= 0.3.1
-PORTREVISION= 1
+PORTVERSION= 0.4.0
CATEGORIES= textproc
-MASTER_SITES= SF/wvware/${PORTNAME}/${PORTVERSION}
+MASTER_SITES= SF/wvware/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= fluffy@FreeBSD.org
COMMENT= A library providing routines to access Microsoft Word files
-CONFIGURE_ARGS= --with-libiconv=${LOCALBASE} --disable-debug
-
-USE_AUTOTOOLS= libtool:22
USE_GNOME= gnometarget libgsf
USE_ICONV= yes
-GNU_CONFIGURE= yes
USE_BZIP2= yes
+USE_CMAKE= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
-pre-configure:
- @${REINPLACE_CMD} "s,-pedantic ,," ${WRKSRC}/configure
-
.include <bsd.port.mk>
diff --git a/textproc/wv2/distinfo b/textproc/wv2/distinfo
index a3c25a30b6a3..d124c3a5433c 100644
--- a/textproc/wv2/distinfo
+++ b/textproc/wv2/distinfo
@@ -1,3 +1,3 @@
-MD5 (wv2-0.3.1.tar.bz2) = 4a20200141cb1299055f2bf13b56989d
-SHA256 (wv2-0.3.1.tar.bz2) = 896ff8ec59e280e8cb1ef9a953b364845dd65de1cdf8e4ed8a7e045a3f81c546
-SIZE (wv2-0.3.1.tar.bz2) = 1094203
+MD5 (wv2-0.4.0.tar.bz2) = e0acd7a551c898aab3fb6afafc606bb4
+SHA256 (wv2-0.4.0.tar.bz2) = 0c6595e16cf9c5ec33ba0d653d3a980ac9df96f12f416645e01119bb299525d1
+SIZE (wv2-0.4.0.tar.bz2) = 452586
diff --git a/textproc/wv2/files/patch-CMakeLists.txt b/textproc/wv2/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..71bc3f581765
--- /dev/null
+++ b/textproc/wv2/files/patch-CMakeLists.txt
@@ -0,0 +1,55 @@
+--- ./CMakeLists.txt.orig 2009-08-27 08:46:40.000000000 +1100
++++ ./CMakeLists.txt 2009-09-16 10:21:34.000000000 +1100
+@@ -42,7 +42,7 @@
+
+ INCLUDE( CheckIncludeFile )
+
+-CHECK_INCLUDE_FILE( sys/iconv.h HAVE_SYS_ICONV_H )
++#CHECK_INCLUDE_FILE( sys/iconv.h HAVE_SYS_ICONV_H )
+
+ # Add "COMPILE_DEFINITIONS definitions" to TRY_RUN only if we have compile definitions
+
+@@ -59,19 +59,22 @@
+ SET( ICONV_COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} "-DHAVE_SYS_ICONV_H" )
+ ENDIF( HAVE_SYS_ICONV_H )
+
+-TRY_RUN( MODERN_ICONV_RUN MODERN_ICONV_COMPILE ${wvWare_BINARY_DIR}/CMakeTmp ${wvWare_SOURCE_DIR}/cmake/TestModernIconv.c COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} )
++#TRY_RUN( MODERN_ICONV_RUN MODERN_ICONV_COMPILE ${wvWare_BINARY_DIR}/CMakeTmp ${wvWare_SOURCE_DIR}/cmake/TestModernIconv.c COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} )
+
+-IF( MODERN_ICONV_RUN GREATER 0 OR NOT MODERN_ICONV_COMPILE )
+- MESSAGE( STATUS "wv2 depends on a modern iconv installation, supporting UNICODELITTLE and" )
+- MESSAGE( STATUS "UNICODEBIG. The detected iconv version doesn't support these conversions." )
+- MESSAGE( STATUS "" )
+- MESSAGE( STATUS "Please get a new libiconv from http://www.gnu.org/software/libiconv/" )
+- MESSAGE( STATUS "You might want to install the library to some alternative directory, in" )
+- MESSAGE( STATUS "order not to overwrite your current installation. Please use the options" )
+- MESSAGE( STATUS "-DICONV_INCLUDE_DIR=DIR and -DICONV_LIBRARIES=DIR to specify the location." )
+- MESSAGE( STATUS "" )
+- MESSAGE( FATAL_ERROR "* * * No iconv support - unable to continue. * * *" )
+-ENDIF( MODERN_ICONV_RUN GREATER 0 OR NOT MODERN_ICONV_COMPILE )
++SET( MODERN_ICONV_RUN 1)
++SET( MODERN_ICONV_COMPILE 1 )
++
++#IF( MODERN_ICONV_RUN GREATER 0 OR NOT MODERN_ICONV_COMPILE )
++# MESSAGE( STATUS "wv2 depends on a modern iconv installation, supporting UNICODELITTLE and" )
++# MESSAGE( STATUS "UNICODEBIG. The detected iconv version doesn't support these conversions." )
++# MESSAGE( STATUS "" )
++# MESSAGE( STATUS "Please get a new libiconv from http://www.gnu.org/software/libiconv/" )
++# MESSAGE( STATUS "You might want to install the library to some alternative directory, in" )
++# MESSAGE( STATUS "order not to overwrite your current installation. Please use the options" )
++# MESSAGE( STATUS "-DICONV_INCLUDE_DIR=DIR and -DICONV_LIBRARIES=DIR to specify the location." )
++# MESSAGE( STATUS "" )
++# MESSAGE( FATAL_ERROR "* * * No iconv support - unable to continue. * * *" )
++#ENDIF( MODERN_ICONV_RUN GREATER 0 OR NOT MODERN_ICONV_COMPILE )
+
+ #
+ # Various checks
+@@ -157,6 +160,8 @@
+ SET( _WV2_CFLAGS ${_WV2_CFLAGS} ${GLIB2_INCLUDE_DIR} )
+ ENDIF( GLIB2_FOUND )
+
++SET( _WV2_CFLAGS "${_WV2_CFLAGS} -I${CMAKE_INSTALL_PREFIX}/include/wv2" )
++
+ #
+ # Clean and prepare
+ #
diff --git a/textproc/wv2/files/patch-cmake-MacroCreateLibtoolFile.cmake b/textproc/wv2/files/patch-cmake-MacroCreateLibtoolFile.cmake
new file mode 100644
index 000000000000..dc4b0da43dc0
--- /dev/null
+++ b/textproc/wv2/files/patch-cmake-MacroCreateLibtoolFile.cmake
@@ -0,0 +1,35 @@
+--- ./cmake/MacroCreateLibtoolFile.cmake.orig 2009-08-27 08:46:40.000000000 +1100
++++ ./cmake/MacroCreateLibtoolFile.cmake 2009-09-18 00:46:35.000000000 +1100
+@@ -16,17 +16,18 @@
+ GET_TARGET_PROPERTY_WITH_DEFAULT(_target_age ${_target} LT_VERSION_AGE 0)
+ GET_TARGET_PROPERTY_WITH_DEFAULT(_target_revision ${_target} LT_VERSION_REVISION 0)
+ GET_TARGET_PROPERTY_WITH_DEFAULT(_target_installed ${_target} LT_INSTALLED yes)
+- GET_TARGET_PROPERTY_WITH_DEFAULT(_target_shouldnotlink ${_target} LT_SHOULDNOTLINK yes)
++ GET_TARGET_PROPERTY_WITH_DEFAULT(_target_shouldnotlink ${_target} LT_SHOULDNOTLINK no)
+ GET_TARGET_PROPERTY_WITH_DEFAULT(_target_dlopen ${_target} LT_DLOPEN "")
+ GET_TARGET_PROPERTY_WITH_DEFAULT(_target_dlpreopen ${_target} LT_DLPREOPEN "")
+ GET_FILENAME_COMPONENT(_laname ${_target_location} NAME_WE)
+ GET_FILENAME_COMPONENT(_soname ${_target_location} NAME)
++ SET(__laname ${_laname}.la)
+ SET(_laname ${PROJECT_BINARY_DIR}/${_laname}.la)
+- FILE(WRITE ${_laname} "# ${_laname} - a libtool library file\n")
+- FILE(WRITE ${_laname} "# Generated by CMake ${CMAKE_VERSION} (like GNU libtool)\n")
+- FILE(WRITE ${_laname} "\n# Please DO NOT delete this file!\n# It is necessary for linking the library with libtool.\n\n" )
++ FILE(WRITE ${_laname} "# ${__laname} - a libtool library file\n")
++ FILE(APPEND ${_laname} "# Generated by CMake ${CMAKE_VERSION} (like GNU libtool)\n")
++ FILE(APPEND ${_laname} "\n# Please DO NOT delete this file!\n# It is necessary for linking the library with libtool.\n\n" )
+ FILE(APPEND ${_laname} "# The name that we can dlopen(3).\n")
+- FILE(APPEND ${_laname} "dlname='${_soname}'\n\n")
++ FILE(APPEND ${_laname} "dlname='${_soname}.${_target_current}'\n\n")
+ FILE(APPEND ${_laname} "# Names of this library.\n")
+ FILE(APPEND ${_laname} "library_names='${_soname}.${_target_current}.${_target_age}.${_target_revision} ${_soname}.${_target_current} ${_soname}'\n\n")
+ FILE(APPEND ${_laname} "# The name of the static archive.\n")
+@@ -35,7 +36,7 @@
+ FILE(APPEND ${_laname} "dependency_libs='${_target_dependency_libs}'\n\n")
+ FILE(APPEND ${_laname} "# Names of additional weak libraries provided by this library\n")
+ FILE(APPEND ${_laname} "weak_library_names=''\n\n")
+- FILE(APPEND ${_laname} "# Version information for ${_laname}.\n")
++ FILE(APPEND ${_laname} "# Version information for ${__laname}.\n")
+ FILE(APPEND ${_laname} "current=${_target_current}\n")
+ FILE(APPEND ${_laname} "age=${_target_age}\n")
+ FILE(APPEND ${_laname} "revision=${_target_revision}\n\n")
diff --git a/textproc/wv2/files/patch-cmake_FindIconv.cmake b/textproc/wv2/files/patch-cmake_FindIconv.cmake
new file mode 100644
index 000000000000..31b26fca605f
--- /dev/null
+++ b/textproc/wv2/files/patch-cmake_FindIconv.cmake
@@ -0,0 +1,14 @@
+--- ./cmake/FindIconv.cmake.orig 2009-08-27 08:46:40.000000000 +1100
++++ ./cmake/FindIconv.cmake 2009-09-16 09:41:24.000000000 +1100
+@@ -13,9 +13,9 @@
+ SET(ICONV_FIND_QUIETLY TRUE)
+ ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
+
+-FIND_PATH(ICONV_INCLUDE_DIR iconv.h)
++FIND_PATH(ICONV_INCLUDE_DIR iconv.h PATHS /usr/local/include )
+
+-FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)
++FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 PATHS /usr/local/lib )
+
+ IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
+ SET(ICONV_FOUND TRUE)
diff --git a/textproc/wv2/pkg-plist b/textproc/wv2/pkg-plist
index 4de5e4c8ed83..95579f3e83fe 100644
--- a/textproc/wv2/pkg-plist
+++ b/textproc/wv2/pkg-plist
@@ -24,8 +24,12 @@ include/wv2/word97_generated.h
include/wv2/word_helper.h
include/wv2/wv2version.h
include/wv2/wvlog.h
-lib/libwv2.a
+include/wv2/zcodec.hxx
lib/libwv2.la
lib/libwv2.so
-lib/libwv2.so.2
+lib/libwv2.so.3
+lib/libwv2.so.3.0.0
+lib/wvWare/wv2.cmake
+lib/wvWare/wv2-noconfig.cmake
+@dirrm lib/wvWare
@dirrm include/wv2