source: trunk/dports/aqua/HandBrake71/Portfile

Last change on this file was 134730, checked in by ionic@…, 2 years ago

HandBrake71: correctly obsolete and replace by HandBrake on OS X > 10.5.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 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 134730 2015-04-05 21:26:24Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            HandBrake71
7version         0.7.1
8conflicts   HandBrake
9platforms       darwin
10categories      aqua multimedia
11maintainers     nomaintainer
12description     DVD to MPEG4 converter
13long_description        HandBrake is a GPL'd multi-platform, heavily \
14                        multithreaded DVD to MPEG-4 converter. \
15                        - Can encode directly from DVDs (even encrypted ones) \
16                        - Outputs MP4, AVI or OGM files \
17                        - Outputs AAC, MP3 or Vorbis audio \
18                        - Supports 2-pass encoding \
19                        - Supports encoding of two audio tracks \
20                        - Includes a bitrate calculator \
21                        - Supports picture cropping and scaling
22homepage        http://handbrake.fr/
23master_sites    http://download.handbrake.fr/handbrake/old/:h \
24                                http://download.handbrake.fr/handbrake/contrib/:c
25dist_subdir     HandBrake
26distname    HandBrake-${version}
27distfiles       HandBrake-${version}.tar.gz:h a52dec-0.7.4.tar.gz:c \
28                ffmpeg-20060201.tar.gz:c libdvdcss-1.2.9.tar.gz:c \
29                libdvdread-20050928.tar.gz:c faac-1.24.tar.gz:c \
30                lame-3.96.1.tar.gz:c mpeg4ip-1.3.tar.gz:c \
31                mpeg2dec-20051112.tar.gz:c libogg-1.1.2.tar.gz:c \
32                libsamplerate-0.1.2.tar.gz:c libvorbis-1.1.1.tar.gz:c \
33                x264-r401.tar.gz:c xvidcore-1.1.0.tar.gz:c
34checksums       \
35        HandBrake-0.7.1.tar.gz sha1 7b113bc09cb95877634305871c24594303b6fe19 \
36        a52dec-0.7.4.tar.gz sha1 7c406b9b5351cdec56279b6d02f3f556711424d2 \
37        ffmpeg-20060201.tar.gz sha1 0984667db8f6e54632af75ce8cfad616ee2ba8ac \
38        libdvdcss-1.2.9.tar.gz sha1 2a9b2642bc298d315bb0b6de45a45d9cb696cfc7 \
39        libdvdread-20050928.tar.gz sha1 f735156e9257ec9c863b2d63356eb386650b2991 \
40        faac-1.24.tar.gz sha1 fc47715e562b980a95b8cd3b2cc516214f8ec8c4 \
41        lame-3.96.1.tar.gz sha1 7efa3fe278fc4d4a16a217e973461591428c20c8 \
42        mpeg4ip-1.3.tar.gz sha1 3c5987f51d0bbd49775b45f667cf46a628c4f87a \
43        mpeg2dec-20051112.tar.gz sha1 f07fb2cee4bb7494d82f2b5920b53dcd3050bf7c \
44        libogg-1.1.2.tar.gz sha1 fd4e2c3ce6d98dcb684ed0a09c3b2315888e4442 \
45        libsamplerate-0.1.2.tar.gz sha1 677598eb121d892d04ac727cd0ec307a29cd2bc9 \
46        libvorbis-1.1.1.tar.gz sha1 b29438f0bc1992000037e375277cdbe095712e2a \
47        x264-r401.tar.gz sha1 c9ca8892c22e1d04d1da041c3fc969e9071af15a \
48        xvidcore-1.1.0.tar.gz sha1 f935492cf32a119c411e8b649ba6ebec1cf54454
49
50depends_build   bin:jam:jam
51
52extract.only    HandBrake-${version}.tar.gz
53set contrib             ${worksrcpath}/contrib
54
55if {${os.major} > 9} {
56    # Remove conflict on HandBrake
57    conflicts
58
59    # Let this port be replaced by HandBrake.
60    replaced_by HandBrake
61
62    # No distfiles for a stub port.
63    master_sites
64    distfiles
65    extract.only
66    checksums
67
68    # Clear dependencies.
69    depends_build
70
71    # Revbump to *really* let people upgrade to the new HandBrake port.
72    revision 1
73
74    pre-configure {
75        ui_error "Please do not install this port since it has been replaced by 'HandBrake'."
76        return -code error
77    }
78
79    livecheck.type none
80} else {
81    post-extract {
82        file copy ${distpath}/a52dec-0.7.4.tar.gz ${contrib}/a52dec.tar.gz
83        file copy ${distpath}/ffmpeg-20060201.tar.gz ${contrib}/ffmpeg.tar.gz
84        file copy ${distpath}/libdvdcss-1.2.9.tar.gz ${contrib}/libdvdcss.tar.gz
85        file copy ${distpath}/libdvdread-20050928.tar.gz ${contrib}/libdvdread.tar.gz
86        file copy ${distpath}/faac-1.24.tar.gz ${contrib}/faac.tar.gz
87        file copy ${distpath}/lame-3.96.1.tar.gz ${contrib}/lame.tar.gz
88        file copy ${distpath}/mpeg4ip-1.3.tar.gz ${contrib}/mpeg4ip.tar.gz
89        file copy ${distpath}/mpeg2dec-20051112.tar.gz ${contrib}/mpeg2dec.tar.gz
90        file copy ${distpath}/libogg-1.1.2.tar.gz ${contrib}/libogg.tar.gz
91        file copy ${distpath}/libsamplerate-0.1.2.tar.gz ${contrib}/libsamplerate.tar.gz
92        file copy ${distpath}/libvorbis-1.1.1.tar.gz ${contrib}/libvorbis.tar.gz
93        file copy ${distpath}/x264-r401.tar.gz ${contrib}/x264.tar.gz
94        file copy ${distpath}/xvidcore-1.1.0.tar.gz ${contrib}/xvidcore.tar.gz
95    }
96
97    build.cmd   jam
98    build.target
99    build.env   CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
100    destroot    {
101        copy ${worksrcpath}/HandBrake.app ${destroot}${applications_dir}
102    }
103}
Note: See TracBrowser for help on using the repository browser.