Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / cinepaint / Makefile
1 # Created by: David Yeske <dyeske@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       cinepaint
5 DISTVERSION=    1.0-4
6 PORTREVISION=   11
7 CATEGORIES=     graphics
8 MASTER_SITES=   SF/${PORTNAME}/CinePaint/CinePaint-${DISTVERSION}
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Editing tool used for painting and retouching of movies
12
13 LICENSE=        GPLv2 LGPL21 MIT
14 LICENSE_COMB=   multi
15
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
22
23 OPTIONS_DEFINE= OYRANOS PRINT
24 OYRANOS_DESC=   ICC profile support via Oyranos
25 PRINT_DESC=     Gutenprint (gimp-print) plugin
26
27 GNU_CONFIGURE=  yes
28 USES=           autoreconf desktop-file-utils gettext ghostscript:run \
29                 gmake jpeg libtool pkgconfig python
30 USE_XORG=       xmu
31 USE_GNOME=      gtk20
32 USE_LDCONFIG=   yes
33 INSTALL_TARGET= install-strip
34
35 CPPFLAGS+=      -I${LOCALBASE}/include
36 LDFLAGS+=       -L${LOCALBASE}/lib
37
38 PLIST_SUB=      VER="${DISTVERSION}"
39
40 .include <bsd.port.options.mk>
41
42 .if ${PORT_OPTIONS:MOYRANOS}
43 LIB_DEPENDS+=   liboyranos.so:graphics/oyranos
44 .else
45 CONFIGURE_ENV+= ac_cv_path_OY_CONFIG=no
46 .endif
47
48 .if ${PORT_OPTIONS:MPRINT}
49 LIB_DEPENDS+=   libgutenprint.so:print/gutenprint-base
50 PLIST_SUB+=     PRINT=""
51 .else
52 CONFIGURE_ARGS+=        --disable-print
53 PLIST_SUB+=     PRINT="@comment "
54 .endif
55
56 post-extract:
57         @${LN} -sf gimprc.in ${WRKSRC}/cinepaintrc.in
58         @${LN} -sf gimprc_user.in ${WRKSRC}/cinepaintrc_user.in
59
60 post-patch:
61         @${REINPLACE_CMD} -e \
62                 '/^pkgconfigdir/s|$$(libdir)|$$(prefix)/libdata| ; \
63                  s|gimprc|cinepaintrc|g' \
64                 ${WRKSRC}/Makefile.am
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
75
76 .include <bsd.port.mk>