source: trunk/dports/graphics/gimp-jp2/Portfile

Last change on this file was 142969, checked in by devans@…, 20 months ago

gimp-jp2: add +quartz variant, and use active_variants to check for correct flavor of gimp2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 142969 2015-11-30 18:08:43Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       active_variants 1.1
6
7name            gimp-jp2
8version         2.2.0
9revision        7
10license         permissive
11maintainers     devans openmaintainer
12description     GIMP Wavelet/JPEG 2000 plug-in.
13long_description \
14                GIMP Wavelet/JPEG 2000 plug-in, written by Divyanshu Vats, from \
15                the 2006 GIMP Google Summer of Code wavelet project, mentored by Simon Budig.
16
17universal_variant no
18
19categories      graphics
20platforms       darwin
21homepage        http://registry.gimp.org/node/9899
22
23distname        jp2
24master_sites    http://registry.gimp.org/files/
25
26checksums       md5     dfe378981796eaeefde35874d175c9e0 \
27                sha1    6caab9ebb067b44659d59bced3da5bb54634b690 \
28                rmd160  6694475d690824feb4a1cb8b4cb232857700694c
29
30depends_build   port:pkgconfig \
31                port:intltool \
32                port:gnome-doc-utils \
33                port:autoconf \
34                port:automake \
35                port:libtool
36
37depends_lib     path:lib/pkgconfig/gimp-2.0.pc:gimp2 \
38                port:openjpeg15
39
40patchfiles      patch-autogen.sh.diff \
41                INIT_Il8N-return.patch \
42                stdbool.patch
43
44post-patch {
45    reinplace "s|#include <malloc.h>||" ${worksrcpath}/src/main.c
46    reinplace "s|#include \"openjpeg.h\"|#include <openjpeg.h>|" ${worksrcpath}/src/interface.h \
47              ${worksrcpath}/src/jp2read.c ${worksrcpath}/src/jp2write.c ${worksrcpath}/src/main.c \
48              ${worksrcpath}/src/main_back.c
49    reinplace "s|MAX_PATH|OPJ_PATH_LEN|" \
50              ${worksrcpath}/src/jp2read.c ${worksrcpath}/src/jp2write.c \
51              ${worksrcpath}/src/main_back.c
52    file delete ${worksrcpath}/src/openjpeg.h
53}
54
55# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
56
57configure.cmd   ./autogen.sh
58configure.cppflags-append -I${prefix}/include/openjpeg-1.5
59
60post-destroot {
61    delete  ${destroot}${prefix}/share/gimp-plugin-template
62}
63
64variant quartz {}
65
66if {[variant_isset quartz]} {
67    require_active_variants gimp2 quartz
68} else {
69    require_active_variants gimp2 "" quartz
70}
71
72livecheck.type  moddate
73livecheck.url   ${master_sites}${distname}${extract.suffix}
Note: See TracBrowser for help on using the repository browser.