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

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

jpeg6b: set to nomaintainer. added replaced_by

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