summaryrefslogtreecommitdiff
path: root/science/libccp4/Makefile
blob: 7fd915790bef2a1d0990f0a2284d9fc6a7a343a3 (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
PORTNAME=	libccp4
DISTVERSION=	6.5.1
PORTREVISION=	4
CATEGORIES=	science education
MASTER_SITES=	ftp://ftp.ccp4.ac.uk/opensource/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Protein X-ray crystallography toolkit

LICENSE=	GPLv3 LGPL3
LICENSE_COMB=	dual
LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING
LICENSE_FILE_LGPL3=	${WRKSRC}/COPYING.LESSER

BROKEN_aarch64=		ccp4/ccp4_sysdep.h:244:4: error: "Can't determine machine number format"

LIB_DEPENDS=	libmmdb2.so:science/mmdb2

USES=		fortran gmake libtool localbase:ldflags
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared --disable-static
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

CFLAGS+=	-fPIC
FFLAGS+=	-fPIC -std=legacy

post-configure:
	${REINPLACE_CMD} -e 's| -Wl,--as-needed||; s| -Wl,--no-as-needed||' ${WRKSRC}/Makefile
	${REINPLACE_CMD} -e 's|^archive_cmds=|wl="-Wl,"; archive_cmds=|' ${WRKSRC}/libtool # wl is missing otherwise for some reason

.include <bsd.port.mk>