blob: ec16fe05eba86382a541e2560be72c7b65927262 (
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
|
PORTNAME= emboss
PORTVERSION= 6.6.0
PORTREVISION= 6
CATEGORIES= biology
MASTER_SITES= ftp://emboss.open-bio.org/pub/EMBOSS/
DISTNAME= ${PORTNAME:tu}-${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= wen@FreeBSD.org
COMMENT= Collection of open source tools for genetic sequence analysis
LICENSE= GPLv2
BUILD_DEPENDS= clustalw:biology/clustalw \
primer3:biology/primer3
LIB_DEPENDS= libgd.so:graphics/gd \
libpng.so:graphics/png
USES= gmake libtool iconv mysql pgsql ssl
USE_SUBMAKE= yes
CONFLICTS= qmail-ldap digest
PREFIX?= ${LOCALBASE}/emboss
NO_MTREE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
SUB_FILES= pkg-message emboss-shell
SUB_LIST= PREFIX=${PREFIX} DATADIR=${DATADIR}
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+=${ICONV_CONFIGURE_ARG}
INSTALL_TARGET= install-strip
DOCSDIR= ${PREFIX}/share/${PORTNAME:tu}/doc
DATADIR= ${PREFIX}/share/${PORTNAME:tu}
OPTIONS_DEFINE= DOCS X11
OPTIONS_DEFAULT= X11
DOCS_CONFIGURE_ON= --with-docroot=${DOCSDIR}
X11_USES= motif xorg
X11_USE= XORG=x11
X11_LIB_DEPENDS= libgd.so:graphics/gd \
libpng.so:graphics/png
X11_CONFIGURE_OFF= --without-x
CONFIG_FILE= ${WRKSRC}/emboss/emboss.default.template
post-patch:
@${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/configure
post-build:
${CC} -DEMBOSS_PREFIX="\"${PREFIX}\"" ${FILESDIR}/emboss.c -o ${WRKDIR}/emboss
pre-install:
@ ${REINPLACE_CMD} -e 's#%%DATADIR%%#${PREFIX}/share/${PORTNAME:tu}#' ${CONFIG_FILE}
post-install:
@${MKDIR} ${STAGEDIR}${LOCALBASE}/bin
${INSTALL_SCRIPT} ${WRKDIR}/emboss-shell ${STAGEDIR}${LOCALBASE}/bin
${INSTALL_DATA} ${CONFIG_FILE} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKDIR}/emboss ${STAGEDIR}${LOCALBASE}/bin
.include <bsd.port.mk>
|