aboutsummaryrefslogtreecommitdiffstats
path: root/science/hdf/Makefile
blob: 41bd19b4c23976f9a50923f8d052064bb4ae234c (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
# Created by: mi
# $FreeBSD$

PORTNAME=   hdf
DISTVERSION=    4.2.8
PORTREVISION=   4
PORTEPOCH=  1
CATEGORIES= science archivers graphics
MASTER_SITES=   http://www.hdfgroup.org/ftp/HDF/releases/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME:tu}${PORTVERSION}/src/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Hierarchical Data Format library (from NCSA)

LIB_DEPENDS=    libjpeg.so:${PORTSDIR}/graphics/jpeg \
        libsz.so:${PORTSDIR}/science/szip

CONFLICTS=  netcdf-*

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-jpeg="${LOCALBASE}" \
        --with-szlib="${LOCALBASE}" \
        --enable-shared
INSTALL_TARGET= install-strip
USES=       fortran libtool tar:bzip2
USE_LDCONFIG=   yes

BROKEN_powerpc= Does not compile on powerpc

post-patch:
    @${REINPLACE_CMD} -e \
        '/PROD_/s|=.*|=""|' ${WRKSRC}/config/freebsd

post-install:
    ${INSTALL_MAN} ${WRKSRC}/man/hdfunpac.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 ${STAGEDIR}${MAN3PREFIX}/man/man3

check regression-test test: build
    @(cd ${WRKSRC}/hdf/test && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)

.include <bsd.port.mk>