1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

- Update to version 7.1.7; rephrase COMMENT text; fix Makefile header

- Request Lua via USES=lua:52 instead of (ab)using LIB_DEPENDS
- Add missing dependency on libjpeg (graphics/jpeg)
- Ipe uses Pdflatex for producing Postscript/PDF files, so make USE_LATEX
  more specific (latex -> pdftex); unfortunately, it doesn't save us from
  having to download huge (~1.6G) texlive-20140525-texmf.tar.xz distfile;
  it would be nice to make LaTeX an optional dependency

PR:	199238
This commit is contained in:
Alexey Dokuchaev 2015-04-14 04:06:11 +00:00
parent 0f57ec2be0
commit d7e5a263b8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383976
5 changed files with 108 additions and 24 deletions

View File

@ -1,27 +1,27 @@
# Created by: bremner@unb.ca
# Created by: David Bremner <bremner@unb.ca>
# $FreeBSD$
PORTNAME= ipe
PORTVERSION= 7.1.6
PORTVERSION= 7.1.7
DISTVERSIONSUFFIX= -src
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}${PORTVERSION:R:R}/${PORTNAME}/${PORTVERSION:R}
MAINTAINER= ports@FreeBSD.org
COMMENT= Extensible vector graphics editor with Latex text support
COMMENT= Extensible vector graphics editor with LaTeX support
LICENSE= GPLv3 # (or later)
LIB_DEPENDS= liblua-5.2.so:${PORTSDIR}/lang/lua52
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
USES= dos2unix gmake iconv pkgconfig
USES= dos2unix gmake iconv lua:52 pkgconfig
DOS2UNIX_FILES= ipelib/Makefile
USE_GNOME= cairo
USE_QT4= gui moc_build qmake_build rcc_build uic_build
USE_TEX= latex
USE_TEX= pdftex
MAKE_ENV= DL_LIBS="" \
DLL_CFLAGS="-fPIC" \
ICONV_CFLAGS="-I${ICONV_PREFIX}/include" \
@ -37,8 +37,8 @@ MAKE_ENV= DL_LIBS="" \
IPEPREFIX="${PREFIX}" \
JPEG_CFLAGS="-I${LOCALBASE}/include" \
JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \
LUA_CFLAGS="-I${LOCALBASE}/include/lua52" \
LUA_LIBS="-L${LOCALBASE}/lib -llua-5.2" \
LUA_CFLAGS="-I${LUA_INCDIR}" \
LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" \
MOC="${MOC}"
USE_LDCONFIG= yes

View File

@ -1,2 +1,2 @@
SHA256 (ipe-7.1.6-src.tar.gz) = d13918418591b11590ca4fe48a97e29ea5d0274540d3d83dec400d8f8f155d79
SIZE (ipe-7.1.6-src.tar.gz) = 1608612
SHA256 (ipe-7.1.7-src.tar.gz) = ec670cd7f0fa521271fc54bf9b663570d82280bdbe405be6de59535fec7c00d2
SIZE (ipe-7.1.7-src.tar.gz) = 1758157

View File

@ -1,23 +1,16 @@
--- ipelib/ipebitmap.cpp.orig
+++ ipelib/ipebitmap.cpp
@@ -32,10 +32,16 @@
@@ -32,7 +32,9 @@
#include "ipeutils.h"
#include <zlib.h>
+#if 0
#include <turbojpeg.h>
+#endif
#include <png.h>
using namespace ipe;
+#if 1
+extern bool dctDecode(Buffer dctData, Buffer pixelData);
+#endif
+
// --------------------------------------------------------------------
/*! \class ipe::Bitmap::MRenderData
@@ -331,6 +337,7 @@
@@ -332,6 +334,7 @@
// --------------------------------------------------------------------
@ -25,15 +18,17 @@
bool dctDecode(Buffer dctData, Buffer pixelData, int components)
{
tjhandle handle = tjInitDecompress();
@@ -363,6 +370,7 @@
@@ -364,6 +367,9 @@
tjDestroy(handle);
return true;
}
+#else
+bool dctDecode(Buffer dctData, Buffer pixelData);
+#endif
//! Convert bitmap data to a height x width pixel array in rgb format.
/*! Returns empty buffer if it cannot decode the bitmap information.
@@ -387,7 +395,11 @@
@@ -388,7 +394,11 @@
return Buffer();
} else if (filter() == EDCTDecode) {
pixels = Buffer(width() * height() * components());

View File

@ -0,0 +1,88 @@
--- ipelib/ipeplatform.cpp.orig 2015-02-23 13:02:13 UTC
+++ ipelib/ipeplatform.cpp
@@ -37,7 +37,6 @@
#include <direct.h>
#else
#include <sys/wait.h>
-#include <xlocale.h>
#endif
#include <cstdlib>
#include <sys/types.h>
@@ -46,6 +45,17 @@
#include <unistd.h>
#include <clocale>
+#ifdef __FreeBSD__
+#include <osreldate.h>
+# if __FreeBSD_version < 900045
+# define NO_XLOCALE
+# endif
+#endif
+
+#ifndef NO_XLOCALE
+#include <xlocale.h>
+#endif
+
using namespace ipe;
// --------------------------------------------------------------------
@@ -70,12 +80,14 @@ int Platform::libVersion()
static bool initialized = false;
static bool showDebug = false;
static Platform::DebugHandler debugHandler = 0;
+#ifndef NO_XLOCALE
#ifdef WIN32
// not yet available in MINGW RT library
// _locale_t ipeLocale;
#else
locale_t ipeLocale;
#endif
+#endif
#ifdef WIN32
// Counterpart to Platform::wideToUtf8
@@ -100,11 +112,13 @@ static void debugHandlerImpl(const char
static void cleanup_repository()
{
+#ifndef NO_XLOCALE
#ifdef WIN32
// _free_locale(ipeLocale);
#else
freelocale(ipeLocale);
#endif
+#endif
Repository::cleanup();
}
@@ -127,11 +141,13 @@ void Platform::initLib(int version)
if (getenv("IPEDEBUG") != 0)
showDebug = true;
debugHandler = debugHandlerImpl;
+#ifndef NO_XLOCALE
#ifdef WIN32
// ipeLocale = ::_create_locale(LC_NUMERIC, "C");
#else
ipeLocale = newlocale(LC_NUMERIC_MASK, "C", NULL);
#endif
+#endif
atexit(cleanup_repository);
#ifndef WIN32
if (version == IPELIB_VERSION)
@@ -462,12 +478,16 @@ String Platform::wideToUtf8(const wchar_
double Platform::toDouble(String s)
{
+#ifdef NO_XLOCALE
+ return strtod(s.z(), 0);
+#else
#ifdef WIN32
return strtod(s.z(), 0);
// return _strtod_l(s.z(), 0, ipeLocale);
#else
return strtod_l(s.z(), 0, ipeLocale);
#endif
+#endif
}
void ipeAssertionFailed(const char *file, int line, const char *assertion)

View File

@ -36,13 +36,12 @@ include/ipesnap.h
include/ipestyle.h
include/ipetext.h
include/ipetool.h
include/ipetoolbase.h
include/ipeutils.h
include/ipexml.h
lib/ipe/%%VERSION%%/ipelets/align.lua
lib/ipe/%%VERSION%%/ipelets/euclid.lua
lib/ipe/%%VERSION%%/ipelets/goodies.lua
lib/ipe/%%VERSION%%/ipelets/image.lua
lib/ipe/%%VERSION%%/ipelets/image.so
lib/ipe/%%VERSION%%/ipelets/move.lua
lib/ipe/%%VERSION%%/ipelets/search-replace.lua
lib/ipe/%%VERSION%%/ipelets/symbols.lua
@ -101,9 +100,11 @@ man/man1/ipetoipe.1.gz
%%DATADIR%%/%%VERSION%%/icons/snapangle.png
%%DATADIR%%/%%VERSION%%/icons/snapauto.png
%%DATADIR%%/%%VERSION%%/icons/snapbd.png
%%DATADIR%%/%%VERSION%%/icons/snapctl.png
%%DATADIR%%/%%VERSION%%/icons/snapgrid.png
%%DATADIR%%/%%VERSION%%/icons/snapint.png
%%DATADIR%%/%%VERSION%%/icons/snapvtx.png
%%DATADIR%%/%%VERSION%%/icons/stop.png
%%DATADIR%%/%%VERSION%%/icons/undo.png
%%DATADIR%%/%%VERSION%%/icons/zoom_in.png
%%DATADIR%%/%%VERSION%%/icons/zoom_out.png