1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/graphics/cinepaint/Makefile
Matthias Andree d1cfeab07e Update ilmbase and openexr to 2.3.0, rename OpenEXR to openexr.
Release notes: <https://github.com/openexr/openexr/releases/tag/v2.3.0>

Adjust LIB_DEPENDS of all ports that require ilmbase or openexr to chase
the new lower-case spelling of the name, and to omit the version from the
library name to ease future maintenance.

Bump PORTREVISION of all ports that depend on ilmbase or openexr directly,
so that they all get rebuilt on upgrades.

Add patches to graphics/ampasCTL to keep it alive, with (a) ilmbase now
that its Iex::BaseExc class is no longer derived from std::string,
details were given upstream through https://github.com/ampas/CTL/issues/71
and (b) to unwind semicolon/;-lists in cmake that stem from openexr/
ilmbase pkg-config variables.
(Note ampasCTL is unmaintained as FreeBSD port, and upstream,
and I cannot run-time test it.)

Poudriere build tests on 11.2-RELEASE-p1 amd64 of ALL ports depending
directly or indirectly on ilmbase and/or openexr have passed without
regressions.  Thus invoking due diligence, I believe I have done the
equivalent of an -exp run, and do not require approval for the dependency
chases to third-party ports.
2018-09-22 10:15:22 +00:00

83 lines
2.2 KiB
Makefile

# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$
PORTNAME= cinepaint
DISTVERSION= 1.0-4
PORTREVISION= 14
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/CinePaint/CinePaint-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Editing tool used for painting and retouching of movies
LICENSE= GPLv2 LGPL21 MIT
LICENSE_COMB= multi
LIB_DEPENDS= libIlmImf.so:graphics/openexr \
libftgl.so:graphics/ftgl \
liblcms.so:graphics/lcms \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libfltk.so:x11-toolkits/fltk \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libHalf.so:graphics/ilmbase \
libXcm.so:x11/libXcm
BROKEN_powerpc64= fails to link: ld: undefined reference to symbol __gxx_personality_v0(try adding -lstdc++)
OPTIONS_DEFINE= OYRANOS PRINT
OYRANOS_DESC= ICC profile support via Oyranos
PRINT_DESC= Gutenprint (gimp-print) plugin
GNU_CONFIGURE= yes
USES= autoreconf desktop-file-utils gettext ghostscript:run \
gmake jpeg libtool pkgconfig python
USE_XORG= ice sm x11 xcursor xext xfixes xmu xft xt xinerama xrender
USE_GNOME= cairo gdkpixbuf2 gtk20
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB= VER="${DISTVERSION}"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOYRANOS}
LIB_DEPENDS+= libOyranos.so:graphics/oyranos
.else
CONFIGURE_ENV+= ac_cv_path_OY_CONFIG=no
.endif
.if ${PORT_OPTIONS:MPRINT}
LIB_DEPENDS+= libgutenprint.so:print/gutenprint
PLIST_SUB+= PRINT=""
.else
CONFIGURE_ARGS+= --disable-print
PLIST_SUB+= PRINT="@comment "
.endif
post-extract:
@${LN} -sf gimprc.in ${WRKSRC}/cinepaintrc.in
@${LN} -sf gimprc_user.in ${WRKSRC}/cinepaintrc_user.in
post-patch:
@${REINPLACE_CMD} -e \
'/^pkgconfigdir/s|$$(libdir)|$$(prefix)/libdata| ; \
s|gimprc|cinepaintrc|g' \
${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e \
'/cms-profile-path/s|".*"|"${LOCALBASE}/share/color/icc"| ; \
s|/usr/share|${LOCALBASE}/share|' \
${WRKSRC}/gimprc.in
@${REINPLACE_CMD} -e \
's|gimprc|cinepaintrc|g' \
${WRKSRC}/user_install.in
@${REINPLACE_CMD} -e \
's|static GDrawableType|static GImageType|' \
${WRKSRC}/plug-ins/psd/psd.c
.include <bsd.port.mk>