1997-11-03 07:10:43 -05:00
|
|
|
# New ports collection makefile for: HDF_lib
|
1998-06-04 19:19:31 -04:00
|
|
|
# Version required: 4.1r2
|
1997-11-03 07:10:43 -05:00
|
|
|
# Date created: 17 November 1996
|
|
|
|
# Whom: mi
|
|
|
|
#
|
1999-08-25 02:16:32 -04:00
|
|
|
# $FreeBSD$
|
1997-11-03 07:10:43 -05:00
|
|
|
#
|
|
|
|
|
1998-06-04 19:19:31 -04:00
|
|
|
DISTNAME= HDF4.1r2
|
|
|
|
PKGNAME= hdf-4.1r2
|
1997-11-03 07:10:43 -05:00
|
|
|
CATEGORIES= graphics
|
1998-06-04 19:19:31 -04:00
|
|
|
MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF4.1r2/tar/
|
1997-11-03 07:10:43 -05:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.ziplink.net
|
|
|
|
|
1998-09-15 07:46:15 -04:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
1997-11-03 07:10:43 -05:00
|
|
|
|
1998-08-21 19:11:03 -04:00
|
|
|
MAN1= hdf.1 hdfunpac.1 ncdump.1 ncgen.1
|
|
|
|
|
1997-11-03 07:10:43 -05:00
|
|
|
GNU_CONFIGURE= yes
|
1998-06-04 19:19:31 -04:00
|
|
|
FC?= f77 # Can also be g77 for the newer one
|
|
|
|
MAKE_FLAGS= CC="$(CC)" FC="${FC}" -f
|
1998-08-21 17:40:02 -04:00
|
|
|
MAKE_ENV= pwrkdir=${WRKDIR}
|
|
|
|
#"wrkdir" doesn't work for some reason in the above
|
1997-11-03 07:10:43 -05:00
|
|
|
|
|
|
|
# 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:
|
1998-08-21 17:40:02 -04:00
|
|
|
${AR} -r ${WRKDIR}/libz.a /dev/null
|
|
|
|
${RANLIB} ${WRKDIR}/libz.a
|
1997-11-03 07:10:43 -05:00
|
|
|
test -d ${WRKSRC}/hdf/jpeg.came-with-HDF || \
|
|
|
|
${MV} -f ${WRKSRC}/hdf/jpeg ${WRKSRC}/hdf/jpeg.came-with-HDF
|
|
|
|
-${MKDIR} ${WRKSRC}/hdf/jpeg
|
|
|
|
${RM} -f ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
${ECHO} #Phony makefile > ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
${ECHO} >> ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
${ECHO} libjpeg.a: >> ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
printf '\t@echo Using the already installed JPEG library\n' \
|
|
|
|
>> ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
printf '\nclean:\n\ttrue\n' >> ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
printf '\ninstall-lib:\n\ttrue\n' >> ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
printf '\ninstall:\n\ttrue\n' >> ${WRKSRC}/hdf/jpeg/Makefile
|
|
|
|
-ln -s ${PREFIX}/lib/libjpeg* ${WRKSRC}/hdf/jpeg/
|
|
|
|
-ln -s ${PREFIX}/include/j*.h ${WRKSRC}/hdf/jpeg/
|
|
|
|
test -d ${WRKSRC}/hdf/zlib.came-with-HDF || \
|
|
|
|
${MV} -f ${WRKSRC}/hdf/zlib ${WRKSRC}/hdf/zlib.came-with-HDF
|
|
|
|
-${MKDIR} ${WRKSRC}/hdf/zlib
|
|
|
|
${RM} -f ${WRKSRC}/hdf/zlib/Makefile
|
|
|
|
${ECHO} #Phony makefile > ${WRKSRC}/hdf/zlib/Makefile
|
|
|
|
${ECHO} >> ${WRKSRC}/hdf/zlib/Makefile
|
|
|
|
${ECHO} libzlib.a: >> ${WRKSRC}/hdf/zlib/Makefile
|
|
|
|
printf '\t@echo Using the already installed ZLIB library\n' \
|
|
|
|
>> ${WRKSRC}/hdf/zlib/Makefile
|
|
|
|
printf '\nclean:\n\ttrue\n' >> ${WRKSRC}/hdf/zlib/Makefile
|
|
|
|
printf '\ninstall-lib:\n\ttrue\n' >> ${WRKSRC}/hdf/zlib/Makefile
|
|
|
|
printf '\ninstall:\n\ttrue\n' >> ${WRKSRC}/hdf/zlib/Makefile
|
1998-06-04 19:19:31 -04:00
|
|
|
-ln -s /usr/lib/${BINFORMAT}/libz* ${WRKSRC}/hdf/zlib/
|
1997-11-03 07:10:43 -05:00
|
|
|
-ln -s /usr/include/zconf.h /usr/include/zlib.h ${WRKSRC}/hdf/zlib/
|
|
|
|
|
|
|
|
post-install:
|
1999-08-23 00:23:59 -04:00
|
|
|
@for binary in `${GREP} ^bin/ ${PLIST}` ; do strip ${PREFIX}/$$binary; done
|
1997-11-03 07:10:43 -05:00
|
|
|
|
|
|
|
test:
|
1998-06-04 19:19:31 -04:00
|
|
|
cd ${WRKSRC}; make ${MAKE_FLAGS} ${MAKEFILE} test
|
1997-11-03 07:10:43 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|