aboutsummaryrefslogtreecommitdiffstats
path: root/biology/phylip/Makefile
blob: d3e5590022cf2ddbf6adc1a0231a1e5da34faa4f (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
47
48
49
50
51
52
# Created by: dbader@eece.unm.edu
# $FreeBSD$

PORTNAME=   phylip
PORTVERSION=    3.695
PORTREVISION=   3
PORTEPOCH=  1
CATEGORIES= biology
MASTER_SITES=   http://evolution.gs.washington.edu/phylip/download/

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

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

BUILD_WRKSRC=   ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/src

USE_XORG=   x11 xaw xt
USES=       gmake
MAKEFILE=   Makefile.unx
MAKE_ARGS=  CC="${CC}" CFLAGS="${CFLAGS} -DUNX" \
        DFLAGS="${CFLAGS} -DX -I${LOCALBASE}/include" \
        DLIBS="-L${LOCALBASE}/lib -lX11 -lXaw -lXt -lm"
USE_LDCONFIG=   yes

PORTDOCS=   *
PORTEXAMPLES=   *

OPTIONS_DEFINE= DOCS EXAMPLES

pre-install:
    @(cd ${WRKSRC}/src && ${STRIP_CMD} libdrawtree.so libdrawgram.so)

post-install:
    @cd ${WRKSRC}/exe && \
        ${FIND} . -maxdepth 1 -not -type d -not -name '*.jar' \
        -not -name '*.unx' -not -name 'font*' -not -name '*.so' \
        -exec ${INSTALL_PROGRAM} "{}" "${STAGEDIR}${PREFIX}/bin/{}" \;
    @cd ${WRKSRC}/exe && \
        ${FIND} . -maxdepth 1 -not -type d -name "*.so" \
        -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/lib/{}" \;
    @${MKDIR} ${STAGEDIR}${DATADIR}
    @cd ${WRKSRC}/exe && \
        ${FIND} . -maxdepth 1 -not -type d -name 'font*' \
        -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    @(cd ${WRKSRC}/exe && ${COPYTREE_SHARE} testdata ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>