blob: c9c6ce6bc03bf13570ec6a054f41d8b88b88d6b2 (
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
64
65
66
67
68
69
|
# Created by: Fernan Aguero <fernan@iib.unsam.edu.ar>
# $FreeBSD$
PORTNAME= blat
PORTVERSION= 35
CATEGORIES= biology
MASTER_SITES= http://hgwdev.cse.ucsc.edu/~kent/src/ \
http://users.soe.ucsc.edu/~kent/src/
DISTNAME= ${PORTNAME}Src${PORTVERSION}
EXTRACT_SUFX= .zip
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast tool for local sequence similarity searches
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/${PORTNAME}Src
USES= gmake
USE_OPENSSL= yes
MAKEFILE= makefile
MAKE_ENV= MACHTYPE="${ARCH}" HOME="${WRKSRC}/${BINDIR}" STRIP="${TRUE}"
CPPFLAGS+= $$(libpng-config --cflags)
LDFLAGS+= $$(libpng-config --ldflags)
SUB_FILES= pkg-message
PORTDOCS= README
PLIST_FILES= ${EXECUTABLES:S,^,bin/,} \
lib/blat/webBlat/webBlat \
lib/blat/webBlat/install.txt
PLIST_DIRS= lib/blat/webBlat \
lib/blat
EXECUTABLES= blat faToNib faToTwoBit gfClient gfServer nibFrag \
pslPretty pslReps pslSort twoBitInfo twoBitToFa
.include <bsd.port.options.mk>
post-patch:
@${MKDIR} ${WRKSRC}/bin/${ARCH}
@${MKDIR} ${WRKSRC}/lib/${ARCH}
@${FIND} ${WRKSRC} -name "makefile" | ${XARGS} ${REINPLACE_CMD} -e \
's|$${DESTDIR}||g'
@${REINPLACE_CMD} -e \
's|cd |$$(MAKE) -C | ; \
s| &&.*||' ${WRKSRC}/makefile
@${REINPLACE_CMD} -e \
's|^CC=|CC?=| ; \
s|^COPT=.*|COPT=$${CPPFLAGS}| ; \
s|^L=.*|L=$${LDFLAGS}|' ${WRKSRC}/inc/common.mk
do-install:
.for exe in ${EXECUTABLES}
(cd ${WRKSRC}/bin/${ARCH} && ${INSTALL_PROGRAM} ${exe} \
${STAGEDIR}${PREFIX}/bin)
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/blat/webBlat
(cd ${WRKSRC}/webBlat && ${INSTALL_PROGRAM} webBlat \
${STAGEDIR}${PREFIX}/lib/blat/webBlat)
(cd ${WRKSRC}/webBlat && ${INSTALL_DATA} install.txt \
${STAGEDIR}${PREFIX}/lib/blat/webBlat)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|