diff options
Diffstat (limited to 'graphics/ipe/Makefile')
-rw-r--r-- | graphics/ipe/Makefile | 43 |
1 files changed, 35 insertions, 8 deletions
diff --git a/graphics/ipe/Makefile b/graphics/ipe/Makefile index 3cf876de2381..f49c299c96e9 100644 --- a/graphics/ipe/Makefile +++ b/graphics/ipe/Makefile @@ -1,9 +1,8 @@ PORTNAME= ipe -PORTVERSION= 7.2.23 +DISTVERSION= 7.2.24 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="" \ @@ -41,17 +39,46 @@ MAKE_ENV= DL_LIBS="" \ LUA_PACKAGE="lua-${LUA_VER}" \ MOC="${MOC}" -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>|' \ + ${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>|' \ + ${WRKSRC}/ipepresenter/ipepresenter_qt.h post-install: @${LN} -sf ${DATADIR}/${PORTVERSION}/ipe.png \ |