diff --git a/cad/horizon-eda/Makefile b/cad/horizon-eda/Makefile index 604f7606a994..75b3e4088d20 100644 --- a/cad/horizon-eda/Makefile +++ b/cad/horizon-eda/Makefile @@ -1,47 +1,58 @@ PORTNAME= horizon-eda DISTVERSIONPREFIX= v DISTVERSION= 2.4.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= cad MAINTAINER= yuri@FreeBSD.org COMMENT= EDA package for printed circuit board design WWW= https://horizon-eda.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/boost/optional.hpp:devel/boost-libs \ cppzmq>0:net/cppzmq \ glm>0:math/glm LIB_DEPENDS= libcurl.so:ftp/curl \ libepoxy.so:graphics/libepoxy \ libgit2.so:devel/libgit2 \ libharfbuzz.so:print/harfbuzz \ libpng16.so:graphics/png \ - libpodofo.so:graphics/podofo \ + libpodofo09.so:graphics/podofo09 \ libTKSTEP.so:cad/opencascade \ libuuid.so:misc/e2fsprogs-libuuid \ libzip.so:archivers/libzip \ libzmq.so:net/libzmq4 USES= gmake gnome libarchive localbase pkgconfig python:build sqlite # compiler:c++17-lang USE_GNOME= atkmm gdkpixbuf2 gtkmm30 librsvg2 USE_GITHUB= yes GH_PROJECT= horizon MAKE_ARGS= DEBUGFLAGS= OPTIMIZE= BINARY_ALIAS= python3=${PYTHON_CMD} LLVM_VER= 12 # workaround for bug#263870 BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} CPP= clang-cpp${LLVM_VER} CC= clang${LLVM_VER} CXX= clang++${LLVM_VER} +# Patch sources to force using include files installed by graphics/podofo09 +post-patch: + @${REINPLACE_CMD} -e '/^#include/s|podofo/podofo.h|podofo09/podofo.h|' \ + ${WRKSRC}/src/export_pdf/export_pdf.cpp \ + ${WRKSRC}/src/export_pdf/export_pdf_board.cpp \ + ${WRKSRC}/src/python_module/board.cpp \ + ${WRKSRC}/src/python_module/schematic.cpp \ + ${WRKSRC}/src/imp/pdf_export_window.cpp \ + ${WRKSRC}/src/export_pdf/export_pdf_util.hpp \ + ${WRKSRC}/src/export_pdf/canvas_pdf.hpp + post-install: # https://github.com/horizon-eda/horizon/issues/558 @cd ${STAGEDIR}${PREFIX}/bin && ${STRIP_CMD} horizon-eda horizon-imp .include diff --git a/cad/horizon-eda/files/patch-Makefile b/cad/horizon-eda/files/patch-Makefile new file mode 100644 index 000000000000..f683e29eb4b2 --- /dev/null +++ b/cad/horizon-eda/files/patch-Makefile @@ -0,0 +1,26 @@ +--- Makefile.orig 2022-10-15 16:47:51 UTC ++++ Makefile +@@ -1071,9 +1071,10 @@ $(BUILDDIR)/gen/help_texts.hpp: scripts/make_help.py s + $(ECHO) " $@" + $(QUIET)python3 scripts/make_help.py h src/help_texts.txt > $@ + ++# Force linking to podofo09 library provided by the graphics/podofo09 port + $(BUILDDIR)/horizon-imp: $(OBJ_COMMON) $(OBJ_ROUTER) $(OBJ_OCE) $(OBJ_IMP) + $(ECHO) " $@" +- $(QUIET)$(CXX) $^ $(LDFLAGS) $(LDFLAGS_GUI) $(LDFLAGS_OCE) $(shell $(PKG_CONFIG) --libs $(LIBS_COMMON) gtkmm-3.0 epoxy cairomm-pdf-1.0 librsvg-2.0 libzmq libcurl libpng libarchive) -lpodofo -lTKHLR -lTKGeomBase $(EXTRA_LIBS) -o $@ ++ $(QUIET)$(CXX) $^ $(LDFLAGS) $(LDFLAGS_GUI) $(LDFLAGS_OCE) $(shell $(PKG_CONFIG) --libs $(LIBS_COMMON) gtkmm-3.0 epoxy cairomm-pdf-1.0 librsvg-2.0 libzmq libcurl libpng libarchive) -lpodofo09 -lTKHLR -lTKGeomBase $(EXTRA_LIBS) -o $@ + + $(BUILDDIR)/horizon-pool: $(OBJ_COMMON) $(OBJ_POOL_UTIL) + $(ECHO) " $@" +@@ -1103,9 +1104,10 @@ $(BUILDDIR)/horizon-pr-review: $(OBJ_COMMON) $(OBJ_PR_ + $(ECHO) " $@" + $(QUIET)$(CXX) $^ $(LDFLAGS) $(INC) $(CXXFLAGS) $(shell $(PKG_CONFIG) --libs $(LIBS_COMMON) glibmm-2.4 giomm-2.4 cairomm-1.0 libgit2 libpng) -lOSMesa $(LDFLAGS_OCE) -o $@ + ++# Force linking to podofo09 library provided by the graphics/podofo09 port + $(BUILDDIR)/horizon.so: $(OBJ_PYTHON) $(OBJ_SHARED) $(OBJ_SHARED_OCE) + $(ECHO) " $@" +- $(QUIET)$(CXX) $^ $(LDFLAGS) $(INC) $(CXXFLAGS) $(shell $(PKG_CONFIG) --libs $(LIBS_COMMON) python3 glibmm-2.4 giomm-2.4 cairomm-1.0 py3cairo libpng libarchive) -lpodofo $(OCE_LIBDIRS) -lTKXDESTEP -lOSMesa -shared -o $@ ++ $(QUIET)$(CXX) $^ $(LDFLAGS) $(INC) $(CXXFLAGS) $(shell $(PKG_CONFIG) --libs $(LIBS_COMMON) python3 glibmm-2.4 giomm-2.4 cairomm-1.0 py3cairo libpng libarchive) -lpodofo09 $(OCE_LIBDIRS) -lTKXDESTEP -lOSMesa -shared -o $@ + + $(OBJDIR)/%.o: %.c + $(QUIET)$(MKDIR) $(dir $@) diff --git a/graphics/Makefile b/graphics/Makefile index fee35e57f0b2..9e36f44bc112 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1,1238 +1,1239 @@ COMMENT = Graphics tools and libraries SUBDIR += 3d-ascii-viewer-c SUBDIR += 4va SUBDIR += Coin SUBDIR += GraphicsMagick SUBDIR += Hermes SUBDIR += IPA SUBDIR += ImageMagick6 SUBDIR += ImageMagick7 SUBDIR += O2-tools SUBDIR += R-cran-DiagrammeR SUBDIR += R-cran-GDD SUBDIR += R-cran-RColorBrewer SUBDIR += R-cran-colorspace SUBDIR += R-cran-diagram SUBDIR += R-cran-dichromat SUBDIR += R-cran-dygraphs SUBDIR += R-cran-farver SUBDIR += R-cran-ggplot2 SUBDIR += R-cran-ggrepel SUBDIR += R-cran-gridBase SUBDIR += R-cran-gridExtra SUBDIR += R-cran-jpeg SUBDIR += R-cran-latticeExtra SUBDIR += R-cran-magick SUBDIR += R-cran-munsell SUBDIR += R-cran-pROC SUBDIR += R-cran-pixmap SUBDIR += R-cran-png SUBDIR += R-cran-qcc SUBDIR += R-cran-rgdal SUBDIR += R-cran-rtiff SUBDIR += R-cran-s2 SUBDIR += R-cran-scales SUBDIR += R-cran-shape SUBDIR += R-cran-viridis SUBDIR += R-cran-viridisLite SUBDIR += R-cran-visNetwork SUBDIR += SciPlot SUBDIR += a2png SUBDIR += aalib SUBDIR += aaphoto SUBDIR += acidwarp SUBDIR += acidwarp-sdl SUBDIR += aeskulap SUBDIR += agg SUBDIR += airsaned SUBDIR += akira SUBDIR += alembic SUBDIR += alizams SUBDIR += aloadimage SUBDIR += alpng SUBDIR += ampasACES-container SUBDIR += ampasCTL SUBDIR += animorph SUBDIR += ansilove SUBDIR += anttweakbar SUBDIR += aoi SUBDIR += apngasm SUBDIR += apngdis SUBDIR += appleseed SUBDIR += argyllcms SUBDIR += art SUBDIR += asciinema-agg SUBDIR += asciio SUBDIR += aseprite SUBDIR += atril SUBDIR += atril-lite SUBDIR += autopano-sift-c SUBDIR += autotrace SUBDIR += aview SUBDIR += avir SUBDIR += azpainter SUBDIR += azpainterb SUBDIR += barcode SUBDIR += batik SUBDIR += bgfx SUBDIR += birdfont SUBDIR += bitmap SUBDIR += blend2d SUBDIR += blender SUBDIR += blender-doc SUBDIR += blender-lts29 SUBDIR += bmeps SUBDIR += bmp2html SUBDIR += bonzomatic SUBDIR += box SUBDIR += brunsli SUBDIR += bsd-plotutils SUBDIR += c-a-i-r SUBDIR += cadubi SUBDIR += cairo SUBDIR += cairomm SUBDIR += cal3d SUBDIR += camerakit SUBDIR += catimg SUBDIR += cbonsai SUBDIR += cbviewer SUBDIR += cegui SUBDIR += cenon SUBDIR += cfdg SUBDIR += cgif SUBDIR += chafa SUBDIR += charls SUBDIR += cimg SUBDIR += cloudcompare SUBDIR += clutter SUBDIR += clutter-gtk3 SUBDIR += cluttermm SUBDIR += cogl SUBDIR += colmap SUBDIR += colord SUBDIR += colord-gtk SUBDIR += compupic SUBDIR += converseen SUBDIR += corrupter SUBDIR += cosmoplayer SUBDIR += cptutils SUBDIR += crw SUBDIR += curator SUBDIR += curtail SUBDIR += cuttlefish SUBDIR += cxxplot SUBDIR += darktable SUBDIR += dataplot SUBDIR += dbow2 SUBDIR += dc20pack SUBDIR += dcmtk SUBDIR += dcp2icc SUBDIR += dcraw SUBDIR += dcraw-m SUBDIR += delaboratory SUBDIR += derelict-gl3 SUBDIR += devil SUBDIR += dia SUBDIR += diff-pdf SUBDIR += diffpdf SUBDIR += dify SUBDIR += digikam SUBDIR += dilay SUBDIR += diplib SUBDIR += ditaa SUBDIR += djview4 SUBDIR += djvulibre SUBDIR += dmtx-utils SUBDIR += drawing SUBDIR += drawpile SUBDIR += drm-510-kmod SUBDIR += drm-515-kmod SUBDIR += drm-fbsd12.0-kmod SUBDIR += drm-kmod SUBDIR += drm_info SUBDIR += dspdfviewer SUBDIR += dssim SUBDIR += duhdraw SUBDIR += dust3d SUBDIR += dynamechs SUBDIR += ebsynth SUBDIR += edje_viewer SUBDIR += egl-wayland SUBDIR += eglexternalplatform SUBDIR += elastix SUBDIR += electricsheep SUBDIR += elementary-photos SUBDIR += embree SUBDIR += enblend SUBDIR += engauge-digitizer SUBDIR += entangle SUBDIR += eog SUBDIR += eog-plugins SUBDIR += eom SUBDIR += eos-movrec SUBDIR += epdfview SUBDIR += ephoto SUBDIR += epix SUBDIR += eps2png SUBDIR += epsonscan2 SUBDIR += epsonscan2-non-free-plugin SUBDIR += epstool SUBDIR += eterm-bg SUBDIR += evince SUBDIR += evolvotron SUBDIR += exif SUBDIR += exifprobe SUBDIR += exiftags SUBDIR += exiftran SUBDIR += exiv2 SUBDIR += exrtools SUBDIR += f3d SUBDIR += facedetect SUBDIR += farbfeld SUBDIR += feh SUBDIR += fig2sxd SUBDIR += figurine SUBDIR += filament SUBDIR += filmulator SUBDIR += flam3 SUBDIR += flasm SUBDIR += flif SUBDIR += flphoto SUBDIR += fly SUBDIR += fortytwo SUBDIR += fotofix SUBDIR += fotoxx SUBDIR += founts SUBDIR += fpc-cairo SUBDIR += fpc-graph SUBDIR += fpc-hermes SUBDIR += fpc-imagemagick SUBDIR += fpc-libgd SUBDIR += fpc-libpng SUBDIR += fpc-ncurses SUBDIR += fpc-opengl SUBDIR += fpc-pasjpeg SUBDIR += fpc-proj4 SUBDIR += fpc-rsvg SUBDIR += fpc-svgalib SUBDIR += fpc-vcl-compat SUBDIR += fracplanet SUBDIR += fractgen SUBDIR += fraqtive SUBDIR += freeglut SUBDIR += freeimage SUBDIR += freetype-gl SUBDIR += frei0r SUBDIR += frei0r-plugins SUBDIR += frei0r-plugins-gavl SUBDIR += frei0r-plugins-opencv SUBDIR += frogr SUBDIR += ftgl SUBDIR += fusefs-gphotofs SUBDIR += fv SUBDIR += fyre SUBDIR += g2 SUBDIR += gauche-gl SUBDIR += gcolor2 SUBDIR += gcolor3 SUBDIR += gd SUBDIR += gdal SUBDIR += gdal-grass SUBDIR += gdchart SUBDIR += gdk-pixbuf2 SUBDIR += gdk-pixbuf2-xlib SUBDIR += gdtclft SUBDIR += geeqie SUBDIR += gegl SUBDIR += geoapi SUBDIR += geomorph SUBDIR += geomview SUBDIR += geos SUBDIR += geoserver SUBDIR += gexiv2 SUBDIR += giflib SUBDIR += gifmerge SUBDIR += gifsicle SUBDIR += gifski SUBDIR += giftool SUBDIR += gimageview SUBDIR += gimmage SUBDIR += gimp SUBDIR += gimp-app SUBDIR += gimp-beautify-plugin SUBDIR += gimp-data-extras SUBDIR += gimp-jxl-plugin SUBDIR += gimp-lensfun-plugin SUBDIR += gimp-lqr-plugin SUBDIR += gimp-refocus-plugin SUBDIR += gimp-resynthesizer SUBDIR += gkrellkam2 SUBDIR += glad SUBDIR += glaxnimate SUBDIR += glbinding SUBDIR += gle SUBDIR += glee SUBDIR += glew SUBDIR += glew-wayland SUBDIR += glexcess SUBDIR += glfw SUBDIR += glfw2 SUBDIR += gliv SUBDIR += glosm SUBDIR += glpng SUBDIR += glslang SUBDIR += glvis SUBDIR += glx-utils SUBDIR += gmic SUBDIR += gmic-qt SUBDIR += gmt SUBDIR += gmt-dcw SUBDIR += gmt-gshhg SUBDIR += gnash SUBDIR += gnome-color-manager SUBDIR += gnome-video-effects SUBDIR += gocr SUBDIR += goocanvas2 SUBDIR += goocanvas3 SUBDIR += goocanvasmm2 SUBDIR += goom SUBDIR += gource SUBDIR += goxel SUBDIR += gpaint SUBDIR += gphoto2 SUBDIR += gpicview SUBDIR += gpsmanshp SUBDIR += gpu-firmware-amd-kmod SUBDIR += gpu-firmware-intel-kmod SUBDIR += gpu-firmware-kmod SUBDIR += gpu-firmware-radeon-kmod SUBDIR += gpxsee SUBDIR += gracula SUBDIR += grads SUBDIR += grafx2 SUBDIR += graphene SUBDIR += graphite2 SUBDIR += graphos SUBDIR += graphviz SUBDIR += grx SUBDIR += gscan2pdf SUBDIR += gstreamer1-plugins-aalib SUBDIR += gstreamer1-plugins-cairo SUBDIR += gstreamer1-plugins-gdkpixbuf SUBDIR += gstreamer1-plugins-gl SUBDIR += gstreamer1-plugins-jpeg SUBDIR += gstreamer1-plugins-kms SUBDIR += gstreamer1-plugins-libcaca SUBDIR += gstreamer1-plugins-libvisual SUBDIR += gstreamer1-plugins-opencv SUBDIR += gstreamer1-plugins-openexr SUBDIR += gstreamer1-plugins-openjpeg SUBDIR += gstreamer1-plugins-png SUBDIR += gstreamer1-plugins-qt SUBDIR += gstreamer1-plugins-rsvg SUBDIR += gstreamer1-plugins-vulkan SUBDIR += gstreamer1-plugins-webp SUBDIR += gstreamer1-plugins-zbar SUBDIR += gthumb SUBDIR += gtimelapse SUBDIR += gtk-update-icon-cache SUBDIR += gtkam SUBDIR += gts SUBDIR += guetzli SUBDIR += guile-cairo SUBDIR += guilib SUBDIR += gwenview SUBDIR += h3 SUBDIR += hdr_tools SUBDIR += heimer SUBDIR += hiptext SUBDIR += hobbes-icons-xpm SUBDIR += hppsmtools SUBDIR += hugin SUBDIR += icat SUBDIR += icc-profiles-adobe-cs4 SUBDIR += icc-profiles-basiccolor SUBDIR += icc-profiles-openicc SUBDIR += iccxml SUBDIR += icon-slicer SUBDIR += icontact SUBDIR += icoutils SUBDIR += ida SUBDIR += iec16022 SUBDIR += igt-gpu-tools SUBDIR += iiview SUBDIR += ikona SUBDIR += imageindex SUBDIR += imageviewer SUBDIR += imageworsener SUBDIR += imc SUBDIR += imlib2 SUBDIR += imlib2-jxl SUBDIR += imlib2-webp SUBDIR += imlib2_loaders SUBDIR += impressive SUBDIR += imv SUBDIR += inkscape SUBDIR += inkscape-open-symbols SUBDIR += instant-meshes SUBDIR += intel-backlight SUBDIR += intergif SUBDIR += ipe SUBDIR += jalbum SUBDIR += jasper SUBDIR += jave6 SUBDIR += jbig2dec SUBDIR += jbigkit SUBDIR += jdraw SUBDIR += jgraph SUBDIR += jhead SUBDIR += jogamp-jogl SUBDIR += jogl SUBDIR += jp SUBDIR += jp2a SUBDIR += jpatch SUBDIR += jpeg-turbo SUBDIR += jpeginfo SUBDIR += jpegoptim SUBDIR += jpgtn SUBDIR += jslice SUBDIR += kamera SUBDIR += kamerka SUBDIR += katarakt SUBDIR += kcolorchooser SUBDIR += kcolorpicker SUBDIR += kdegraphics SUBDIR += kdegraphics-mobipocket SUBDIR += kdegraphics-svgpart SUBDIR += kdegraphics-thumbnailers SUBDIR += kdiagram SUBDIR += kf5-kimageformats SUBDIR += kf5-kplotting SUBDIR += kf5-kquickcharts SUBDIR += kf5-prison SUBDIR += kgeotag SUBDIR += kgraphviewer SUBDIR += kimageannotator SUBDIR += kimagemapeditor SUBDIR += kipi-plugins SUBDIR += klatexformula SUBDIR += kludge3d SUBDIR += kmscube SUBDIR += knotter SUBDIR += kolourpaint SUBDIR += kontrast SUBDIR += kooka SUBDIR += kphotoalbum SUBDIR += kplot SUBDIR += kqtquickcharts SUBDIR += kquickimageeditor SUBDIR += krita SUBDIR += ksanecore SUBDIR += kseexpr SUBDIR += ksnip SUBDIR += kxstitch SUBDIR += l2p SUBDIR += largetifftools SUBDIR += laternamagica SUBDIR += lazpaint SUBDIR += lcdtest SUBDIR += lcms SUBDIR += lcms2 SUBDIR += leafpak SUBDIR += lensfun SUBDIR += lepton SUBDIR += leptonica SUBDIR += lerc SUBDIR += lfview SUBDIR += lib3ds SUBDIR += libGLU SUBDIR += libQGLViewer SUBDIR += libafterimage SUBDIR += libansilove SUBDIR += libart_lgpl SUBDIR += libavif SUBDIR += libboard SUBDIR += libbpg SUBDIR += libcaca SUBDIR += libcdr01 SUBDIR += libchamplain SUBDIR += libdmtx SUBDIR += libdrm SUBDIR += libecwj2 SUBDIR += libemf SUBDIR += libepoxy SUBDIR += libetonyek01 SUBDIR += libexif SUBDIR += libexif-gtk SUBDIR += libfpx SUBDIR += libfreehand SUBDIR += libgeotiff SUBDIR += libgfx SUBDIR += libgltext SUBDIR += libgltf SUBDIR += libglvnd SUBDIR += libgnomecanvas SUBDIR += libgnomecanvasmm26 SUBDIR += libgphoto2 SUBDIR += libgxps SUBDIR += libheif SUBDIR += libimagequant SUBDIR += libimg SUBDIR += libiptcdata SUBDIR += libjpeg-turbo SUBDIR += libjxl SUBDIR += libjxr SUBDIR += libkdcraw SUBDIR += libkexiv2 SUBDIR += libkipi SUBDIR += libksane SUBDIR += libliftoff SUBDIR += liblqr-1 SUBDIR += liblug SUBDIR += libmng SUBDIR += libmorph SUBDIR += libmypaint SUBDIR += libnsbmp SUBDIR += libnsgif SUBDIR += libopenraw SUBDIR += libosmesa SUBDIR += libpano13 SUBDIR += libpcd SUBDIR += libpgf SUBDIR += libpillowfight SUBDIR += libplacebo SUBDIR += libpotrace SUBDIR += libprojectm SUBDIR += libpuzzle SUBDIR += libqrencode SUBDIR += librasterlite2 SUBDIR += libraw SUBDIR += librsvg2 SUBDIR += librsvg2-rust SUBDIR += librtprocess SUBDIR += libsixel SUBDIR += libspiro SUBDIR += libspng SUBDIR += libsvg SUBDIR += libsvg-cairo SUBDIR += libsvgtiny SUBDIR += libvisual SUBDIR += libvisual04 SUBDIR += libvisual04-plugins SUBDIR += libwmf SUBDIR += libwmf-nox11 SUBDIR += libwpg03 SUBDIR += libyuv SUBDIR += libzmf SUBDIR += lightzone SUBDIR += linplasma SUBDIR += linux-c7-cairo SUBDIR += linux-c7-cairo-gobject SUBDIR += linux-c7-dri SUBDIR += linux-c7-gdk-pixbuf2 SUBDIR += linux-c7-glx-utils SUBDIR += linux-c7-graphite2 SUBDIR += linux-c7-jasper SUBDIR += linux-c7-jbigkit SUBDIR += linux-c7-jpeg SUBDIR += linux-c7-libdrm SUBDIR += linux-c7-libepoxy SUBDIR += linux-c7-libglvnd SUBDIR += linux-c7-librsvg2 SUBDIR += linux-c7-png SUBDIR += linux-c7-sdl_image SUBDIR += linux-c7-sdl_ttf SUBDIR += linux-c7-tiff SUBDIR += linux-c7-wayland SUBDIR += lua-gd SUBDIR += luminance-qt5 SUBDIR += lux SUBDIR += lximage-qt SUBDIR += magnum SUBDIR += magnum-plugins SUBDIR += mahotas SUBDIR += maim SUBDIR += mandelbulber SUBDIR += mapcache SUBDIR += mapnik SUBDIR += mapserver SUBDIR += mapyrus SUBDIR += matplotlib-cpp SUBDIR += matplotplusplus SUBDIR += meh SUBDIR += mesa-demos SUBDIR += mesa-devel SUBDIR += mesa-dri SUBDIR += mesa-gallium-va SUBDIR += mesa-gallium-vdpau SUBDIR += mesa-gallium-xa SUBDIR += mesa-libs SUBDIR += metacam SUBDIR += metapixel SUBDIR += milton SUBDIR += minder SUBDIR += ming SUBDIR += mirtk SUBDIR += movit SUBDIR += mozjpeg SUBDIR += mscgen SUBDIR += msl SUBDIR += mtpaint SUBDIR += multican SUBDIR += mupdf SUBDIR += mxp SUBDIR += mypaint SUBDIR += mypaint-brushes SUBDIR += mypaint-brushes2 SUBDIR += nanort SUBDIR += nanosvg SUBDIR += netpbm SUBDIR += nip2 SUBDIR += nomacs SUBDIR += nplot SUBDIR += npretty SUBDIR += nsxiv SUBDIR += nurbs++ SUBDIR += nvidia-texture-tools SUBDIR += ocaml-cairo SUBDIR += ocaml-images SUBDIR += ocaml-lablgl SUBDIR += ocrad SUBDIR += ogre3d SUBDIR += ogre3d19 SUBDIR += oidn SUBDIR += okular SUBDIR += open3d SUBDIR += opencollada SUBDIR += opencolorio SUBDIR += opencolorio-tools SUBDIR += opencsg SUBDIR += opencv SUBDIR += opendx SUBDIR += openexr SUBDIR += openfx-arena SUBDIR += openfx-misc SUBDIR += opengl-man SUBDIR += opengv SUBDIR += openicc-config SUBDIR += openimageio SUBDIR += openjpeg SUBDIR += openjpeg15 SUBDIR += openjph SUBDIR += openjump SUBDIR += openmvs SUBDIR += opennurbs SUBDIR += openorienteering-mapper SUBDIR += openpgl SUBDIR += openrm SUBDIR += openshadinglanguage SUBDIR += openslide SUBDIR += opensubdiv SUBDIR += openvkl SUBDIR += optar SUBDIR += optipng SUBDIR += osg SUBDIR += osg34 SUBDIR += osgearth SUBDIR += ospray SUBDIR += ospray-studio SUBDIR += ossim SUBDIR += oxipng SUBDIR += oyranos SUBDIR += p5-Acme-Steganography-Image-Png SUBDIR += p5-Algorithm-Line-Bresenham SUBDIR += p5-Alien-Gimp SUBDIR += p5-Barcode-ZBar SUBDIR += p5-CAD-Drawing SUBDIR += p5-CAD-Drawing-Template SUBDIR += p5-Cairo SUBDIR += p5-Captcha-reCAPTCHA SUBDIR += p5-Captcha-reCAPTCHA-Mailhide SUBDIR += p5-Chart SUBDIR += p5-Chart-Clicker SUBDIR += p5-Chart-Gnuplot SUBDIR += p5-Chart-Graph SUBDIR += p5-Chart-PNGgraph SUBDIR += p5-Color-Calc SUBDIR += p5-Color-Library SUBDIR += p5-Color-Palette SUBDIR += p5-Color-Rgb SUBDIR += p5-Color-Scheme SUBDIR += p5-Convert-Color SUBDIR += p5-Convert-Color-XTerm SUBDIR += p5-Data-Google-Visualization-DataSource SUBDIR += p5-Data-Google-Visualization-DataTable SUBDIR += p5-GD SUBDIR += p5-GD-Arrow SUBDIR += p5-GD-Barcode SUBDIR += p5-GD-Graph SUBDIR += p5-GD-Graph-histogram SUBDIR += p5-GD-Graph-ohlc SUBDIR += p5-GD-Graph3d SUBDIR += p5-GD-SVG SUBDIR += p5-GD-TextUtil SUBDIR += p5-GD-Thumbnail SUBDIR += p5-Geo-EOP SUBDIR += p5-Geo-GDAL-FFI SUBDIR += p5-Geo-GML SUBDIR += p5-Geo-Gpx SUBDIR += p5-Geometry-Primitive SUBDIR += p5-Gimp SUBDIR += p5-Google-Chart SUBDIR += p5-Graph-Easy SUBDIR += p5-Graph-ReadWrite SUBDIR += p5-Graph-SocialMap SUBDIR += p5-Graph-Writer-GraphViz SUBDIR += p5-GraphViz SUBDIR += p5-GraphViz-Data-Structure SUBDIR += p5-GraphViz-Traverse SUBDIR += p5-GraphViz2 SUBDIR += p5-GraphViz2-DBI SUBDIR += p5-GraphViz2-Data-Grapher SUBDIR += p5-GraphViz2-Parse-ISA SUBDIR += p5-GraphViz2-Parse-RecDescent SUBDIR += p5-GraphViz2-Parse-XML SUBDIR += p5-Graphics-Color SUBDIR += p5-Graphics-ColorNames SUBDIR += p5-Graphics-ColorNames-WWW SUBDIR += p5-Graphics-ColorUtils SUBDIR += p5-Graphics-GnuplotIF SUBDIR += p5-Graphics-Primitive SUBDIR += p5-Graphics-Primitive-Driver-Cairo SUBDIR += p5-Graphics-TIFF SUBDIR += p5-Image-Base SUBDIR += p5-Image-Base-SVG SUBDIR += p5-Image-Caa SUBDIR += p5-Image-Compare SUBDIR += p5-Image-ExifTool SUBDIR += p5-Image-ExifTool-devel SUBDIR += p5-Image-Grab SUBDIR += p5-Image-Heatmap SUBDIR += p5-Image-IPTCInfo SUBDIR += p5-Image-Imgur SUBDIR += p5-Image-Imlib2 SUBDIR += p5-Image-Info SUBDIR += p5-Image-LibExif SUBDIR += p5-Image-Magick-Iterator SUBDIR += p5-Image-Math-Constrain SUBDIR += p5-Image-MetaData-GQview SUBDIR += p5-Image-MetaData-JPEG SUBDIR += p5-Image-OCR-Tesseract SUBDIR += p5-Image-PBMlib SUBDIR += p5-Image-PNG-Libpng SUBDIR += p5-Image-PNG-QRCode SUBDIR += p5-Image-Pngslimmer SUBDIR += p5-Image-Sane SUBDIR += p5-Image-Scale SUBDIR += p5-Image-Size SUBDIR += p5-Imager SUBDIR += p5-Imager-Graph SUBDIR += p5-Imager-Plot SUBDIR += p5-Imager-QRCode SUBDIR += p5-Imlib2 SUBDIR += p5-Layout-Manager SUBDIR += p5-OpenGL SUBDIR += p5-PGPLOT SUBDIR += p5-SVG-DOM2 SUBDIR += p5-SVG-Graph SUBDIR += p5-SVG-Metadata SUBDIR += p5-SWF-Builder SUBDIR += p5-SWF-File SUBDIR += p5-Sane SUBDIR += p5-SpringGraph SUBDIR += p5-Tk-JPEG-Lite SUBDIR += p5-URI-GoogleChart SUBDIR += p5-VCG SUBDIR += p5-Visio SUBDIR += p5-feedgnuplot SUBDIR += p5-ming SUBDIR += panoglview SUBDIR += panomatic SUBDIR += partio SUBDIR += pastel SUBDIR += pcl-pointclouds SUBDIR += pdf2svg SUBDIR += pdfpc SUBDIR += pear-Horde_Image SUBDIR += pear-Image_3D SUBDIR += pear-Image_Barcode SUBDIR += pear-Image_Barcode2 SUBDIR += pear-Image_Canvas SUBDIR += pear-Image_Color SUBDIR += pear-Image_Graph SUBDIR += pear-Image_GraphViz SUBDIR += pear-Image_Transform SUBDIR += pecl-imagick SUBDIR += pecl-imagick-im7 SUBDIR += pecl-qrencode SUBDIR += pecl-vips SUBDIR += pencil2d SUBDIR += peps SUBDIR += perceptualdiff SUBDIR += peruse SUBDIR += pfstools SUBDIR += pgplot SUBDIR += pho SUBDIR += photivo SUBDIR += photoflare SUBDIR += photopc SUBDIR += photoqt SUBDIR += phototonic SUBDIR += php-facedetect SUBDIR += php-geos SUBDIR += php80-exif SUBDIR += php80-gd SUBDIR += php81-exif SUBDIR += php81-gd SUBDIR += php82-exif SUBDIR += php82-gd SUBDIR += php83-exif SUBDIR += php83-gd SUBDIR += phplot SUBDIR += picpuz SUBDIR += piddle SUBDIR += piglit SUBDIR += pikchr SUBDIR += pikopixel SUBDIR += pinpoint SUBDIR += pinta SUBDIR += pixd SUBDIR += pixelize SUBDIR += pixen SUBDIR += pixie SUBDIR += plasma-kmod SUBDIR += plotutils SUBDIR += png SUBDIR += png++ SUBDIR += png2html SUBDIR += png2ico SUBDIR += pngcheck SUBDIR += pngcrush SUBDIR += pnglite SUBDIR += pngnq SUBDIR += pngquant SUBDIR += pngrewrite SUBDIR += pngwriter SUBDIR += podofo + SUBDIR += podofo09 SUBDIR += polyclipping SUBDIR += poppler SUBDIR += poppler-data SUBDIR += poppler-glib SUBDIR += poppler-qt5 SUBDIR += poppler-qt6 SUBDIR += poppler-utils SUBDIR += potrace SUBDIR += povray-meta SUBDIR += povray36 SUBDIR += povray37 SUBDIR += povray38 SUBDIR += ppmcaption SUBDIR += ppminfo SUBDIR += ppsei SUBDIR += pqiv SUBDIR += preview SUBDIR += price SUBDIR += processing SUBDIR += proj SUBDIR += proj-data SUBDIR += pstoedit SUBDIR += ptex SUBDIR += py-ManimPango SUBDIR += py-OWSLib SUBDIR += py-PyOpenGL SUBDIR += py-PyOpenGL-accelerate SUBDIR += py-actdiag SUBDIR += py-altair SUBDIR += py-asciitree SUBDIR += py-beziers SUBDIR += py-blockdiag SUBDIR += py-blockdiagcontrib-cisco SUBDIR += py-box2d-py SUBDIR += py-cairo SUBDIR += py-cairocffi SUBDIR += py-cairosvg SUBDIR += py-cartopy SUBDIR += py-cogdumper SUBDIR += py-colorcet SUBDIR += py-colorthief SUBDIR += py-colorz SUBDIR += py-colour SUBDIR += py-descartes SUBDIR += py-django-easy-thumbnails SUBDIR += py-djvulibre SUBDIR += py-exifread SUBDIR += py-f3d SUBDIR += py-face_recognition SUBDIR += py-face_recognition_models SUBDIR += py-fiona SUBDIR += py-fotokilof SUBDIR += py-freeimagepy SUBDIR += py-fury SUBDIR += py-gdal SUBDIR += py-geomdl SUBDIR += py-geopandas SUBDIR += py-giddy SUBDIR += py-gizeh SUBDIR += py-glcontext SUBDIR += py-glfw SUBDIR += py-glooey SUBDIR += py-gphoto2 SUBDIR += py-gprof2dot SUBDIR += py-graphlib-backport SUBDIR += py-graphviz SUBDIR += py-graphy SUBDIR += py-gvgen SUBDIR += py-h3 SUBDIR += py-haishoku SUBDIR += py-hiplot SUBDIR += py-imageio SUBDIR += py-imageio-ffmpeg SUBDIR += py-imagesize SUBDIR += py-img2pdf SUBDIR += py-leather SUBDIR += py-lerc SUBDIR += py-mapclassify SUBDIR += py-mayavi SUBDIR += py-mcomix SUBDIR += py-mgwr SUBDIR += py-ming SUBDIR += py-moderngl SUBDIR += py-moderngl-window SUBDIR += py-momepy SUBDIR += py-mpl-interactions SUBDIR += py-mpl-scatter-density SUBDIR += py-nwdiag SUBDIR += py-opencolorio SUBDIR += py-openimageio SUBDIR += py-openshadinglanguage SUBDIR += py-openslide-python SUBDIR += py-optimize-images SUBDIR += py-osmnet SUBDIR += py-pandana SUBDIR += py-photocollage SUBDIR += py-piexif SUBDIR += py-pillow SUBDIR += py-pivy SUBDIR += py-plotly SUBDIR += py-png SUBDIR += py-pointpats SUBDIR += py-projpicker SUBDIR += py-pycha SUBDIR += py-pycollada SUBDIR += py-pydot SUBDIR += py-pydotplus SUBDIR += py-pyepsg SUBDIR += py-pygal SUBDIR += py-pyganim SUBDIR += py-pygeoapi SUBDIR += py-pygeos SUBDIR += py-pyglet SUBDIR += py-pyglet1 SUBDIR += py-pygltflib SUBDIR += py-pygraph SUBDIR += py-pygraphviz SUBDIR += py-pyinsane2 SUBDIR += py-pymaging SUBDIR += py-pymaging-png SUBDIR += py-pyocr SUBDIR += py-pypillowfight SUBDIR += py-pyproj SUBDIR += py-pyqrcode SUBDIR += py-pyqtgraph SUBDIR += py-pyrsgis SUBDIR += py-pytesseract SUBDIR += py-python-barcode SUBDIR += py-python-poppler-qt5 SUBDIR += py-pyvips SUBDIR += py-pyvista SUBDIR += py-pyx SUBDIR += py-qpageview SUBDIR += py-qrencode SUBDIR += py-railroad-diagrams SUBDIR += py-rasterio SUBDIR += py-rasterstats SUBDIR += py-rawkit SUBDIR += py-s2 SUBDIR += py-scikit-image SUBDIR += py-seqdiag SUBDIR += py-sorl-thumbnail SUBDIR += py-spectra SUBDIR += py-sqlalchemy-imageattach SUBDIR += py-svg.path SUBDIR += py-svgwrite SUBDIR += py-termtosvg SUBDIR += py-tifffile SUBDIR += py-tkcolorpicker SUBDIR += py-toyplot SUBDIR += py-traitsui SUBDIR += py-ueberzug SUBDIR += py-urbanaccess SUBDIR += py-urbansim SUBDIR += py-utm SUBDIR += py-vecrec SUBDIR += py-visvis SUBDIR += py-wand SUBDIR += py-webcolors SUBDIR += py-willow SUBDIR += py-yaswfp SUBDIR += py-zbar-py SUBDIR += pywal SUBDIR += qcomicbook SUBDIR += qcustomplot-qt5 SUBDIR += qgis SUBDIR += qgis-ltr SUBDIR += qiv SUBDIR += qr-code-generator SUBDIR += qt5-3d SUBDIR += qt5-graphicaleffects SUBDIR += qt5-imageformats SUBDIR += qt5-opengl SUBDIR += qt5-pixeltool SUBDIR += qt5-svg SUBDIR += qt5-wayland SUBDIR += qt6-3d SUBDIR += qt6-imageformats SUBDIR += qt6-lottie SUBDIR += qt6-svg SUBDIR += qt6-wayland SUBDIR += qtawesome SUBDIR += qtpbfimageplugin SUBDIR += qtqr SUBDIR += quat SUBDIR += quat-gui SUBDIR += quesa SUBDIR += quesoglc SUBDIR += quickqanava SUBDIR += qvge SUBDIR += qview SUBDIR += radius-engine SUBDIR += rapid-photo-downloader SUBDIR += raster3d SUBDIR += rawstudio SUBDIR += rawtherapee SUBDIR += rayshade SUBDIR += reactphysics3d SUBDIR += realesrgan-ncnn-vulkan SUBDIR += reallyslick SUBDIR += realsr-ncnn-vulkan SUBDIR += recastnavigation SUBDIR += recoverjpeg SUBDIR += renrot SUBDIR += repng2jpeg SUBDIR += resvg SUBDIR += resvg-capi SUBDIR += rgbpaint SUBDIR += rigsofrods-caelum SUBDIR += rigsofrods-pagedgeometry SUBDIR += ristretto SUBDIR += rlottie SUBDIR += ruby-gd SUBDIR += rubygem-blurhash SUBDIR += rubygem-cairo SUBDIR += rubygem-captcha SUBDIR += rubygem-chunky_png SUBDIR += rubygem-clutter SUBDIR += rubygem-clutter-gdk SUBDIR += rubygem-clutter-gtk SUBDIR += rubygem-dragonfly SUBDIR += rubygem-emoji SUBDIR += rubygem-exifr SUBDIR += rubygem-ezprint SUBDIR += rubygem-fastimage SUBDIR += rubygem-flamegraph SUBDIR += rubygem-gd2 SUBDIR += rubygem-gdk_pixbuf2 SUBDIR += rubygem-gemojione SUBDIR += rubygem-gemojione32 SUBDIR += rubygem-geokit SUBDIR += rubygem-gitlab_emoji SUBDIR += rubygem-gruff SUBDIR += rubygem-histogram SUBDIR += rubygem-image_processing SUBDIR += rubygem-image_science SUBDIR += rubygem-imagesize SUBDIR += rubygem-invisible_captcha SUBDIR += rubygem-mini_magick SUBDIR += rubygem-mini_magick410 SUBDIR += rubygem-opengl SUBDIR += rubygem-pdfkit SUBDIR += rubygem-png SUBDIR += rubygem-railroad SUBDIR += rubygem-red-colors SUBDIR += rubygem-rmagick SUBDIR += rubygem-rsvg2 SUBDIR += rubygem-ruby-graphviz SUBDIR += rubygem-ruby-vips SUBDIR += rubygem-scruffy SUBDIR += rubygem-tanuki_emoji SUBDIR += rx SUBDIR += s10sh SUBDIR += s2 SUBDIR += s2tc SUBDIR += sage SUBDIR += sam2p SUBDIR += sampleicc SUBDIR += sane-airscan SUBDIR += sane-backends SUBDIR += sane-epkowa SUBDIR += scale2x SUBDIR += scantailor SUBDIR += scr2png SUBDIR += scrot SUBDIR += scwm-icons SUBDIR += sdl2_gfx SUBDIR += sdl2_gpu SUBDIR += sdl2_image SUBDIR += sdl2_ttf SUBDIR += sdl_gfx SUBDIR += sdl_image SUBDIR += sdl_ttf SUBDIR += sdump SUBDIR += seejpeg SUBDIR += seexpr SUBDIR += sekrit-twc-zimg SUBDIR += seom SUBDIR += separate SUBDIR += seq2gif SUBDIR += shaderc SUBDIR += shared-color-profiles SUBDIR += sharpconstruct SUBDIR += shotwell SUBDIR += showimage SUBDIR += silgraphite SUBDIR += simage SUBDIR += simple-scan SUBDIR += simpleitk SUBDIR += simpleviewer SUBDIR += skanlite SUBDIR += skanpage SUBDIR += spectacle SUBDIR += spirv-tools SUBDIR += springgraph SUBDIR += squish SUBDIR += ssocr SUBDIR += sswf SUBDIR += stamp SUBDIR += svg2pdf SUBDIR += svg2png SUBDIR += svgalib SUBDIR += svgbob SUBDIR += swappy SUBDIR += swfmill SUBDIR += swftools SUBDIR += synaesthesia SUBDIR += synfig SUBDIR += synfigstudio SUBDIR += tachyon SUBDIR += telak SUBDIR += tesseract SUBDIR += tesseract-data SUBDIR += tgif SUBDIR += tif22pnm SUBDIR += tiff SUBDIR += tiffgt SUBDIR += tifmerge SUBDIR += tikzit SUBDIR += tiled SUBDIR += timeless SUBDIR += timg SUBDIR += tintfu SUBDIR += tinyows SUBDIR += tippecanoe SUBDIR += tkpng SUBDIR += togl SUBDIR += tslib SUBDIR += ttygif SUBDIR += ttyplot SUBDIR += tumble SUBDIR += tweeny SUBDIR += ufraw SUBDIR += unpaper SUBDIR += upscaler SUBDIR += urho3d SUBDIR += urt SUBDIR += vapoursynth-fmtconv SUBDIR += vapoursynth-waifu2x-ncnn-vulkan SUBDIR += vapoursynth-waifu2x-w2xc SUBDIR += variety SUBDIR += vcg SUBDIR += viewnior SUBDIR += vigra SUBDIR += vips SUBDIR += visprint SUBDIR += viu SUBDIR += vkd3d SUBDIR += volpack SUBDIR += vp SUBDIR += vpaint SUBDIR += vulkan-caps-viewer SUBDIR += vulkan-extension-layer SUBDIR += vulkan-headers SUBDIR += vulkan-loader SUBDIR += vulkan-tools SUBDIR += vulkan-validation-layers SUBDIR += vv SUBDIR += waffle SUBDIR += waifu2x-converter-cpp SUBDIR += waifu2x-ncnn-vulkan SUBDIR += wayland SUBDIR += wayland-protocols SUBDIR += wayland-utils SUBDIR += waylandpp SUBDIR += wdune SUBDIR += webp SUBDIR += webp-pixbuf-loader SUBDIR += wings SUBDIR += wmicons SUBDIR += wrapland SUBDIR += wxsvg SUBDIR += xaos SUBDIR += xbmbrowser SUBDIR += xcftools SUBDIR += xd3d SUBDIR += xdgagrab SUBDIR += xfig SUBDIR += xfpovray SUBDIR += xfractint SUBDIR += xglurbules SUBDIR += xgrasp SUBDIR += xli SUBDIR += xmedcon SUBDIR += xmlgraphics-commons SUBDIR += xmountains SUBDIR += xnview SUBDIR += xoris SUBDIR += xournal SUBDIR += xournalpp SUBDIR += xpaint SUBDIR += xpdf SUBDIR += xpdf3 SUBDIR += xpdf4 SUBDIR += xpeps SUBDIR += xpx SUBDIR += xsane SUBDIR += xsvg SUBDIR += xtexcad SUBDIR += xv SUBDIR += xv-m17n SUBDIR += xviewer SUBDIR += xwpick SUBDIR += xzgv SUBDIR += yacreader SUBDIR += yafaray SUBDIR += yed SUBDIR += yukon SUBDIR += zathura SUBDIR += zathura-cb SUBDIR += zathura-djvu SUBDIR += zathura-pdf-mupdf SUBDIR += zathura-pdf-poppler SUBDIR += zathura-ps SUBDIR += zbar SUBDIR += zgv SUBDIR += zimg SUBDIR += zint SUBDIR += zphoto .include diff --git a/graphics/podofo/Makefile b/graphics/podofo/Makefile index a4ed11511d01..99b070c65bce 100644 --- a/graphics/podofo/Makefile +++ b/graphics/podofo/Makefile @@ -1,49 +1,53 @@ PORTNAME= podofo -PORTVERSION= 0.9.8 -PORTREVISION= 1 +PORTVERSION= 0.10.0 CATEGORIES= graphics print -MASTER_SITES= SF MAINTAINER= sunpoet@FreeBSD.org COMMENT= PDF manipulation library and tools WWW= https://podofo.sourceforge.net/ \ https://github.com/podofo/podofo -LICENSE= GPLv2 LGPL21 -LICENSE_COMB= multi +LICENSE= LGPL20 +LICENSE_FILE= ${WRKSRC}/COPYING +BUILD_DEPENDS= fast_float>=0:math/fast_float \ + hhdate>=0:devel/hhdate \ + libfmt>=0:devel/libfmt \ + utf8cpp>=0:devel/utf8cpp LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libidn.so:dns/libidn -USES= cmake compiler:c++11-lang cpe dos2unix pkgconfig ssl +USES= cmake compiler:c++17-lang cpe gnome localbase:ldflags pkgconfig ssl +USE_GNOME= libxml2 +CFLAGS+= -I${LOCALBASE}/include/fast_float CMAKE_ARGS= -DFONTCONFIG_LIBRARIES=${LOCALBASE}/lib/libfontconfig.so \ -DOPENSSL_INCLUDE_DIR=${OPENSSLINC} \ -DOPENSSL_LIBRARIES=${OPENSSLDIR} -CMAKE_ON= PODOFO_BUILD_SHARED PODOFO_BUILD_STATIC +CMAKE_OFF= PODOFO_BUILD_EXAMPLES PODOFO_BUILD_LIB_ONLY PODOFO_BUILD_STATIC PODOFO_BUILD_TEST PODOFO_BUILD_TOOLS +CMAKE_TESTING_ON= PODOFO_BUILD_TEST USE_LDCONFIG= yes -CPE_VENDOR= podofo_project +USE_GITHUB= yes -DOS2UNIX_FILES= cmake/modules/FindFREETYPE.cmake +CPE_VENDOR= podofo_project -OPTIONS_DEFINE= IMPOSE JPEG PNG TIFF UNISTRING -OPTIONS_DEFAULT=JPEG PNG TIFF UNISTRING -IMPOSE_DESC= Build impose tool (Lua required) -UNISTRING_DESC= Use libunistring for conversion +OPTIONS_DEFINE= JPEG PNG TIFF +OPTIONS_DEFAULT=JPEG PNG TIFF -IMPOSE_CMAKE_BOOL= WANT_LUA -IMPOSE_CXXFLAGS= -I${LUA_INCDIR} -IMPOSE_LDFLAGS= -L${LUA_LIBDIR} -IMPOSE_USES= lua JPEG_CMAKE_BOOL= WANT_LIBJPEG JPEG_USES= jpeg PNG_CMAKE_BOOL= WANT_PNG PNG_LIB_DEPENDS= libpng.so:graphics/png TIFF_CMAKE_BOOL= WANT_TIFF TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff -UNISTRING_CMAKE_BOOL= WANT_UNISTRING -UNISTRING_LIB_DEPENDS= libunistring.so:devel/libunistring + +post-patch: +# Clean up bundled libraries + @${RM} ${WRKSRC}/3rdparty/fast_float.h + @${RM} -r ${WRKSRC}/3rdparty/date/ + @${RM} -r ${WRKSRC}/3rdparty/fmt/ + @${RM} -r ${WRKSRC}/3rdparty/utfcpp/ .include diff --git a/graphics/podofo/distinfo b/graphics/podofo/distinfo index 1a0b2c2472c9..429ff9e8f512 100644 --- a/graphics/podofo/distinfo +++ b/graphics/podofo/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1652122561 -SHA256 (podofo-0.9.8.tar.gz) = 5de607e15f192b8ad90738300759d88dea0f5ccdce3bf00048a0c932bc645154 -SIZE (podofo-0.9.8.tar.gz) = 1012918 +TIMESTAMP = 1685219099 +SHA256 (podofo-podofo-0.10.0_GH0.tar.gz) = c9bf607fe4862b5cc6eac1754f0e39674c553350e8bbde68f5fff3e3eb2ed4bc +SIZE (podofo-podofo-0.10.0_GH0.tar.gz) = 1660970 diff --git a/graphics/podofo/files/patch-CMakeLists.txt b/graphics/podofo/files/patch-CMakeLists.txt index 4e57653dc3ff..bb895715b2e1 100644 --- a/graphics/podofo/files/patch-CMakeLists.txt +++ b/graphics/podofo/files/patch-CMakeLists.txt @@ -1,77 +1,47 @@ ---- CMakeLists.txt.orig 2022-05-03 12:18:23 UTC +--- CMakeLists.txt.orig 2023-03-25 11:01:27 UTC +++ CMakeLists.txt -@@ -348,6 +348,7 @@ ELSE(LIBIDN_FOUND) - MESSAGE("Libidn not found. AES-256 Encryption support will be disabled") - ENDIF(LIBIDN_FOUND) - -+IF(WANT_LIBJPEG) - FIND_PACKAGE(LIBJPEG) - - IF(LIBJPEG_FOUND) -@@ -357,7 +358,9 @@ IF(LIBJPEG_FOUND) - ELSE(LIBJPEG_FOUND) - MESSAGE("Libjpeg not found. JPEG support will be disabled") - ENDIF(LIBJPEG_FOUND) -+ENDIF(WANT_LIBJPEG) - -+IF(WANT_TIFF) - FIND_PACKAGE(TIFF) - - IF(TIFF_FOUND) -@@ -367,7 +370,9 @@ IF(TIFF_FOUND) - ELSE(TIFF_FOUND) - MESSAGE("Libtiff not found. TIFF support will be disabled") - ENDIF(TIFF_FOUND) -+ENDIF(WANT_TIFF) - -+IF(WANT_PNG) - FIND_PACKAGE(PNG) - - IF(PNG_FOUND) -@@ -378,7 +383,9 @@ ELSE(PNG_FOUND) - MESSAGE("LibPng not found. PNG support will be disabled") - SET(PNG_LIBRARIES "") - ENDIF(PNG_FOUND) -+ENDIF(WANT_PNG) - -+IF(WANT_UNISTRING) - FIND_PACKAGE(UNISTRING) - - IF(UNISTRING_FOUND) -@@ -389,10 +396,12 @@ ELSE(UNISTRING_FOUND) - MESSAGE("LibUnistring not found. Unistring support will be disabled") - SET(UNISTRING_LIBRARY "") - ENDIF(UNISTRING_FOUND) -+ENDIF(WANT_UNISTRING) - - - IF(NOT PODOFO_BUILD_LIB_ONLY) - -+IF(WANT_CppUnit) - FIND_PACKAGE(CppUnit) - - IF(CppUnit_FOUND) -@@ -402,6 +411,7 @@ IF(CppUnit_FOUND) - ELSE(CppUnit_FOUND) - MESSAGE("Cppunit not found. No unit tests will be built.") - ENDIF(CppUnit_FOUND) -+ENDIF(WANT_CppUnit) - - ENDIF(NOT PODOFO_BUILD_LIB_ONLY) - -@@ -442,6 +452,7 @@ ELSE(WANT_FONTCONFIG) - ENDIF(WANT_FONTCONFIG) - - IF(NOT PODOFO_BUILD_LIB_ONLY) -+IF(WANT_LUA) - FIND_PACKAGE(LUA) - IF(LUA_FOUND) - # If we have lua, we can build podofoimpose. -@@ -453,6 +464,7 @@ IF(LUA_FOUND) - ELSE(LUA_FOUND) - MESSAGE("Lua not found - PoDoFoImpose and PoDoFoColor will be built without Lua support") - ENDIF(LUA_FOUND) -+ENDIF(WANT_LUA) - ENDIF(NOT PODOFO_BUILD_LIB_ONLY) - - +@@ -21,7 +21,7 @@ set(PODOFO_VERSION_PATCH "0" CACHE STRING "Patchlevel + set(PODOFO_VERSION_MAJOR "0" CACHE STRING "Major part of podofo version number") + set(PODOFO_VERSION_MINOR "10" CACHE STRING "Minor part of podofo version number") + set(PODOFO_VERSION_PATCH "0" CACHE STRING "Patchlevel part of podofo version number") +-set(PODOFO_LIBVERSION "${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}") ++set(PODOFO_LIBVERSION "1.${PODOFO_VERSION_MAJOR}.${PODOFO_VERSION_MINOR}.${PODOFO_VERSION_PATCH}") + set(PODOFO_SOVERSION "1") + + # +@@ -149,6 +149,7 @@ endif() + message("Libidn not found. AES-256 Encryption support will be disabled") + endif() + ++if(WANT_LIBJPEG) + find_package(JPEG) + + if(JPEG_FOUND) +@@ -157,7 +158,9 @@ endif() + else() + message("Libjpeg not found. JPEG support will be disabled") + endif() ++endif() + ++if(WANT_TIFF) + find_package(TIFF) + + if(TIFF_FOUND) +@@ -166,7 +169,9 @@ endif() + else() + message("Libtiff not found. TIFF support will be disabled") + endif() ++endif() + ++if(WANT_PNG) + find_package(PNG) + + if(PNG_FOUND) +@@ -175,6 +180,7 @@ else() + else() + message("LibPng not found. PNG support will be disabled") + set(PNG_LIBRARIES "") ++endif() + endif() + + find_package(Freetype REQUIRED) diff --git a/graphics/podofo/files/patch-src-podofo-CMakeLists.txt b/graphics/podofo/files/patch-src-podofo-CMakeLists.txt deleted file mode 100644 index 8302365d68ee..000000000000 --- a/graphics/podofo/files/patch-src-podofo-CMakeLists.txt +++ /dev/null @@ -1,33 +0,0 @@ ---- src/podofo/CMakeLists.txt.orig 2020-03-27 16:13:28 UTC -+++ src/podofo/CMakeLists.txt -@@ -265,8 +265,8 @@ IF(PODOFO_BUILD_STATIC) - ADD_LIBRARY(podofo_static STATIC ${PODOFO_BASE_SOURCES} ${PODOFO_DOC_SOURCES} ${PODOFO_HEADER_FILES}) - TARGET_LINK_LIBRARIES(podofo_static ${PODOFO_LIB_DEPENDS}) - SET_TARGET_PROPERTIES(podofo_static PROPERTIES -- VERSION "${PODOFO_LIBVERSION}" -- SOVERSION "${PODOFO_SOVERSION}" -+ VERSION "0" -+ SOVERSION "0" - CLEAN_DIRECT_OUTPUT 1 - OUTPUT_NAME "podofo" - COMPILE_FLAGS "-DBUILDING_PODOFO" -@@ -289,8 +289,8 @@ IF(PODOFO_BUILD_SHARED) - # Visual Studio, since it produces invalid warnings about STL - # use. - SET_TARGET_PROPERTIES(podofo_shared PROPERTIES -- VERSION "${PODOFO_LIBVERSION}" -- SOVERSION "${PODOFO_SOVERSION}" -+ VERSION "0" -+ SOVERSION "0" - CLEAN_DIRECT_OUTPUT 1 - OUTPUT_NAME "podofo" - COMPILE_FLAGS "-DBUILDING_PODOFO" -@@ -320,7 +320,7 @@ IF(PODOFO_BUILD_SHARED) - @ONLY) - INSTALL( - FILES "${PoDoFo_BINARY_DIR}/libpodofo.pc" -- DESTINATION "${LIBDIRNAME}/pkgconfig") -+ DESTINATION "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig") - ELSE(PKG_CONFIG_FOUND) - MESSAGE("Pkg-config not found. No pkg-config file will be created.") - ENDIF(PKG_CONFIG_FOUND) diff --git a/graphics/podofo/files/patch-utf8cpp b/graphics/podofo/files/patch-utf8cpp new file mode 100644 index 000000000000..5788189e8fe5 --- /dev/null +++ b/graphics/podofo/files/patch-utf8cpp @@ -0,0 +1,176 @@ +--- src/podofo/main/PdfCMapEncoding.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfCMapEncoding.cpp +@@ -7,7 +7,7 @@ + #include + #include "PdfCMapEncoding.h" + +-#include ++#include + + #include "PdfDictionary.h" + #include "PdfObjectStream.h" +--- src/podofo/main/PdfCharCodeMap.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfCharCodeMap.cpp +@@ -8,7 +8,7 @@ + #include "PdfCharCodeMap.h" + #include + #include +-#include ++#include + + using namespace std; + using namespace PoDoFo; +--- src/podofo/main/PdfDifferenceEncoding.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfDifferenceEncoding.cpp +@@ -9,7 +9,7 @@ + + #include + +-#include ++#include + #include + + #include "PdfArray.h" +--- src/podofo/main/PdfEncoding.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfEncoding.cpp +@@ -8,7 +8,7 @@ + #include "PdfEncoding.h" + + #include +-#include ++#include + + #include + +--- src/podofo/main/PdfEncodingMap.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfEncodingMap.cpp +@@ -7,7 +7,7 @@ + #include + #include "PdfEncodingMap.h" + +-#include ++#include + + #include "PdfDictionary.h" + #include "PdfCMapEncoding.h" +--- src/podofo/main/PdfFont.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfFont.cpp +@@ -7,7 +7,7 @@ + #include + #include "PdfFont.h" + +-#include ++#include + + #include + #include +--- src/podofo/main/PdfFontManager.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfFontManager.cpp +@@ -16,7 +16,7 @@ + + #include + #include FT_TRUETYPE_TABLES_H +-#include ++#include + + #include "PdfDictionary.h" + #include +--- src/podofo/main/PdfFontType1.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfFontType1.cpp +@@ -7,7 +7,7 @@ + #include + #include "PdfFontType1.h" + +-#include ++#include + + #include + #include "PdfArray.h" +--- src/podofo/main/PdfIdentityEncoding.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfIdentityEncoding.cpp +@@ -7,7 +7,7 @@ + #include + #include "PdfIdentityEncoding.h" + +-#include ++#include + + #include "PdfDictionary.h" + #include "PdfFont.h" +--- src/podofo/main/PdfImage.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfImage.cpp +@@ -13,7 +13,7 @@ extern "C" { + } + #endif // PODOFO_HAVE_TIFF_LIB + +-#include ++#include + + #include + #include +--- src/podofo/main/PdfPage_TextExtraction.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfPage_TextExtraction.cpp +@@ -11,7 +11,7 @@ + #include + #include + +-#include ++#include + + #include "PdfDocument.h" + #include "PdfTextState.h" +--- src/podofo/main/PdfPainter.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfPainter.cpp +@@ -9,7 +9,7 @@ + + #include + +-#include ++#include + + #include "PdfExtGState.h" + #include "PdfFont.h" +--- src/podofo/main/PdfString.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/main/PdfString.cpp +@@ -7,7 +7,7 @@ + #include + #include "PdfString.h" + +-#include ++#include + + #include + +--- src/podofo/private/PdfEncodingPrivate.cpp.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/private/PdfEncodingPrivate.cpp +@@ -7,7 +7,7 @@ + #include "PdfDeclarationsPrivate.h" + #include "PdfEncodingPrivate.h" + +-#include ++#include + + using namespace std; + using namespace PoDoFo; +--- src/podofo/private/utfcpp_extensions.h.orig 2023-03-25 11:01:27 UTC ++++ src/podofo/private/utfcpp_extensions.h +@@ -3,7 +3,7 @@ + + #include + #include +-#include ++#include + + namespace utf8 + { +--- test/common/PdfTest.cpp.orig 2023-03-25 11:01:27 UTC ++++ test/common/PdfTest.cpp +@@ -8,7 +8,7 @@ + + #include "PdfTest.h" + +-#include ++#include + + using namespace std; + using namespace PoDoFo; diff --git a/graphics/podofo/pkg-plist b/graphics/podofo/pkg-plist index 91553156fea3..a3eafb891f41 100644 --- a/graphics/podofo/pkg-plist +++ b/graphics/podofo/pkg-plist @@ -1,147 +1,149 @@ -bin/podofobox -bin/podofocolor -bin/podofocountpages -bin/podofocrop -bin/podofoencrypt -bin/podofogc -bin/podofoimg2pdf -bin/podofoimgextract -bin/podofoimpose -bin/podofoincrementalupdates -bin/podofomerge -bin/podofonooc -bin/podofopages -bin/podofopdfinfo -bin/podofosign -bin/podofotxt2pdf -bin/podofotxtextract -bin/podofouncompress -bin/podofoxmp -include/podofo/base/Pdf3rdPtyForwardDecl.h -include/podofo/base/PdfArray.h -include/podofo/base/PdfCanvas.h -include/podofo/base/PdfColor.h -include/podofo/base/PdfCompilerCompat.h -include/podofo/base/PdfCompilerCompatPrivate.h -include/podofo/base/PdfContentsTokenizer.h -include/podofo/base/PdfData.h -include/podofo/base/PdfDataType.h -include/podofo/base/PdfDate.h -include/podofo/base/PdfDefines.h -include/podofo/base/PdfDefinesPrivate.h -include/podofo/base/PdfDictionary.h -include/podofo/base/PdfEncoding.h -include/podofo/base/PdfEncodingFactory.h -include/podofo/base/PdfEncrypt.h -include/podofo/base/PdfError.h -include/podofo/base/PdfExtension.h -include/podofo/base/PdfFileStream.h -include/podofo/base/PdfFilter.h -include/podofo/base/PdfFiltersPrivate.h -include/podofo/base/PdfImmediateWriter.h -include/podofo/base/PdfInputDevice.h -include/podofo/base/PdfInputStream.h -include/podofo/base/PdfLocale.h -include/podofo/base/PdfMemStream.h -include/podofo/base/PdfMemoryManagement.h -include/podofo/base/PdfName.h -include/podofo/base/PdfObject.h -include/podofo/base/PdfObjectStreamParserObject.h -include/podofo/base/PdfOutputDevice.h -include/podofo/base/PdfOutputStream.h -include/podofo/base/PdfOwnedDataType.h -include/podofo/base/PdfParser.h -include/podofo/base/PdfParserObject.h -include/podofo/base/PdfRect.h -include/podofo/base/PdfRefCountedBuffer.h -include/podofo/base/PdfRefCountedInputDevice.h -include/podofo/base/PdfReference.h -include/podofo/base/PdfStream.h -include/podofo/base/PdfString.h -include/podofo/base/PdfTokenizer.h -include/podofo/base/PdfVariant.h -include/podofo/base/PdfVecObjects.h -include/podofo/base/PdfVersion.h -include/podofo/base/PdfWriter.h -include/podofo/base/PdfXRef.h -include/podofo/base/PdfXRefStream.h -include/podofo/base/PdfXRefStreamParserObject.h -include/podofo/base/podofo_config.h -include/podofo/base/podofoapi.h -include/podofo/base/util/PdfMutex.h -include/podofo/base/util/PdfMutexImpl_noop.h -include/podofo/base/util/PdfMutexImpl_pthread.h -include/podofo/base/util/PdfMutexImpl_win32.h -include/podofo/base/util/PdfMutexWrapper.h -include/podofo/doc/PdfAcroForm.h -include/podofo/doc/PdfAction.h -include/podofo/doc/PdfAnnotation.h -include/podofo/doc/PdfCMapEncoding.h -include/podofo/doc/PdfContents.h -include/podofo/doc/PdfDestination.h -include/podofo/doc/PdfDifferenceEncoding.h -include/podofo/doc/PdfDocument.h -include/podofo/doc/PdfElement.h -include/podofo/doc/PdfEncodingObjectFactory.h -include/podofo/doc/PdfExtGState.h -include/podofo/doc/PdfField.h -include/podofo/doc/PdfFileSpec.h -include/podofo/doc/PdfFont.h -include/podofo/doc/PdfFontCID.h -include/podofo/doc/PdfFontCache.h -include/podofo/doc/PdfFontConfigWrapper.h -include/podofo/doc/PdfFontFactory.h -include/podofo/doc/PdfFontFactoryBase14Data.h -include/podofo/doc/PdfFontMetrics.h -include/podofo/doc/PdfFontMetricsBase14.h -include/podofo/doc/PdfFontMetricsFreetype.h -include/podofo/doc/PdfFontMetricsObject.h -include/podofo/doc/PdfFontSimple.h -include/podofo/doc/PdfFontTTFSubset.h -include/podofo/doc/PdfFontTrueType.h -include/podofo/doc/PdfFontType1.h -include/podofo/doc/PdfFontType1Base14.h -include/podofo/doc/PdfFontType3.h -include/podofo/doc/PdfFunction.h -include/podofo/doc/PdfHintStream.h -include/podofo/doc/PdfIdentityEncoding.h -include/podofo/doc/PdfImage.h -include/podofo/doc/PdfInfo.h -include/podofo/doc/PdfMemDocument.h -include/podofo/doc/PdfNamesTree.h -include/podofo/doc/PdfOutlines.h -include/podofo/doc/PdfPage.h -include/podofo/doc/PdfPagesTree.h -include/podofo/doc/PdfPagesTreeCache.h -include/podofo/doc/PdfPainter.h -include/podofo/doc/PdfPainterMM.h -include/podofo/doc/PdfShadingPattern.h -include/podofo/doc/PdfSignOutputDevice.h -include/podofo/doc/PdfSignatureField.h -include/podofo/doc/PdfStreamedDocument.h -include/podofo/doc/PdfTable.h -include/podofo/doc/PdfTilingPattern.h -include/podofo/doc/PdfXObject.h -include/podofo/podofo-base.h +include/podofo/auxiliary/EnumFlags.h +include/podofo/auxiliary/InputDevice.h +include/podofo/auxiliary/InputStream.h +include/podofo/auxiliary/MathBase.h +include/podofo/auxiliary/Matrix.h +include/podofo/auxiliary/OutputDevice.h +include/podofo/auxiliary/OutputStream.h +include/podofo/auxiliary/Rect.h +include/podofo/auxiliary/StateStack.h +include/podofo/auxiliary/StreamDevice.h +include/podofo/auxiliary/StreamDeviceBase.h +include/podofo/auxiliary/Vector2.h +include/podofo/auxiliary/Version.h +include/podofo/auxiliary/basecompat.h +include/podofo/auxiliary/basedefs.h +include/podofo/auxiliary/baseincludes.h +include/podofo/auxiliary/basetypes.h +include/podofo/auxiliary/nullable.h +include/podofo/auxiliary/podofo_config.h +include/podofo/auxiliary/span.h +include/podofo/auxiliary/span.hpp +include/podofo/main/PdfAcroForm.h +include/podofo/main/PdfAction.h +include/podofo/main/PdfAnnotation.h +include/podofo/main/PdfAnnotationActionBase.h +include/podofo/main/PdfAnnotationCollection.h +include/podofo/main/PdfAnnotationWidget.h +include/podofo/main/PdfAnnotation_Types.h +include/podofo/main/PdfArray.h +include/podofo/main/PdfButton.h +include/podofo/main/PdfCIDToGIDMap.h +include/podofo/main/PdfCMapEncoding.h +include/podofo/main/PdfCanvas.h +include/podofo/main/PdfCanvasInputDevice.h +include/podofo/main/PdfCatalog.h +include/podofo/main/PdfCharCodeMap.h +include/podofo/main/PdfCheckBox.h +include/podofo/main/PdfChoiceField.h +include/podofo/main/PdfColor.h +include/podofo/main/PdfComboBox.h +include/podofo/main/PdfCommon.h +include/podofo/main/PdfContentStreamOperators.h +include/podofo/main/PdfContentStreamReader.h +include/podofo/main/PdfContents.h +include/podofo/main/PdfData.h +include/podofo/main/PdfDataContainer.h +include/podofo/main/PdfDataProvider.h +include/podofo/main/PdfDate.h +include/podofo/main/PdfDeclarations.h +include/podofo/main/PdfDestination.h +include/podofo/main/PdfDictionary.h +include/podofo/main/PdfDifferenceEncoding.h +include/podofo/main/PdfDocument.h +include/podofo/main/PdfElement.h +include/podofo/main/PdfEncoding.h +include/podofo/main/PdfEncodingCommon.h +include/podofo/main/PdfEncodingFactory.h +include/podofo/main/PdfEncodingMap.h +include/podofo/main/PdfEncodingMapFactory.h +include/podofo/main/PdfEncodingShim.h +include/podofo/main/PdfEncrypt.h +include/podofo/main/PdfError.h +include/podofo/main/PdfExtGState.h +include/podofo/main/PdfExtension.h +include/podofo/main/PdfField.h +include/podofo/main/PdfFieldChildrenCollection.h +include/podofo/main/PdfFileSpec.h +include/podofo/main/PdfFilter.h +include/podofo/main/PdfFont.h +include/podofo/main/PdfFontCID.h +include/podofo/main/PdfFontCIDTrueType.h +include/podofo/main/PdfFontCIDType1.h +include/podofo/main/PdfFontConfigWrapper.h +include/podofo/main/PdfFontManager.h +include/podofo/main/PdfFontMetrics.h +include/podofo/main/PdfFontMetricsFreetype.h +include/podofo/main/PdfFontMetricsObject.h +include/podofo/main/PdfFontMetricsStandard14.h +include/podofo/main/PdfFontObject.h +include/podofo/main/PdfFontSimple.h +include/podofo/main/PdfFontTrueType.h +include/podofo/main/PdfFontTrueTypeSubset.h +include/podofo/main/PdfFontType1.h +include/podofo/main/PdfFontType3.h +include/podofo/main/PdfGraphicsState.h +include/podofo/main/PdfIdentityEncoding.h +include/podofo/main/PdfImage.h +include/podofo/main/PdfImmediateWriter.h +include/podofo/main/PdfIndirectObjectList.h +include/podofo/main/PdfInfo.h +include/podofo/main/PdfListBox.h +include/podofo/main/PdfMath.h +include/podofo/main/PdfMemDocument.h +include/podofo/main/PdfMemoryObjectStream.h +include/podofo/main/PdfMetadata.h +include/podofo/main/PdfName.h +include/podofo/main/PdfNameTree.h +include/podofo/main/PdfObject.h +include/podofo/main/PdfObjectStream.h +include/podofo/main/PdfObjectStreamParser.h +include/podofo/main/PdfObjectStreamProvider.h +include/podofo/main/PdfOperatorUtils.h +include/podofo/main/PdfOutlines.h +include/podofo/main/PdfPage.h +include/podofo/main/PdfPageCollection.h +include/podofo/main/PdfPageTreeCache.h +include/podofo/main/PdfPainter.h +include/podofo/main/PdfPainterPath.h +include/podofo/main/PdfPainterTextObject.h +include/podofo/main/PdfParser.h +include/podofo/main/PdfParserObject.h +include/podofo/main/PdfPostScriptTokenizer.h +include/podofo/main/PdfPredefinedEncoding.h +include/podofo/main/PdfPushButton.h +include/podofo/main/PdfRadioButton.h +include/podofo/main/PdfReference.h +include/podofo/main/PdfResources.h +include/podofo/main/PdfSignature.h +include/podofo/main/PdfSigner.h +include/podofo/main/PdfStatefulEncrypt.h +include/podofo/main/PdfStreamedDocument.h +include/podofo/main/PdfStreamedObjectStream.h +include/podofo/main/PdfString.h +include/podofo/main/PdfStringStream.h +include/podofo/main/PdfTextBox.h +include/podofo/main/PdfTextState.h +include/podofo/main/PdfTokenizer.h +include/podofo/main/PdfTrailer.h +include/podofo/main/PdfVariant.h +include/podofo/main/PdfVariantStack.h +include/podofo/main/PdfWriter.h +include/podofo/main/PdfXMPMetadata.h +include/podofo/main/PdfXMPPacket.h +include/podofo/main/PdfXObject.h +include/podofo/main/PdfXObjectForm.h +include/podofo/main/PdfXObjectPostScript.h +include/podofo/main/PdfXRef.h +include/podofo/main/PdfXRefEntry.h +include/podofo/main/PdfXRefStream.h +include/podofo/main/PdfXRefStreamParserObject.h include/podofo/podofo.h -lib/libpodofo.a +include/podofo/staging/PdfFunction.h +include/podofo/staging/PdfPainterExtensions.h +include/podofo/staging/PdfShadingPattern.h +include/podofo/staging/PdfTilingPattern.h lib/libpodofo.so -lib/libpodofo.so.0 +lib/libpodofo.so.1 +lib/libpodofo.so.1.0.10.0 libdata/pkgconfig/libpodofo.pc -share/man/man1/podofobox.1.gz -share/man/man1/podofocolor.1.gz -share/man/man1/podofocountpages.1.gz -share/man/man1/podofocrop.1.gz -share/man/man1/podofoencrypt.1.gz -share/man/man1/podofogc.1.gz -share/man/man1/podofoimg2pdf.1.gz -share/man/man1/podofoimgextract.1.gz -share/man/man1/podofoimpose.1.gz -share/man/man1/podofoincrementalupdates.1.gz -share/man/man1/podofomerge.1.gz -share/man/man1/podofopages.1.gz -share/man/man1/podofopdfinfo.1.gz -share/man/man1/podofotxt2pdf.1.gz -share/man/man1/podofotxtextract.1.gz -share/man/man1/podofouncompress.1.gz -share/man/man1/podofoxmp.1.gz diff --git a/graphics/podofo/Makefile b/graphics/podofo09/Makefile similarity index 79% copy from graphics/podofo/Makefile copy to graphics/podofo09/Makefile index a4ed11511d01..20029886e4a1 100644 --- a/graphics/podofo/Makefile +++ b/graphics/podofo09/Makefile @@ -1,49 +1,58 @@ PORTNAME= podofo PORTVERSION= 0.9.8 PORTREVISION= 1 CATEGORIES= graphics print MASTER_SITES= SF +PKGNAMESUFFIX= 09 MAINTAINER= sunpoet@FreeBSD.org COMMENT= PDF manipulation library and tools WWW= https://podofo.sourceforge.net/ \ https://github.com/podofo/podofo LICENSE= GPLv2 LGPL21 LICENSE_COMB= multi LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libidn.so:dns/libidn USES= cmake compiler:c++11-lang cpe dos2unix pkgconfig ssl CMAKE_ARGS= -DFONTCONFIG_LIBRARIES=${LOCALBASE}/lib/libfontconfig.so \ -DOPENSSL_INCLUDE_DIR=${OPENSSLINC} \ -DOPENSSL_LIBRARIES=${OPENSSLDIR} CMAKE_ON= PODOFO_BUILD_SHARED PODOFO_BUILD_STATIC USE_LDCONFIG= yes CPE_VENDOR= podofo_project DOS2UNIX_FILES= cmake/modules/FindFREETYPE.cmake OPTIONS_DEFINE= IMPOSE JPEG PNG TIFF UNISTRING OPTIONS_DEFAULT=JPEG PNG TIFF UNISTRING IMPOSE_DESC= Build impose tool (Lua required) UNISTRING_DESC= Use libunistring for conversion IMPOSE_CMAKE_BOOL= WANT_LUA IMPOSE_CXXFLAGS= -I${LUA_INCDIR} IMPOSE_LDFLAGS= -L${LUA_LIBDIR} IMPOSE_USES= lua JPEG_CMAKE_BOOL= WANT_LIBJPEG JPEG_USES= jpeg PNG_CMAKE_BOOL= WANT_PNG PNG_LIB_DEPENDS= libpng.so:graphics/png TIFF_CMAKE_BOOL= WANT_TIFF TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff UNISTRING_CMAKE_BOOL= WANT_UNISTRING UNISTRING_LIB_DEPENDS= libunistring.so:devel/libunistring +post-patch: + @${REINPLACE_CMD} -e '/^#include/s|podofo/podofo.h|podofo09/podofo.h|' \ + ${WRKSRC}/examples/pdfcontentsgraph/PdfContentsGraph.h + @${REINPLACE_CMD} -e '/^#include/s|podofo/base|podofo09/base|' \ + ${WRKSRC}/src/podofo/doc/* \ + ${WRKSRC}/src/podofo/base/PdfExtension.h + @${RLN} ${WRKSRC}/src/podofo ${WRKSRC}/src/podofo09 + .include diff --git a/graphics/podofo/distinfo b/graphics/podofo09/distinfo similarity index 100% copy from graphics/podofo/distinfo copy to graphics/podofo09/distinfo diff --git a/graphics/podofo/files/patch-CMakeLists.txt b/graphics/podofo09/files/patch-CMakeLists.txt similarity index 68% copy from graphics/podofo/files/patch-CMakeLists.txt copy to graphics/podofo09/files/patch-CMakeLists.txt index 4e57653dc3ff..4cd36e1fdef6 100644 --- a/graphics/podofo/files/patch-CMakeLists.txt +++ b/graphics/podofo09/files/patch-CMakeLists.txt @@ -1,77 +1,91 @@ --- CMakeLists.txt.orig 2022-05-03 12:18:23 UTC +++ CMakeLists.txt -@@ -348,6 +348,7 @@ ELSE(LIBIDN_FOUND) +@@ -348,6 +348,7 @@ ENDIF(LIBIDN_FOUND) MESSAGE("Libidn not found. AES-256 Encryption support will be disabled") ENDIF(LIBIDN_FOUND) +IF(WANT_LIBJPEG) FIND_PACKAGE(LIBJPEG) IF(LIBJPEG_FOUND) -@@ -357,7 +358,9 @@ IF(LIBJPEG_FOUND) +@@ -357,7 +358,9 @@ ENDIF(LIBJPEG_FOUND) ELSE(LIBJPEG_FOUND) MESSAGE("Libjpeg not found. JPEG support will be disabled") ENDIF(LIBJPEG_FOUND) +ENDIF(WANT_LIBJPEG) +IF(WANT_TIFF) FIND_PACKAGE(TIFF) IF(TIFF_FOUND) -@@ -367,7 +370,9 @@ IF(TIFF_FOUND) +@@ -367,7 +370,9 @@ ENDIF(TIFF_FOUND) ELSE(TIFF_FOUND) MESSAGE("Libtiff not found. TIFF support will be disabled") ENDIF(TIFF_FOUND) +ENDIF(WANT_TIFF) +IF(WANT_PNG) FIND_PACKAGE(PNG) IF(PNG_FOUND) -@@ -378,7 +383,9 @@ ELSE(PNG_FOUND) +@@ -378,7 +383,9 @@ ENDIF(PNG_FOUND) MESSAGE("LibPng not found. PNG support will be disabled") SET(PNG_LIBRARIES "") ENDIF(PNG_FOUND) +ENDIF(WANT_PNG) +IF(WANT_UNISTRING) FIND_PACKAGE(UNISTRING) IF(UNISTRING_FOUND) -@@ -389,10 +396,12 @@ ELSE(UNISTRING_FOUND) +@@ -389,10 +396,12 @@ ENDIF(UNISTRING_FOUND) MESSAGE("LibUnistring not found. Unistring support will be disabled") SET(UNISTRING_LIBRARY "") ENDIF(UNISTRING_FOUND) +ENDIF(WANT_UNISTRING) IF(NOT PODOFO_BUILD_LIB_ONLY) +IF(WANT_CppUnit) FIND_PACKAGE(CppUnit) IF(CppUnit_FOUND) -@@ -402,6 +411,7 @@ IF(CppUnit_FOUND) +@@ -402,6 +411,7 @@ ENDIF(CppUnit_FOUND) ELSE(CppUnit_FOUND) MESSAGE("Cppunit not found. No unit tests will be built.") ENDIF(CppUnit_FOUND) +ENDIF(WANT_CppUnit) ENDIF(NOT PODOFO_BUILD_LIB_ONLY) -@@ -442,6 +452,7 @@ ELSE(WANT_FONTCONFIG) +@@ -442,6 +452,7 @@ IF(NOT PODOFO_BUILD_LIB_ONLY) ENDIF(WANT_FONTCONFIG) IF(NOT PODOFO_BUILD_LIB_ONLY) +IF(WANT_LUA) FIND_PACKAGE(LUA) IF(LUA_FOUND) # If we have lua, we can build podofoimpose. -@@ -453,6 +464,7 @@ IF(LUA_FOUND) +@@ -453,6 +464,7 @@ ENDIF(LUA_FOUND) ELSE(LUA_FOUND) MESSAGE("Lua not found - PoDoFoImpose and PoDoFoColor will be built without Lua support") ENDIF(LUA_FOUND) +ENDIF(WANT_LUA) ENDIF(NOT PODOFO_BUILD_LIB_ONLY) +@@ -527,11 +539,11 @@ IF(WIN32 OR PODOFO_BUILD_STATIC) + + IF(WIN32 OR PODOFO_BUILD_STATIC) + SET(PODOFO_LIB +- podofo ++ podofo09 + ${PODOFO_LIB_DEPENDS} + ) + ELSE(WIN32 OR PODOFO_BUILD_STATIC) +- SET(PODOFO_LIB podofo ++ SET(PODOFO_LIB podofo09 + ${stlport_libraries_if_use_stlport} + ) + ENDIF(WIN32 OR PODOFO_BUILD_STATIC) diff --git a/graphics/podofo/files/patch-cmake-modules-FindLua51.cmake b/graphics/podofo09/files/patch-cmake-modules-FindLua51.cmake similarity index 100% rename from graphics/podofo/files/patch-cmake-modules-FindLua51.cmake rename to graphics/podofo09/files/patch-cmake-modules-FindLua51.cmake diff --git a/graphics/podofo09/files/patch-src-podofo-CMakeLists.txt b/graphics/podofo09/files/patch-src-podofo-CMakeLists.txt new file mode 100644 index 000000000000..354d7a608bcf --- /dev/null +++ b/graphics/podofo09/files/patch-src-podofo-CMakeLists.txt @@ -0,0 +1,69 @@ +--- src/podofo/CMakeLists.txt.orig 2020-03-27 16:13:28 UTC ++++ src/podofo/CMakeLists.txt +@@ -241,19 +241,19 @@ INSTALL(FILES ${PODOFO_HEADERS} + SOURCE_GROUP("Header Files" FILES ${PODOFO_HEADER_FILES}) + + INSTALL(FILES ${PODOFO_HEADERS} +- DESTINATION "include/podofo" ++ DESTINATION "include/podofo09" + ) + + INSTALL(FILES ${PODOFO_BASE_HEADERS} +- DESTINATION "include/podofo/base" ++ DESTINATION "include/podofo09/base" + ) + + INSTALL(FILES ${PODOFO_BASE_HEADERS2} +- DESTINATION "include/podofo/base/util" ++ DESTINATION "include/podofo09/base/util" + ) + + INSTALL(FILES ${PODOFO_DOC_HEADERS} +- DESTINATION "include/podofo/doc" ++ DESTINATION "include/podofo09/doc" + ) + + IF(NOT PODOFO_BUILD_SHARED AND NOT PODOFO_BUILD_STATIC) +@@ -265,10 +265,10 @@ IF(PODOFO_BUILD_STATIC) + ADD_LIBRARY(podofo_static STATIC ${PODOFO_BASE_SOURCES} ${PODOFO_DOC_SOURCES} ${PODOFO_HEADER_FILES}) + TARGET_LINK_LIBRARIES(podofo_static ${PODOFO_LIB_DEPENDS}) + SET_TARGET_PROPERTIES(podofo_static PROPERTIES +- VERSION "${PODOFO_LIBVERSION}" +- SOVERSION "${PODOFO_SOVERSION}" ++ VERSION "0" ++ SOVERSION "0" + CLEAN_DIRECT_OUTPUT 1 +- OUTPUT_NAME "podofo" ++ OUTPUT_NAME "podofo09" + COMPILE_FLAGS "-DBUILDING_PODOFO" + ) + SET(PODOFO_DEPEND_TARGET podofo_static +@@ -289,10 +289,10 @@ IF(PODOFO_BUILD_SHARED) + # Visual Studio, since it produces invalid warnings about STL + # use. + SET_TARGET_PROPERTIES(podofo_shared PROPERTIES +- VERSION "${PODOFO_LIBVERSION}" +- SOVERSION "${PODOFO_SOVERSION}" ++ VERSION "0" ++ SOVERSION "0" + CLEAN_DIRECT_OUTPUT 1 +- OUTPUT_NAME "podofo" ++ OUTPUT_NAME "podofo09" + COMPILE_FLAGS "-DBUILDING_PODOFO" + ) + # Since we're building a shared podofo, prefer to depend on this one for +@@ -316,11 +316,11 @@ IF(PODOFO_BUILD_SHARED) + MESSAGE("Pkg-config found, creating a pkg-config file for linking against shared library.") + CONFIGURE_FILE( + "libpodofo.pc.in" +- "${PoDoFo_BINARY_DIR}/libpodofo.pc" ++ "${PoDoFo_BINARY_DIR}/libpodofo09.pc" + @ONLY) + INSTALL( +- FILES "${PoDoFo_BINARY_DIR}/libpodofo.pc" +- DESTINATION "${LIBDIRNAME}/pkgconfig") ++ FILES "${PoDoFo_BINARY_DIR}/libpodofo09.pc" ++ DESTINATION "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig") + ELSE(PKG_CONFIG_FOUND) + MESSAGE("Pkg-config not found. No pkg-config file will be created.") + ENDIF(PKG_CONFIG_FOUND) diff --git a/graphics/podofo09/files/patch-src_podofo_libpodofo.pc.in b/graphics/podofo09/files/patch-src_podofo_libpodofo.pc.in new file mode 100644 index 000000000000..3df623ab9e3b --- /dev/null +++ b/graphics/podofo09/files/patch-src_podofo_libpodofo.pc.in @@ -0,0 +1,15 @@ +--- src/podofo/libpodofo.pc.in.orig 2019-04-04 21:22:16 UTC ++++ src/podofo/libpodofo.pc.in +@@ -1,10 +1,10 @@ libdir=${exec_prefix}/@LIBDIRNAME@ + prefix=@CMAKE_INSTALL_PREFIX@ + exec_prefix=${prefix} + libdir=${exec_prefix}/@LIBDIRNAME@ +-includedir=${prefix}/include/podofo ++includedir=${prefix}/include/podofo09 + + Name: @CMAKE_PROJECT_NAME@ + Description: A C++ library to work with the PDF file format + Version: @PODOFO_VERSION@ +-Libs: -L${libdir} -lpodofo ++Libs: -L${libdir} -lpodofo09 + Cflags: -I${includedir} diff --git a/graphics/podofo09/pkg-descr b/graphics/podofo09/pkg-descr new file mode 100644 index 000000000000..827f7c4ae0d2 --- /dev/null +++ b/graphics/podofo09/pkg-descr @@ -0,0 +1,11 @@ +PoDoFo is a library to work with the PDF file format. The name comes from the +first letter of PDF (Portable Document Format). A few tools to work with PDF +files are already included in the PoDoFo package. + +The PoDoFo library is a free, portable C++ library which includes classes to +parse PDF files and modify their contents into memory. The changes can be +written back to disk easily. The parser can also be used to extract information +from a PDF file (for example the parser could be used in a PDF viewer). Besides +parsing PoDoFo includes also very simple classes to create your own PDF files. +All classes are documented so it is easy to start writing your own application +using PoDoFo. diff --git a/graphics/podofo09/pkg-plist b/graphics/podofo09/pkg-plist new file mode 100644 index 000000000000..5bc31ac985fa --- /dev/null +++ b/graphics/podofo09/pkg-plist @@ -0,0 +1,147 @@ +bin/podofobox +bin/podofocolor +bin/podofocountpages +bin/podofocrop +bin/podofoencrypt +bin/podofogc +bin/podofoimg2pdf +bin/podofoimgextract +bin/podofoimpose +bin/podofoincrementalupdates +bin/podofomerge +bin/podofonooc +bin/podofopages +bin/podofopdfinfo +bin/podofosign +bin/podofotxt2pdf +bin/podofotxtextract +bin/podofouncompress +bin/podofoxmp +include/podofo09/base/Pdf3rdPtyForwardDecl.h +include/podofo09/base/PdfArray.h +include/podofo09/base/PdfCanvas.h +include/podofo09/base/PdfColor.h +include/podofo09/base/PdfCompilerCompat.h +include/podofo09/base/PdfCompilerCompatPrivate.h +include/podofo09/base/PdfContentsTokenizer.h +include/podofo09/base/PdfData.h +include/podofo09/base/PdfDataType.h +include/podofo09/base/PdfDate.h +include/podofo09/base/PdfDefines.h +include/podofo09/base/PdfDefinesPrivate.h +include/podofo09/base/PdfDictionary.h +include/podofo09/base/PdfEncoding.h +include/podofo09/base/PdfEncodingFactory.h +include/podofo09/base/PdfEncrypt.h +include/podofo09/base/PdfError.h +include/podofo09/base/PdfExtension.h +include/podofo09/base/PdfFileStream.h +include/podofo09/base/PdfFilter.h +include/podofo09/base/PdfFiltersPrivate.h +include/podofo09/base/PdfImmediateWriter.h +include/podofo09/base/PdfInputDevice.h +include/podofo09/base/PdfInputStream.h +include/podofo09/base/PdfLocale.h +include/podofo09/base/PdfMemStream.h +include/podofo09/base/PdfMemoryManagement.h +include/podofo09/base/PdfName.h +include/podofo09/base/PdfObject.h +include/podofo09/base/PdfObjectStreamParserObject.h +include/podofo09/base/PdfOutputDevice.h +include/podofo09/base/PdfOutputStream.h +include/podofo09/base/PdfOwnedDataType.h +include/podofo09/base/PdfParser.h +include/podofo09/base/PdfParserObject.h +include/podofo09/base/PdfRect.h +include/podofo09/base/PdfRefCountedBuffer.h +include/podofo09/base/PdfRefCountedInputDevice.h +include/podofo09/base/PdfReference.h +include/podofo09/base/PdfStream.h +include/podofo09/base/PdfString.h +include/podofo09/base/PdfTokenizer.h +include/podofo09/base/PdfVariant.h +include/podofo09/base/PdfVecObjects.h +include/podofo09/base/PdfVersion.h +include/podofo09/base/PdfWriter.h +include/podofo09/base/PdfXRef.h +include/podofo09/base/PdfXRefStream.h +include/podofo09/base/PdfXRefStreamParserObject.h +include/podofo09/base/podofo_config.h +include/podofo09/base/podofoapi.h +include/podofo09/base/util/PdfMutex.h +include/podofo09/base/util/PdfMutexImpl_noop.h +include/podofo09/base/util/PdfMutexImpl_pthread.h +include/podofo09/base/util/PdfMutexImpl_win32.h +include/podofo09/base/util/PdfMutexWrapper.h +include/podofo09/doc/PdfAcroForm.h +include/podofo09/doc/PdfAction.h +include/podofo09/doc/PdfAnnotation.h +include/podofo09/doc/PdfCMapEncoding.h +include/podofo09/doc/PdfContents.h +include/podofo09/doc/PdfDestination.h +include/podofo09/doc/PdfDifferenceEncoding.h +include/podofo09/doc/PdfDocument.h +include/podofo09/doc/PdfElement.h +include/podofo09/doc/PdfEncodingObjectFactory.h +include/podofo09/doc/PdfExtGState.h +include/podofo09/doc/PdfField.h +include/podofo09/doc/PdfFileSpec.h +include/podofo09/doc/PdfFont.h +include/podofo09/doc/PdfFontCID.h +include/podofo09/doc/PdfFontCache.h +include/podofo09/doc/PdfFontConfigWrapper.h +include/podofo09/doc/PdfFontFactory.h +include/podofo09/doc/PdfFontFactoryBase14Data.h +include/podofo09/doc/PdfFontMetrics.h +include/podofo09/doc/PdfFontMetricsBase14.h +include/podofo09/doc/PdfFontMetricsFreetype.h +include/podofo09/doc/PdfFontMetricsObject.h +include/podofo09/doc/PdfFontSimple.h +include/podofo09/doc/PdfFontTTFSubset.h +include/podofo09/doc/PdfFontTrueType.h +include/podofo09/doc/PdfFontType1.h +include/podofo09/doc/PdfFontType1Base14.h +include/podofo09/doc/PdfFontType3.h +include/podofo09/doc/PdfFunction.h +include/podofo09/doc/PdfHintStream.h +include/podofo09/doc/PdfIdentityEncoding.h +include/podofo09/doc/PdfImage.h +include/podofo09/doc/PdfInfo.h +include/podofo09/doc/PdfMemDocument.h +include/podofo09/doc/PdfNamesTree.h +include/podofo09/doc/PdfOutlines.h +include/podofo09/doc/PdfPage.h +include/podofo09/doc/PdfPagesTree.h +include/podofo09/doc/PdfPagesTreeCache.h +include/podofo09/doc/PdfPainter.h +include/podofo09/doc/PdfPainterMM.h +include/podofo09/doc/PdfShadingPattern.h +include/podofo09/doc/PdfSignOutputDevice.h +include/podofo09/doc/PdfSignatureField.h +include/podofo09/doc/PdfStreamedDocument.h +include/podofo09/doc/PdfTable.h +include/podofo09/doc/PdfTilingPattern.h +include/podofo09/doc/PdfXObject.h +include/podofo09/podofo-base.h +include/podofo09/podofo.h +lib/libpodofo09.a +lib/libpodofo09.so +lib/libpodofo09.so.0 +libdata/pkgconfig/libpodofo09.pc +share/man/man1/podofobox.1.gz +share/man/man1/podofocolor.1.gz +share/man/man1/podofocountpages.1.gz +share/man/man1/podofocrop.1.gz +share/man/man1/podofoencrypt.1.gz +share/man/man1/podofogc.1.gz +share/man/man1/podofoimg2pdf.1.gz +share/man/man1/podofoimgextract.1.gz +share/man/man1/podofoimpose.1.gz +share/man/man1/podofoincrementalupdates.1.gz +share/man/man1/podofomerge.1.gz +share/man/man1/podofopages.1.gz +share/man/man1/podofopdfinfo.1.gz +share/man/man1/podofotxt2pdf.1.gz +share/man/man1/podofotxtextract.1.gz +share/man/man1/podofouncompress.1.gz +share/man/man1/podofoxmp.1.gz diff --git a/print/scribus-devel/Makefile b/print/scribus-devel/Makefile index 77c162e59a9f..a29d467ec355 100644 --- a/print/scribus-devel/Makefile +++ b/print/scribus-devel/Makefile @@ -1,57 +1,66 @@ PORTNAME= scribus PORTVERSION= 1.5.8 -PORTREVISION= 20 +PORTREVISION= 21 CATEGORIES= print editors MASTER_SITES= SF/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/${PORTVERSION}/ \ http://www.scribus.net/downloads/${PORTVERSION}/ PKGNAMESUFFIX= -devel MAINTAINER= pkubaj@FreeBSD.org COMMENT= Comprehensive desktop publishing program (development version) WWW= https://www.scribus.net/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= liblcms2.so:graphics/lcms2 \ libboost_thread.so:devel/boost-libs \ libhunspell-1.7.so:textproc/hunspell \ libcairo.so:graphics/cairo \ librevenge-0.0.so:textproc/librevenge \ libcups.so:print/cups \ libwpg-0.3.so:graphics/libwpg03 \ libcdr-0.1.so:graphics/libcdr01 \ libfreehand-0.1.so:graphics/libfreehand \ libpagemaker-0.0.so:print/libpagemaker \ libmspub-0.1.so:print/libmspub01 \ libvisio-0.1.so:textproc/libvisio01 \ libfreetype.so:print/freetype2 \ libtiff.so:graphics/tiff \ libpoppler.so:graphics/poppler \ libharfbuzz-icu.so:print/harfbuzz-icu \ libfontconfig.so:x11-fonts/fontconfig \ - libpodofo.so:graphics/podofo \ + libpodofo09.so:graphics/podofo09 \ libharfbuzz.so:print/harfbuzz \ libpng.so:graphics/png \ libicuuc.so:devel/icu \ libqxp-0.0.so:textproc/libqxp \ libzmf-0.0.so:graphics/libzmf USES= cmake compiler:c++17-lang desktop-file-utils dos2unix gnome \ jpeg pkgconfig python:3.6+ qt:5 shared-mime-info tar:xz USE_QT= buildtools:build core declarative gui linguisttools:build \ network opengl printsupport qmake:build widgets xml DOS2UNIX_REGEX= .*\.(cpp|h|txt) USE_GNOME= libxml2 CMAKE_ARGS+= -DWANT_HUNSPELL=YES \ -DWANT_CPP17=YES \ -DCMAKE_COLOR_MAKEFILE:BOOL=ON OPTIONS_DEFINE= DOCS +# Patch sources to force using include files installed by graphics/podofo09 +post-patch: + @${REINPLACE_CMD} -e '/^[\t ]*#include/s|podofo/podofo.h|podofo09/podofo.h|' \ + ${WRKSRC}/scribus/plugins/import/ps/importps.cpp \ + ${WRKSRC}/scribus/plugins/import/ai/importai.cpp \ + ${WRKSRC}/scribus/imagedataloaders/scimgdataloader_pdf.cpp \ + ${WRKSRC}/scribus/pdflib_core.h \ + ${WRKSRC}/scribus/pdf_analyzer.h + post-install: ${LN} -sf ../share/icons/1_5_1/scribus.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ .include diff --git a/print/scribus-devel/files/patch-cmake_modules_FindLIBPODOFO.cmake b/print/scribus-devel/files/patch-cmake_modules_FindLIBPODOFO.cmake new file mode 100644 index 000000000000..5858c363fc48 --- /dev/null +++ b/print/scribus-devel/files/patch-cmake_modules_FindLIBPODOFO.cmake @@ -0,0 +1,48 @@ +--- cmake/modules/FindLIBPODOFO.cmake.orig 2022-01-23 16:16:42 UTC ++++ cmake/modules/FindLIBPODOFO.cmake +@@ -13,7 +13,7 @@ find_path(LIBPODOFO_INCLUDE_DIR + endif(WIN32) + + find_path(LIBPODOFO_INCLUDE_DIR +- NAMES podofo/podofo.h ++ NAMES podofo09/podofo.h + PATHS + "${LIBPODOFO_DIR}/include" + "${LIBPODOFO_DIR}/src" +@@ -23,7 +23,7 @@ find_library(LIBPODOFO_LIBRARY + set(LIBPODOFO_FIND_QUIETLY ON) + + find_library(LIBPODOFO_LIBRARY +- NAMES libpodofo podofo ++ NAMES libpodofo09 podofo09 + PATHS + "${LIBPODOFO_DIR}/lib" + "${LIBPODOFO_DIR}/src" +@@ -32,7 +32,7 @@ if(LIBPODOFO_INCLUDE_DIR AND LIBPODOFO_LIBRARY) + + if(LIBPODOFO_INCLUDE_DIR AND LIBPODOFO_LIBRARY) + if(NOT LIBPODOFO_CONFIG_H) +- set(LIBPODOFO_CONFIG_H "${LIBPODOFO_INCLUDE_DIR}/podofo/base/podofo_config.h" CACHE FILEPATH "Alternative place of podofo_config.h") ++ set(LIBPODOFO_CONFIG_H "${LIBPODOFO_INCLUDE_DIR}/podofo09/base/podofo_config.h" CACHE FILEPATH "Alternative place of podofo_config.h") + endif() + + file(STRINGS "${LIBPODOFO_CONFIG_H}" PODOFO_MAJOR_VER_LINE REGEX "^#define[ \t]+PODOFO_VERSION_MAJOR[ \t]+[0-9]+$") +@@ -69,14 +69,14 @@ if(NOT LIBPODOFO_FIND_QUIETLY) + + if(NOT LIBPODOFO_FIND_QUIETLY) + if(LIBPODOFO_INCLUDE_DIR) +- message("podofo/podofo.h: ${LIBPODOFO_INCLUDE_DIR}") ++ message("podofo09/podofo.h: ${LIBPODOFO_INCLUDE_DIR}") + else(LIBPODOFO_INCLUDE_DIR) +- message("podofo/podofo.h: not found") ++ message("podofo09/podofo.h: not found") + endif(LIBPODOFO_INCLUDE_DIR) + if(LIBPODOFO_LIBRARY) +- message("podofo lib: ${LIBPODOFO_LIBRARY}") ++ message("podofo09 lib: ${LIBPODOFO_LIBRARY}") + else(LIBPODOFO_LIBRARY) +- message("podofo lib: not found") ++ message("podofo09 lib: not found") + endif(LIBPODOFO_LIBRARY) + message("PoDoFo cflags: ${useshared}") + endif(NOT LIBPODOFO_FIND_QUIETLY) diff --git a/sysutils/krename/Makefile b/sysutils/krename/Makefile index 8850509bb19f..b84ca5ab7422 100644 --- a/sysutils/krename/Makefile +++ b/sysutils/krename/Makefile @@ -1,27 +1,32 @@ PORTNAME= krename DISTVERSION= 5.0.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils kde MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/src MAINTAINER= kde@FreeBSD.org COMMENT= Powerful batch file renamer for KDE WWW= https://userbase.kde.org/KRename LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libtag.so:audio/taglib \ libexiv2.so:graphics/exiv2 \ - libpodofo.so:graphics/podofo \ + libpodofo09.so:graphics/podofo09 \ libfreetype.so:print/freetype2 USES= cmake compiler:c++11-lang gettext kde:5 pkgconfig qt:5 tar:xz xorg USE_KDE= auth bookmarks codecs completion config configwidgets \ coreaddons crash i18n iconthemes itemviews jobwidgets \ kio service solid widgetsaddons windowsystem xmlgui USE_QT= concurrent core dbus declarative gui network xml widgets \ buildtools:build qmake:build USE_XORG= x11 +# Patch sources to force using include files installed by graphics/podofo09 +post-patch: + @${REINPLACE_CMD} -e '/^#include/s|podofo/podofo.h|podofo09/podofo.h|' \ + ${WRKSRC}/src/podofoplugin.cpp \ + .include diff --git a/sysutils/krename/files/patch-cmake_modules_FindPoDoFo.cmake b/sysutils/krename/files/patch-cmake_modules_FindPoDoFo.cmake new file mode 100644 index 000000000000..4e71911fec26 --- /dev/null +++ b/sysutils/krename/files/patch-cmake_modules_FindPoDoFo.cmake @@ -0,0 +1,28 @@ +--- cmake/modules/FindPoDoFo.cmake.orig 2022-08-31 21:22:21 UTC ++++ cmake/modules/FindPoDoFo.cmake +@@ -37,10 +37,10 @@ find_path(PoDoFo_INCLUDE_DIRS + # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + find_path(PoDoFo_INCLUDE_DIRS +- NAMES podofo/podofo.h ++ NAMES podofo09/podofo.h + ) + find_library(PoDoFo_LIBRARIES +- NAMES libpodofo podofo ++ NAMES libpodofo09 podofo09 + ) + + include(FindPackageHandleStandardArgs) +@@ -65,9 +65,9 @@ if(PoDoFo_FOUND) + # header. The fix is in https://sourceforge.net/p/podofo/code/1830/ and will + # hopefully be released soon with 0.9.6. Note that krename doesn't use + # OpenSSL in any way. +- file(STRINGS "${PoDoFo_INCLUDE_DIRS}/podofo/base/podofo_config.h" PoDoFo_MAJOR_VER_LINE REGEX "^#define[ \t]+PODOFO_VERSION_MAJOR[ \t]+[0-9]+$") +- file(STRINGS "${PoDoFo_INCLUDE_DIRS}/podofo/base/podofo_config.h" PoDoFo_MINOR_VER_LINE REGEX "^#define[ \t]+PODOFO_VERSION_MINOR[ \t]+[0-9]+$") +- file(STRINGS "${PoDoFo_INCLUDE_DIRS}/podofo/base/podofo_config.h" PoDoFo_PATCH_VER_LINE REGEX "^#define[ \t]+PODOFO_VERSION_PATCH[ \t]+[0-9]+$") ++ file(STRINGS "${PoDoFo_INCLUDE_DIRS}/podofo09/base/podofo_config.h" PoDoFo_MAJOR_VER_LINE REGEX "^#define[ \t]+PODOFO_VERSION_MAJOR[ \t]+[0-9]+$") ++ file(STRINGS "${PoDoFo_INCLUDE_DIRS}/podofo09/base/podofo_config.h" PoDoFo_MINOR_VER_LINE REGEX "^#define[ \t]+PODOFO_VERSION_MINOR[ \t]+[0-9]+$") ++ file(STRINGS "${PoDoFo_INCLUDE_DIRS}/podofo09/base/podofo_config.h" PoDoFo_PATCH_VER_LINE REGEX "^#define[ \t]+PODOFO_VERSION_PATCH[ \t]+[0-9]+$") + string(REGEX REPLACE "^#define[ \t]+PODOFO_VERSION_MAJOR[ \t]+([0-9]+)$" "\\1" PoDoFo_MAJOR_VER "${PoDoFo_MAJOR_VER_LINE}") + string(REGEX REPLACE "^#define[ \t]+PODOFO_VERSION_MINOR[ \t]+([0-9]+)$" "\\1" PoDoFo_MINOR_VER "${PoDoFo_MINOR_VER_LINE}") + string(REGEX REPLACE "^#define[ \t]+PODOFO_VERSION_PATCH[ \t]+([0-9]+)$" "\\1" PoDoFo_PATCH_VER "${PoDoFo_PATCH_VER_LINE}")