source: trunk/dports/graphics/jpeg6b/Portfile @ 68471

Last change on this file since 68471 was 68471, checked in by ryandesign@…, 9 years ago

Set svn:keywords to Id per current guidelines

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 68471 2010-06-04 09:16:10Z ryandesign@macports.org $
3
4PortSystem  1.0
5
6set realname    jpeg
7version         6b
8name            ${realname}${version}
9
10categories  graphics
11maintainers takeshi openmaintainer
12description Library for manipulating JPEG images
13long_description  \
14  This distribution contains the sixth public release of the  \
15  Independent JPEG Group's free JPEG software. You are welcome  \
16  to redistribute this software and to use it for any purpose,  \
17  subject to the conditions under LEGAL ISSUES, below.    \
18  Serious users of this software (particularly those    \
19  incorporating it into larger programs) should contact IJG at  \
20  jpeg-info@uunet.uu.net to be added to our electronic mailing  \
21  list.  Mailing list members are notified of updates and have  \
22  a chance to participate in technical discussions, etc.
23
24homepage        http://www.ijg.org/
25platforms       darwin freebsd sunos
26master_sites    http://distfiles.macports.org/${realname}/
27
28distname        ${realname}src.v${version}
29worksrcdir      ${realname}-${version}
30set jpegmain    ${distname}${extract.suffix}
31distfiles       ${jpegmain} \
32                droppatch.tar.gz:drop
33dist_subdir     ${realname}
34               
35checksums       ${jpegmain} md5 dbd5f3b47ed13132f04c685d608a7547 \
36                droppatch.tar.gz md5 511c39779ac96cd41ca1e0a87b239287
37extract.only    ${jpegmain}
38
39patchfiles      patch-config.sub patch-config.guess patch-ltmain.sh \
40                patch-ltconfig patch-makefile.cfg patch-jpeglib.h
41post-patch {
42    system "cd ${worksrcpath} &&
43        tar zxf ${distpath}/droppatch.tar.gz"
44
45    # Reorder link flags so that so that local -L options come first (especially before -L${prefix}/lib)
46    #     (see http://trac.macports.org/ticket/16411).
47    reinplace {s|\(.*\)\($(LDFLAGS)\)\(.*\)\($(LDLIBS)\)\(.*\)|\1\4\3\2\5|} ${worksrcpath}/makefile.cfg
48
49    # As in the case of -L, CPPFLAGS come before -I. during compilation.
50    configure.cppflags-append -isystem${prefix}/include
51    configure.cppflags-delete -I${prefix}/include
52}
53
54configure.args      --prefix=${prefix}/lib/${name} --enable-shared --enable-static
55if {![variant_isset universal]} {
56    configure.ldflags-append   ${configure.cc_archflags}
57}
58
59use_parallel_build  yes
60
61destroot.destdir    prefix=${destroot}${prefix}/lib/${name}
62pre-destroot {
63    xinstall -d ${destroot}${prefix}/lib/${name}/bin
64    xinstall -d ${destroot}${prefix}/lib/${name}/share/man/man1
65    xinstall -d ${destroot}${prefix}/lib/${name}/include
66    xinstall -d ${destroot}${prefix}/lib/${name}/lib
67}
Note: See TracBrowser for help on using the repository browser.