summaryrefslogtreecommitdiff
path: root/graphics/ipe
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ipe')
-rw-r--r--graphics/ipe/Makefile48
-rw-r--r--graphics/ipe/distinfo6
-rw-r--r--graphics/ipe/pkg-plist2
3 files changed, 43 insertions, 13 deletions
diff --git a/graphics/ipe/Makefile b/graphics/ipe/Makefile
index 3cf876de2381..5f057407021c 100644
--- a/graphics/ipe/Makefile
+++ b/graphics/ipe/Makefile
@@ -1,9 +1,8 @@
PORTNAME= ipe
-PORTVERSION= 7.2.23
+DISTVERSION= 7.2.26
DISTVERSIONSUFFIX= -src
-PORTREVISION= 4
CATEGORIES= graphics
-MASTER_SITES= https://dl.bintray.com/otfried/generic/ipe/${PORTVERSION:R}/
+MASTER_SITES= https://github.com/otfried/old-ipe-releases/releases/download/v${DISTVERSION}/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Extensible vector graphics editor with LaTeX support
@@ -11,12 +10,12 @@ WWW= https://ipe.otfried.org/
LICENSE= GPLv3+
-RUN_DEPENDS= xdg-open:devel/xdg-utils
LIB_DEPENDS= libcurl.so:ftp/curl \
libfreetype.so:print/freetype2 \
libgsl.so:math/gsl \
libpng.so:graphics/png \
libspiro.so:graphics/libspiro
+RUN_DEPENDS= xdg-open:devel/xdg-utils
USES= compiler:c++11-lib gmake gnome jpeg lua:52 pkgconfig shebangfix qt:5 tex
USE_GNOME= cairo
@@ -24,7 +23,6 @@ USE_LDCONFIG= yes
USE_QT= buildtools:build core gui qmake:build widgets
USE_TEX= pdftex
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
SHEBANG_FILES= ${WRKSRC}/ipecurl/ipecurl.sh
MAKE_ENV= DL_LIBS="" \
@@ -39,19 +37,51 @@ MAKE_ENV= DL_LIBS="" \
JPEG_CFLAGS="-I${LOCALBASE}/include" \
JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \
LUA_PACKAGE="lua-${LUA_VER}" \
- MOC="${MOC}"
+ MOC="${MOC}" \
+ IPE_NO_SPELLCHECK="1"
-PLIST_SUB= VERSION="${PORTVERSION}"
-
-PORTDOCS= *
+CPPFLAGS+= -I${LOCALBASE}/${QT_INCDIR_REL} \
+ -I${LOCALBASE}/include/cairo \
+ -I${LUA_INCDIR} \
+ -I${WRKSRC}/include \
+ -I${WRKSRC}/ipecairo \
+ -I${WRKSRC}/ipecanvas
DESKTOP_ENTRIES="Ipe" "" "ipe" "ipe" "" ""
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}/src
+
+PLIST_SUB= VERSION="${DISTVERSION}"
+PORTDOCS= *
+
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|\([[:blank:]]\)=|\1?=|' ${WRKSRC}/config.mak
+ @${REINPLACE_CMD} -e 's|<QWidget>|<QtWidgets/QWidget>|' \
+ ${WRKSRC}/ipeui/ipeui_common.h \
+ ${WRKSRC}/ipecanvas/ipepdfview_qt.h
+ @${REINPLACE_CMD} -e 's|<QDialog>|<QtWidgets/QDialog>|; \
+ s|<QGridLayout>|<QtWidgets/QGridLayout>|; \
+ s|<QMenu>|<QtWidgets/QMenu>|; \
+ s|<QApplication>|<QtWidgets/QApplication>|; \
+ s|<QAction>|<QtWidgets/QAction>|' \
+ ${WRKSRC}/ipeui/ipeui_qt.h
+ @${REINPLACE_CMD} -e 's|<QApplication>|<QtWidgets/QApplication>|; \
+ s|<QCheckBox>|<QtWidgets/QCheckBox>|' \
+ ${WRKSRC}/ipeui/ipeui_qt.cpp
+ @${REINPLACE_CMD} -e 's|<QListWidget>|<QtWidgets/QListWidget>|' \
+ ${WRKSRC}/ipecanvas/ipeselector_qt.h
+ @${REINPLACE_CMD} -e 's|<QLabel>|<QtWidgets/QLabel>|; \
+ s|<QTime>|<QtCore/QTime>|; \
+ s|<QTimer>|<QtCore/QTimer>|' \
+ ${WRKSRC}/ipepresenter/timelabel_qt.h
+ @${REINPLACE_CMD} -e 's|<QInputDialog>|<QtWidgets/QInputDialog>|' \
+ ${WRKSRC}/ipepresenter/timelabel_qt.cpp
+ @${REINPLACE_CMD} -e 's|<QMainWindow>|<QtWidgets/QMainWindow>|; \
+ s|<QPlainTextEdit>|<QtWidgets/QPlainTextEdit>|' \
+ ${WRKSRC}/ipepresenter/ipepresenter_qt.h
post-install:
@${LN} -sf ${DATADIR}/${PORTVERSION}/ipe.png \
diff --git a/graphics/ipe/distinfo b/graphics/ipe/distinfo
index 1c2a939c4753..2c041980f702 100644
--- a/graphics/ipe/distinfo
+++ b/graphics/ipe/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1611709798
-SHA256 (ipe-7.2.23-src.tar.gz) = a19ba29822e63fc7c12c3b85ca5bb58f9ee72fdf566e148af79206b5dc1f757b
-SIZE (ipe-7.2.23-src.tar.gz) = 1030938
+TIMESTAMP = 1757072891
+SHA256 (ipe-7.2.26-src.tar.gz) = e49d0057913a4a516b2017f00d9adb267903528559d1f0c7ebaf6cd914350aa5
+SIZE (ipe-7.2.26-src.tar.gz) = 1034821
diff --git a/graphics/ipe/pkg-plist b/graphics/ipe/pkg-plist
index 5a74f9513ae7..f1d107a442f0 100644
--- a/graphics/ipe/pkg-plist
+++ b/graphics/ipe/pkg-plist
@@ -4,6 +4,7 @@ bin/ipe6upgrade
bin/ipeextract
bin/ipepresenter
bin/iperender
+bin/iperender-par
bin/ipescript
bin/ipetoipe
include/ipeattributes.h
@@ -24,7 +25,6 @@ include/ipelatex.h
include/ipelet.h
include/ipelib.h
include/ipeobject.h
-include/ipeosx.h
include/ipepage.h
include/ipepainter.h
include/ipepath.h