summaryrefslogtreecommitdiff
path: root/devel/hdf/Makefile
diff options
context:
space:
mode:
authorjtb <jtb>2001-03-25 01:09:49 +0000
committerjtb <jtb>2001-03-25 01:09:49 +0000
commita59c0a91fb409bac9b67673fe6cd32f812d17de0 (patch)
tree54a46685c0a6b8ead0e4fbed937caa36b10c67a8 /devel/hdf/Makefile
parentb607fa9a2afbfc56cb04d3858a0f63cc74327cbc (diff)
downloadpkgsrc-a59c0a91fb409bac9b67673fe6cd32f812d17de0.tar.gz
Build only static libraries since part of the library is written in
Fortran, libf2c is static, etc. Fixed "hdfi.h" to work with any architecture supported by NetBSD. Use "xdrposix.c" instead of "xdrstdio.c" since the latter seems to be missing some functions. Fixed "initialization from incompatible pointer type" warnings. General improvements to Makefiles. Should build/work on any NetBSD system now.
Diffstat (limited to 'devel/hdf/Makefile')
-rw-r--r--devel/hdf/Makefile19
1 files changed, 3 insertions, 16 deletions
diff --git a/devel/hdf/Makefile b/devel/hdf/Makefile
index 44373a68c39..02cb939fc54 100644
--- a/devel/hdf/Makefile
+++ b/devel/hdf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2001/03/22 23:19:16 jtb Exp $
+# $NetBSD: Makefile,v 1.6 2001/03/25 01:09:49 jtb Exp $
DISTNAME= HDF4.1r4
PKGNAME= hdf-4.1r4
@@ -10,18 +10,13 @@ MAINTAINER= jtb@netbsd.org
HOMEPAGE= http://hdf.ncsa.uiuc.edu/hdf4.html
COMMENT= NCSA Hierarchical Data Format
-DEPENDS+= f2c-[0-9]*:../../lang/f2c
DEPENDS+= jpeg-[0-9]*:../../graphics/jpeg
USE_FORTRAN= #defined
-F2CBASE_DEFAULT=${LOCALBASE}
-EVAL_PREFIX+= JPEGBASE=jpeg F2CBASE=f2c
-
-.if (${MACHINE_ARCH} == "alpha")
-MAKE_ENV+="CPPFLAGS=-DDEC_ALPHA"
-.endif
+EVAL_PREFIX+= JPEGBASE=jpeg
+# This is ugly, but saves 31 patches
post-patch:
for i in fortran/config/jackets-fbsd.c \
fortran/fort_ps/mfhdfp.h fortran/jackets.src \
@@ -50,14 +45,6 @@ post-patch:
${MV} -f ${WRKSRC}/mfhdf/ncgen/ncgen.1 \
${WRKSRC}/mfhdf/ncgen/hdfncgen.1
-pre-build:
- (cd ${WRKSRC}/hdf/src; for i in *.f; do \
- ${F2CBASE}/bin/f2c $$i; \
- done)
- (cd ${WRKSRC}/mfhdf/fortran; for i in *.f; do \
- ${F2CBASE}/bin/f2c $$i; \
- done)
-
pre-configure:
${CC} ${FILESDIR}/bytesex.c -o ${WRKSRC}/bytesex