# Created by: Fernan Aguero # $FreeBSD: head/biology/blat/Makefile 412344 2016-04-01 13:29:15Z mat $ 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 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