1 # Created by: David Yeske <dyeske@gmail.com>
8 MASTER_SITES= SF/${PORTNAME}/CinePaint/CinePaint-${DISTVERSION}
10 MAINTAINER= ports@FreeBSD.org
11 COMMENT= Editing tool used for painting and retouching of movies
13 LICENSE= GPLv2 LGPL21 MIT
16 LIB_DEPENDS= libIlmImf.so:graphics/OpenEXR \
17 libftgl.so:graphics/ftgl \
18 liblcms.so:graphics/lcms \
19 libpng.so:graphics/png \
20 libtiff.so:graphics/tiff \
21 libfltk.so:x11-toolkits/fltk
23 OPTIONS_DEFINE= OYRANOS PRINT
24 OYRANOS_DESC= ICC profile support via Oyranos
25 PRINT_DESC= Gutenprint (gimp-print) plugin
28 USES= autoreconf desktop-file-utils gettext ghostscript:run \
29 gmake jpeg libtool pkgconfig python
33 INSTALL_TARGET= install-strip
35 CPPFLAGS+= -I${LOCALBASE}/include
36 LDFLAGS+= -L${LOCALBASE}/lib
38 PLIST_SUB= VER="${DISTVERSION}"
40 .include <bsd.port.options.mk>
42 .if ${PORT_OPTIONS:MOYRANOS}
43 LIB_DEPENDS+= liboyranos.so:graphics/oyranos
45 CONFIGURE_ENV+= ac_cv_path_OY_CONFIG=no
48 .if ${PORT_OPTIONS:MPRINT}
49 LIB_DEPENDS+= libgutenprint.so:print/gutenprint-base
52 CONFIGURE_ARGS+= --disable-print
53 PLIST_SUB+= PRINT="@comment "
57 @${LN} -sf gimprc.in ${WRKSRC}/cinepaintrc.in
58 @${LN} -sf gimprc_user.in ${WRKSRC}/cinepaintrc_user.in
61 @${REINPLACE_CMD} -e \
62 '/^pkgconfigdir/s|$$(libdir)|$$(prefix)/libdata| ; \
63 s|gimprc|cinepaintrc|g' \
65 @${REINPLACE_CMD} -e \
66 '/cms-profile-path/s|".*"|"${LOCALBASE}/share/color/icc"| ; \
67 s|/usr/share|${LOCALBASE}/share|' \
68 ${WRKSRC}/cinepaintrc.in
69 @${REINPLACE_CMD} -e \
70 's|gimprc|cinepaintrc|g' \
71 ${WRKSRC}/user_install.in
72 @${REINPLACE_CMD} -e \
73 's|static GDrawableType|static GImageType|' \
74 ${WRKSRC}/plug-ins/psd/psd.c
76 .include <bsd.port.mk>