blob: e315f5818fb8ada47b2b239b4975e44eaea677d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# New ports collection makefile for: gimp-gmic-plugin
# Date created: 07 Feb 2011
# Whom: Mahmatkhanov Ruslan <cvs-src@yandex.ru>
#
# $FreeBSD$
#
PORTNAME= gmic
PORTVERSION= 1.5.1.5
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME} \
SF/${PORTNAME}/old
PKGNAMEPREFIX= gimp-
PKGNAMESUFFIX= -plugin
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= rm@FreeBSD.org
COMMENT= GREYC's Magic Image Converter
LIB_DEPENDS= GraphicsMagick++.9:${PORTSDIR}/graphics/GraphicsMagick13 \
IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
Magick++.5:${PORTSDIR}/graphics/ImageMagick \
avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
fftw3:${PORTSDIR}/math/fftw3 \
gimp-2.0:${PORTSDIR}/graphics/gimp-app
CONFLICTS= cimg-[0-9]*
OPTIONS_DEFINE= BASH
BASH_DESC= Install programmable completions for Bash
OPTIONS_EXCLUDE=NLS DOCS
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
USE_GMAKE= yes
USE_GNOME= gtk20
USE_XORG= x11 xext xrandr
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS:= ${CFLAGS:N-O*:N-pipe}
CXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
MAN1= gmic.1
MANCOMPRESSED= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBASH}
RUN_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
PLIST_SUB+= BASH=""
.else
PLIST_SUB+= BASH="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
${WRKSRC}/Makefile
do-install:
@${MKDIR} ${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic_gimp ${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/../man/gmic.1.gz ${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MBASH}
${INSTALL_SCRIPT} ${WRKSRC}/gmic_bashcompletion.sh \
${PREFIX}/etc/bash_completion.d/gmic_bashcompletion.sh
.endif
.include <bsd.port.mk>
|