freebsd-ports/graphics/ipe/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

62 lines
1.5 KiB
Makefile

# Created by: David Bremner <bremner@unb.ca>
# $FreeBSD$
PORTNAME= ipe
PORTVERSION= 7.2.7
PORTREVISION= 2
DISTVERSIONSUFFIX= -src
CATEGORIES= graphics
MASTER_SITES= https://dl.bintray.com/otfried/generic/ipe/${PORTVERSION:R}/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Extensible vector graphics editor with LaTeX support
LICENSE= GPLv3+
RUN_DEPENDS= xdg-open:devel/xdg-utils
LIB_DEPENDS= libpng16.so:graphics/png \
libfreetype.so:print/freetype2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
USES= compiler:c++11-lib gmake jpeg lua:52 pkgconfig
USE_GNOME= cairo
USE_QT5= buildtools_build core gui qmake_build widgets
USE_TEX= pdftex
MAKE_ENV= DL_LIBS="" \
INSTALL_DIR="${MKDIR}" \
INSTALL_FILES="${INSTALL_DATA}" \
INSTALL_SCRIPTS="${INSTALL_SCRIPT}" \
INSTALL_PROGRAMS="${INSTALL_PROGRAM}" \
INSTALL_ROOT="${STAGEDIR}" \
IPEDOCDIR="${DOCSDIR}" \
IPEMANDIR="${MANPREFIX}/man/man1" \
IPEPREFIX="${PREFIX}" \
JPEG_CFLAGS="-I${LOCALBASE}/include" \
JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \
LUA_PACKAGE="lua-${LUA_VER}" \
MOC="${MOC}"
USE_LDCONFIG= yes
PLIST_SUB= VERSION="${PORTVERSION}"
PORTDOCS= *
DESKTOP_ENTRIES="Ipe" "" "ipe" "ipe" "" ""
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|^INSTALL_|#INSTALL_| ; \
/-O2/s|^|#|' ${WRKSRC}/common.mak
@${REINPLACE_CMD} -e \
's|\([[:blank:]]\)=|\1?=|' ${WRKSRC}/config.mak
@${REINPLACE_CMD} -e \
'/%s/s|gnome-open|xdg-open|' ${WRKSRC}/ipe/lua/prefs.lua
post-install:
@${LN} -sf ${DATADIR}/${PORTVERSION}/ipe.png \
${STAGEDIR}${PREFIX}/share/pixmaps
.include <bsd.port.mk>