blob: 7d8cb309bdb9f5d7a27094da00a40dc464cbe948 (
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
|
# Created by: Fernan Aguero <fernan@iib.unsam.edu.ar>
# $FreeBSD$
PORTNAME= blat
PORTVERSION= 36
CATEGORIES= biology
MASTER_SITES= http://hgwdev.cse.ucsc.edu/~kent/src/ \
http://users.soe.ucsc.edu/~kent/src/
DISTNAME= ${PORTNAME}Src${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast tool for local sequence similarity searches
LIB_DEPENDS= libpng.so:graphics/png
OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/${PORTNAME}Src
USES= gmake zip
USE_OPENSSL= yes
MAKEFILE= makefile
MAKE_ENV= MACHTYPE="${ARCH}" STRIP="${TRUE}"
MAKE_ARGS= HOME="${WRKSRC}/${BINDIR}"
USE_MYSQL= yes
LDFLAGS+= -L${LOCALBASE}/lib/mysql
CPPFLAGS+= $$(libpng-config --cflags)
LDFLAGS+= $$(libpng-config --ldflags)
SUB_FILES= pkg-message
PLIST_FILES= ${EXECUTABLES:S,^,bin/,} \
lib/blat/webBlat/webBlat \
lib/blat/webBlat/install.txt
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)
.include <bsd.port.mk>
|