aboutsummaryrefslogtreecommitdiffstats
path: root/biology/phylip/Makefile
blob: c64564a1d2d3f9a753075201a399b973ee8040ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    phylip
# Date created:             4 July 2000
# Whom:                 dbader@eece.unm.edu
#
# $FreeBSD$
#

PORTNAME=   phylip
PORTVERSION=    3.67
PORTREVISION=   1
PORTEPOCH=  1
CATEGORIES= biology
MASTER_SITES=   ftp://evolution.genetics.washington.edu/pub/phylip/ \
        http://bioinformatics.weizmann.ac.il/software/linkage_and_mapping/phylip/ \
        ${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Phylogeny Inference Package

BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash

USE_XORG=   x11 xaw xt
USE_GMAKE=  yes
BUILD_WRKSRC=   ${WRKSRC}/src
INSTALL_WRKSRC= ${BUILD_WRKSRC}

MAKE_ARGS=  CC="${CC} ${CFLAGS}" \
        DC="${CC} -DX -I${LOCALBASE}/include ${CFLAGS}" \
        DLIBS="-L${LOCALBASE}/lib -lX11 -lXaw -lXt"

PORTDOCS=   *

post-install:
    @cd ${WRKSRC}/exe && \
        ${FIND} . -not -type d -not -name 'font*' -exec ${INSTALL_PROGRAM} "{}" "${PREFIX}/bin/{}" \;
    ${MKDIR} ${DATADIR}
    @cd ${WRKSRC}/exe && \
        ${FIND} . -not -type d -name 'font*' -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    @cd ${WRKSRC}/doc && \
        ${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif

.include <bsd.port.mk>