summaryrefslogtreecommitdiff
path: root/biology/ngs-sdk/Makefile
blob: 7c4199fcd783a2a59fb282c416f3bd9067a6c4de (plain)
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

PORTNAME=	ngs
DISTVERSION=	2.11.0
CATEGORIES=	biology
PKGNAMESUFFIX=	-sdk

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Tools and libraries for using data in the INSDC Sequence Read Archives

LICENSE=	PD
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_aarch64=		fails to configure: unsupported architecture 'FreeBSD'
BROKEN_riscv64=		fails to configure: unsupported architecture 'FreeBSD'
NOT_FOR_ARCHS=		powerpc64
NOT_FOR_ARCHS_REASON=	os-arch.prl needs to be taught about powerpc64

USES=		gmake perl5
GNU_CONFIGURE=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	ncbi
ALL_TARGET=	default
USE_LDCONFIG=	yes

CFLAGS+=	-I${WRKSRC}/ngs-sdk/ngs/unix/${ARCH}/

post-patch:
	@cd ${WRKSRC}/ngs-sdk/ngs/unix && ${LN} -s x86_64 amd64

do-install:
	cd ${WRKSRC}/ngs-sdk && ${COPYTREE_SHARE} ngs ${STAGEDIR}/${PREFIX}/include
	${INSTALL_PROGRAM} ${WRKSRC}/ngs-sdk/${ARCH}-portbld-*/ngs-sdk/FreeBSD/clang/${ARCH}/rel/lib/libngs-sdk.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/
	cd ${STAGEDIR}${PREFIX}/lib/ && \
		${LN} -s libngs-sdk.so.${DISTVERSION} libngs-sdk.so.${DISTVERSION:R:R} && \
		${LN} -s libngs-sdk.so.${DISTVERSION:R:R} libngs-sdk.so
.for l in libngs-c++.a libngs-adapt-c++.a
	${INSTALL_LIB} ${WRKSRC}/ngs-sdk/${ARCH}-portbld-*/ngs-sdk/FreeBSD/clang/${ARCH}/rel/lib/${l}.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/${l}
.endfor

.include <bsd.port.mk>