Ticket #32448: Portfile

File Portfile, 2.0 KB (added by abush84@…, 13 years ago)
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$
3
4PortSystem          1.0
5name                cell-id
6version             1.4.6
7categories          biology science
8platforms           darwin
9maintainers         fbmc.fcen.uba.ar:abush
10description         Microscopy based cytometry segmentation software
11long_description    Cell-ID is a command line software that segments bright field \
12                    microscopy images of yeast and mammalian cells, tracks cells \
13                    over time and quantifies morphological and fluorescence \
14                    features for each cell.
15homepage            http://sourceforge.net/projects/cell-id
16master_sites        sourceforge:cell-id
17distfiles           cell_id_1.4.6.zip
18
19checksums           md5     add16051f92ff4b95ba73619cfd33036 \
20                                        sha1    d3e67b45af06d136b137ac2fca1a529e0f5f803b \
21                                        rmd160  1406f30acdd62d87f1135eaa5b8e791663237c70
22
23depends_lib         port:glib2 \
24                    port:tiff
25
26use_zip             yes
27use_configure       no
28distname            cell_id_${version}
29build.target        cell
30build.env           CC=clang
31use_parallel_build no
32
33pre-build {
34        reinplace "s|-static||g" ${worksrcpath}/Makefile
35        reinplace "s|-I/local|-I${prefix}|g" ${worksrcpath}/Makefile
36        reinplace "s|-L/local/lib|-I${prefix}/lib/glib-2.0/include -L${prefix}/lib|g" ${worksrcpath}/Makefile
37        reinplace "s|rm cell|rm -f cell|g" ${worksrcpath}/Makefile
38        reinplace "s|gcc|\$(CC)|g" ${worksrcpath}/Makefile
39        exec rm -f ${worksrcpath}/cell ${worksrcpath}/cell.o ${worksrcpath}/tif.o ${worksrcpath}/segment.o ${worksrcpath}/contiguous.o ${worksrcpath}/nums.o ${worksrcpath}/date_and_time.o ${worksrcpath}/fit.o ${worksrcpath}/fft.o ${worksrcpath}/fft_stats.o ${worksrcpath}/split_and_overlap.o ${worksrcpath}/fl_dist.o ${worksrcpath}/align_image.o ${worksrcpath}/flatten.o
40}
41
42destroot {
43        file copy ${worksrcpath}/cell ${destroot}/${prefix}/bin/cell
44}