source: trunk/dports/science/mapm3/Portfile @ 38699

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

mapm3: install a wrapper so the user doesn't have to set the MAPM_LIB environment variable himself

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 38699 2008-07-29 07:26:21Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                mapm3
6version             3
7revision            2
8platforms           darwin
9maintainers         nomaintainer
10categories          science
11description         cli tool for calculating Quantitative Trait Loci
12master_sites        http://www-genome.wi.mit.edu/ftp/distribution/software/mapmaker3/
13
14distname            ${name}-source
15extract.suffix        .tar.Z
16checksums           md5 8aa7a061d32a49c8704c1a5c4b31aa2d
17
18pre-extract         {system "mkdir -p ${worksrcpath}" }
19extract.cmd         uncompress
20extract.pre_args    -c
21extract.post_args   | tar -C ${worksrcpath} -xf -
22
23patchfiles          patch-iolib.h patch-xmapmaker patch-Makefile patch-system.h patch-xqtl
24
25
26
27configure           { reinplace "s|^DIR= /usr/local/bin|DIR= ${prefix}/bin|g" \
28                        "${worksrcpath}/Makefile" }
29
30pre-destroot         { reinplace "s|^DIR= ${prefix}/bin|DIR= ${destroot}${prefix}/bin|g" \
31                        "${worksrcpath}/Makefile"
32                       system "mkdir -p ${destroot}${prefix}/bin "
33                    }
34
35post-destroot {
36    xinstall -d ${destroot}${prefix}/lib/${name}
37    foreach prog {mapmaker qtl} {
38        move ${destroot}${prefix}/bin/${prog} ${destroot}${prefix}/lib/${name}
39        xinstall -m 755 ${filespath}/wrapper.in ${destroot}${prefix}/bin/${prog}
40        reinplace "s%@PREFIX@%${prefix}%g" ${destroot}${prefix}/bin/${prog}
41    }
42}
43
44variant   large_datasets  {
45                                        post-patch { reinplace \
46                                   "s|^SYS= -D_SYS_DARWIN -DUSE_RAND48|SYS= -D_SYS_DARWIN -DUSE_RAND48 -D_BIG_DATASETS|g" \
47                                   "${worksrcpath}/Makefile" }
48                                }
Note: See TracBrowser for help on using the repository browser.