summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-04-11 10:54:00 +0000
committeradam <adam@pkgsrc.org>2020-04-11 10:54:00 +0000
commitffc1bfa15e2d28981fa1b0bc7ed2f8b7f6dd2548 (patch)
treec01ee1e076b2319903b363251b7a5ec7f344ca2c /print
parentc67d7435cb46e0a3fb8e7018de79d6b55bc2a338 (diff)
downloadpkgsrc-ffc1bfa15e2d28981fa1b0bc7ed2f8b7f6dd2548.tar.gz
podofo: fix install_name on Darwin
Diffstat (limited to 'print')
-rw-r--r--print/podofo/Makefile6
-rw-r--r--print/podofo/distinfo5
-rw-r--r--print/podofo/patches/patch-CMakeLists.txt22
-rw-r--r--print/podofo/patches/patch-src_CMakeLists.txt11
4 files changed, 38 insertions, 6 deletions
diff --git a/print/podofo/Makefile b/print/podofo/Makefile
index 48b39425686..255453ccd17 100644
--- a/print/podofo/Makefile
+++ b/print/podofo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2020/03/20 11:58:15 nia Exp $
+# $NetBSD: Makefile,v 1.35 2020/04/11 10:54:00 adam Exp $
DISTNAME= podofo-0.9.6
PKGREVISION= 1
@@ -14,8 +14,8 @@ USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
-CMAKE_ARGS+= -DPODOFO_BUILD_SHARED:BOOL=TRUE
-CMAKE_ARGS+= -DPODOFO_BUILD_STATIC:BOOL=TRUE
+CMAKE_ARGS+= -DPODOFO_BUILD_SHARED=ON
+CMAKE_ARGS+= -DPODOFO_BUILD_STATIC=ON
CMAKE_ARGS+= -DFREETYPE_INCLUDE_DIR_FT2BUILD:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2
CMAKE_ARGS+= -DFREETYPE_INCLUDE_DIR_FTHEADER:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2/config
CMAKE_ARGS+= -DFREETYPE_LIB_PATHS:PATH=${BUILDLINK_PREFIX.freetype2}/lib
diff --git a/print/podofo/distinfo b/print/podofo/distinfo
index 7750b16f3a1..6964dfa4bf2 100644
--- a/print/podofo/distinfo
+++ b/print/podofo/distinfo
@@ -1,11 +1,12 @@
-$NetBSD: distinfo,v 1.20 2019/11/09 12:33:29 nia Exp $
+$NetBSD: distinfo,v 1.21 2020/04/11 10:54:00 adam Exp $
SHA1 (podofo-0.9.6.tar.gz) = 54275025b1049e40177e35c7003e87ea092f277c
RMD160 (podofo-0.9.6.tar.gz) = 71764cd85c7e443654689f84dd8c68fccb24e442
SHA512 (podofo-0.9.6.tar.gz) = 35c1a457758768bdadc93632385f6b9214824fead279f1b85420443fb2135837cefca9ced476df0d47066f060e9150e12fcd40f60fa1606b177da433feb20130
Size (podofo-0.9.6.tar.gz) = 995898 bytes
-SHA1 (patch-CMakeLists.txt) = c92ea81cde1af07ac3464d1a6a8df1f36f81a833
+SHA1 (patch-CMakeLists.txt) = cb576aaf2e6ebe875818aefbba8d83c4ddbae7e4
SHA1 (patch-cmake_modules_FindFREETYPE.cmake) = 755d6d7ad73dea490479b90299728129bb1b0795
+SHA1 (patch-src_CMakeLists.txt) = eb44b1ba06a850340a7fb2de42ac982336cb04cd
SHA1 (patch-src_base_PdfMemoryManagement.cpp) = 9303daf1e471106d9d22e42230db650dba5f1006
SHA1 (patch-src_doc_PdfImage.cpp) = 844250a772d40ba3ea2322ea623990b87b27c664
SHA1 (patch-test_CMakeLists.txt) = 846871dac995ff80544ad9096574eddd776e324f
diff --git a/print/podofo/patches/patch-CMakeLists.txt b/print/podofo/patches/patch-CMakeLists.txt
index 218d18ffd2b..29509e82c70 100644
--- a/print/podofo/patches/patch-CMakeLists.txt
+++ b/print/podofo/patches/patch-CMakeLists.txt
@@ -1,9 +1,29 @@
-$NetBSD: patch-CMakeLists.txt,v 1.4 2019/11/09 12:33:29 nia Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.5 2020/04/11 10:54:00 adam Exp $
+Require newer CMake to fix install_name on Darwin.
+Set correct shared library target.
Install man pages to correct directory.
--- CMakeLists.txt.orig 2018-07-08 10:33:27.000000000 +0000
+++ CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
+
+ #***************** IMPORTANT ************* IMPORTANT **********************
+ # Look at http://www.vtk.org/Wiki/CMake_HowToDoPlatformChecks
+@@ -516,9 +516,9 @@ IF(FONTCONFIG_FOUND AND WANT_FONTCONFIG)
+ INCLUDE_DIRECTORIES(${FONTCONFIG_INCLUDE_DIR})
+ ENDIF(FONTCONFIG_FOUND AND WANT_FONTCONFIG)
+
+-IF(WIN32 OR PODOFO_BUILD_STATIC)
++IF(PODOFO_BUILD_SHARED)
+ SET(PODOFO_LIB
+- podofo
++ podofo_shared
+ ${PODOFO_LIB_DEPENDS}
+ )
+ ELSE(WIN32 OR PODOFO_BUILD_STATIC)
@@ -530,7 +530,7 @@ ENDIF(WIN32 OR PODOFO_BUILD_STATIC)
#
# Setup directories we will need
diff --git a/print/podofo/patches/patch-src_CMakeLists.txt b/print/podofo/patches/patch-src_CMakeLists.txt
new file mode 100644
index 00000000000..41de3d4b508
--- /dev/null
+++ b/print/podofo/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,11 @@
+$NetBSD: patch-src_CMakeLists.txt,v 1.1 2020/04/11 10:54:00 adam Exp $
+
+Inherit CMake requirement from the main CMakeLists.txt.
+
+--- src/CMakeLists.txt.orig 2018-03-11 11:42:20.000000000 +0000
++++ src/CMakeLists.txt
+@@ -1,4 +1,3 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+ IF(NOT PODOFO_MAIN_CMAKELISTS_READ)
+ MESSAGE(FATAL_ERROR "Run cmake on the CMakeLists.txt in the project root, not the one in the 'src' directory. You will need to delete CMakeCache.txt from the current directory.")