freebsd-ports/graphics/cinepaint/Makefile
2012-06-12 21:42:32 +00:00

76 lines
1.9 KiB
Makefile

# New ports collection makefile for: cinepaint
# Date created: 11 Oct 2003
# Whom: David Yeske <dyeske@gmail.com>
#
# $FreeBSD$
#
PORTNAME= cinepaint
PORTVERSION= 0.22
PORTREVISION= 9
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/CinePaint/CinePaint-${PORTVERSION}-1
DISTNAME= ${PORTNAME}-${PORTVERSION}-1
MAINTAINER= ports@FreeBSD.org
COMMENT= An editing tool used for painting and retouching of movies
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
lcms.1:${PORTSDIR}/graphics/lcms \
tiff.4:${PORTSDIR}/graphics/tiff \
ftgl.2:${PORTSDIR}/graphics/ftgl
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_PYTHON= yes
USE_GNOME= gtk12
USE_GETTEXT= yes
USE_LDCONFIG= yes
USE_XORG= xpm xi xext xft xinerama
MAN1= cinepaint.1 cinepainttool.1
PLIST_SUB= VER=${PORTVERSION}-1
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-1
OPTIONS_DEFINE= OPENEXR
OPTIONS_DEFAULT= OPENEXR
OPENEXR_DESC= Use OpenEXR
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENEXR}
LIB_DEPENDS+= IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
fltk.1:${PORTSDIR}/x11-toolkits/fltk
CONFIGURE_ARGS+= --with-openexr-prefix=${LOCALBASE}
CFLAGS+= -I${LOCALBASE}/include/openEXR
PLIST_SUB+= OPENEXR:=""
.else
PLIST_SUB+= OPENEXR:="@comment "
.endif
CPPFLAGS+= ${CFLAGS}
post-patch:
@${REINPLACE_CMD} -e \
's| -Wall||' \
${WRKSRC}/configure
@${REINPLACE_CMD} -E -e \
's|-LINUX.+$$|| ; s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|static GDrawableType|static GImageType|' \
${WRKSRC}/plug-ins/psd/psd.c
@${FIND} ${WRKSRC} -type f -name "*.c" -o -name "*.cpp" -o -name "*.cxx" -o -name "*.h" | ${XARGS} \
${REINPLACE_CMD} -e '/^#include <FL/s|.h>$$|.H>|; /^#include "FL/s|.h"$$|.H"|; \
s|fl_file_chooser.H|Fl_File_Chooser.H|g; s|#include <Fl|#include <FL|g; s|<FL/gl.H>|<FL/gl.h>|'
.include <bsd.port.mk>