aboutsummaryrefslogtreecommitdiffstats
path: root/biology/emboss/Makefile
blob: 6abea60a03f629d36657c0058fdefff9da7edbe8 (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
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    emboss
# Date created:     31 July 2000
# Whom:             Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#

PORTNAME=   emboss
PORTVERSION=    6.0.1
PORTREVISION=   1
RELEASE=    ${PORTNAME:U}-${PORTVERSION}
CATEGORIES= biology
MASTER_SITES=   ftp://emboss.open-bio.org/pub/EMBOSS/ \
        ftp://ftp.ebi.ac.uk/pub/software/unix/EMBOSS/
DISTNAME=   ${RELEASE}
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= fernan@iib.unsam.edu.ar
COMMENT=    A collection of open source tools for genetic sequence analysis

BUILD_DEPENDS=  clustalw:${PORTSDIR}/biology/clustalw \
        primer3:${PORTSDIR}/biology/primer3
LIB_DEPENDS=    gd.4:${PORTSDIR}/graphics/gd \
        png.5:${PORTSDIR}/graphics/png

CONFLICTS=  qmail-ldap-[0-9]* digest-[0-9]*

PREFIX?=    ${LOCALBASE}/emboss
NO_MTREE=   yes
USE_SUBMAKE=    yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libtool:15
USE_LDCONFIG=   yes
USE_MOTIF=  yes
SUB_FILES=  pkg-message
SUB_LIST=   PREFIX=${PREFIX} DATADIR=${DATADIR}

DOCSDIR=    ${PREFIX}/share/${PORTNAME:U}/doc
DATADIR=    ${PREFIX}/share/${PORTNAME:U}

CONFIGURE_ARGS+= --with-docroot=${DOCSDIR}

.if !defined(WITHOUT_X11)
USE_XORG=   x11
USE_MOTIF=  yes
LIB_DEPENDS+=   gd.4:${PORTSDIR}/graphics/gd \
        png.5:${PORTSDIR}/graphics/png
.else
CONFIGURE_ARGS+= --without-x
.endif

DOC_DIRS=   doc/manuals doc/tutorials doc/programs/text doc/programs/html
CONFIG_FILE=    ${WRKSRC}/emboss/emboss.default.template

pre-install:
    @ ${REINPLACE_CMD} -e 's#%%DATADIR%%#${DATADIR}#' ${CONFIG_FILE}

post-install:
    ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DATADIR}/emboss.default.template
    @ ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>