aboutsummaryrefslogtreecommitdiffstats
path: root/science/hdf5-18/Makefile
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>1998-08-22 05:40:02 +0800
committerhoek <hoek@FreeBSD.org>1998-08-22 05:40:02 +0800
commitb125264952920dad20bc92d895d55cb6cee866b2 (patch)
tree5eacd4257127bc5fd1849314634862a65a91cc5e /science/hdf5-18/Makefile
parent79d7c5b2a3bc46f060763fcf5e65c0acc3cf33b7 (diff)
downloadfreebsd-ports-gnome-b125264952920dad20bc92d895d55cb6cee866b2.tar.gz
freebsd-ports-gnome-b125264952920dad20bc92d895d55cb6cee866b2.tar.zst
freebsd-ports-gnome-b125264952920dad20bc92d895d55cb6cee866b2.zip
Respect prefix. Make this build on -current by changing
"cc /usr/lib/libz.a" to "cc -lz".
Diffstat (limited to 'science/hdf5-18/Makefile')
-rw-r--r--science/hdf5-18/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/science/hdf5-18/Makefile b/science/hdf5-18/Makefile
index a27f3eca57f5..220d5de2ce5d 100644
--- a/science/hdf5-18/Makefile
+++ b/science/hdf5-18/Makefile
@@ -3,7 +3,7 @@
# Date created: 17 November 1996
# Whom: mi
#
-# $Id: Makefile,v 1.3 1998/04/08 12:53:43 tg Exp $
+# $Id: Makefile,v 1.4 1998/06/04 23:18:46 steve Exp $
#
DISTNAME= HDF4.1r2
@@ -18,12 +18,16 @@ LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
GNU_CONFIGURE= yes
FC?= f77 # Can also be g77 for the newer one
MAKE_FLAGS= CC="$(CC)" FC="${FC}" -f
+MAKE_ENV= pwrkdir=${WRKDIR}
+#"wrkdir" doesn't work for some reason in the above
# This will create dummy Makefiles and some links in the jpeg and libz
# subdirectories. This way, we do not need to hunt all the dependencies
# out. Shame on the lib's developers, though, this can not be done through
# `configure'. -mi
pre-build:
+ ${AR} -r ${WRKDIR}/libz.a /dev/null
+ ${RANLIB} ${WRKDIR}/libz.a
test -d ${WRKSRC}/hdf/jpeg.came-with-HDF || \
${MV} -f ${WRKSRC}/hdf/jpeg ${WRKSRC}/hdf/jpeg.came-with-HDF
-${MKDIR} ${WRKSRC}/hdf/jpeg