View | Details | Raw Unified | Return to bug 146415
Collapse All | Expand All

(-)/usr/ports/sunpoet/netcdf/Makefile (-24 / +14 lines)
Lines 9-36 Link Here
9
PORTVERSION=	3.6.3
9
PORTVERSION=	3.6.3
10
PORTREVISION=	4
10
PORTREVISION=	4
11
CATEGORIES=	science
11
CATEGORIES=	science
12
MASTER_SITES=	ftp://ftp.unidata.ucar.edu/pub/netcdf/	\
12
MASTER_SITES=	http://www.unidata.ucar.edu/downloads/netcdf/ftp/ \
13
		ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
13
		http://sunpoet.net/distfiles/
14
		http://sunpoet.net/distfiles/
14
15
15
MAINTAINER=	sunpoet@sunpoet.net
16
MAINTAINER=	sunpoet@sunpoet.net
16
COMMENT?=	Library for machine-independent, array-oriented data access
17
COMMENT?=	Library for machine-independent, array-oriented data access
17
18
18
CONFLICTS=	hdf-4.* netcdf-4.*
19
CONFLICTS=	hdf-4.* netcdf-4.*
20
PORTSCOUT=	limit:^3\.
19
21
20
CONFIGURE_ARGS=	--enable-shared
22
CONFIGURE_ARGS=	--enable-shared
21
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC ${FTNTYPE}"
23
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC"
22
23
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
24
USE_LDCONFIG=	yes
25
USE_LDCONFIG=	yes
25
#CONFIGURE_ENV+=	${MAKE_ENV}
26
27
SLAVEDIRS=	science/netcdf-ftn
28
29
MAN1=		ncdump.1 ncgen.1
30
MAN3=		netcdf.3
31
26
32
INFO=		netcdf netcdf-c netcdf-cxx netcdf-f77 netcdf-f90 \
27
INFO=		netcdf netcdf-c netcdf-cxx netcdf-f77 netcdf-f90 \
33
		netcdf-install netcdf-tutorial
28
		netcdf-install netcdf-tutorial
29
MAN1=		ncdump.1 ncgen.1
30
MAN3=		netcdf.3
34
31
35
OPTIONS=	FORTRAN "Build library for Fortran" off
32
OPTIONS=	FORTRAN "Build library for Fortran" off
36
33
Lines 38-64 Link Here
38
CONFIGURE_ARGS+=--enable-docs-install
35
CONFIGURE_ARGS+=--enable-docs-install
39
.else
36
.else
40
CONFIGURE_ARGS+=--disable-docs-install
37
CONFIGURE_ARGS+=--disable-docs-install
41
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-man-Makefile.in
42
.endif
43
44
.if !defined(NOPORTEXAMPLES)
45
CONFIGURE_ARGS+=--enable-examples
46
.else
47
CONFIGURE_ARGS+=--disable-examples
48
.endif
38
.endif
49
39
50
.include <bsd.port.pre.mk>
40
.include <bsd.port.pre.mk>
51
41
52
.if defined(WITH_FORTRAN)
42
.if defined(WITH_FORTRAN)
53
USE_FORTRAN=	yes
43
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS} -DpgiFortran"
54
PKGNAMESUFFIX+=	-ftn
55
CONFLICTS+=	netcdf-3.*
44
CONFLICTS+=	netcdf-3.*
56
MAN3+=		netcdf_f77.3 netcdf_f90.3
45
MAN3+=		netcdf_f77.3 netcdf_f90.3
46
PKGNAMESUFFIX+=	-ftn
57
PLIST_SUB+=	FORTRAN=""
47
PLIST_SUB+=	FORTRAN=""
58
FTNTYPE=	-DpgiFortran
48
USE_FORTRAN=	yes
59
.else
49
.else
50
CONFIGURE_ARGS+=--disable-f77 --disable-f90
60
CONFLICTS+=	netcdf-ftn-3.*
51
CONFLICTS+=	netcdf-ftn-3.*
61
CONFIGURE_ARGS+=--disable-f77
62
PLIST_SUB+=	FORTRAN="@comment "
52
PLIST_SUB+=	FORTRAN="@comment "
63
.endif
53
.endif
64
54
Lines 69-78 Link Here
69
	@${REINPLACE_CMD} -e \
59
	@${REINPLACE_CMD} -e \
70
		'271 s/\(info_docs\).*/html_docs\)/' \
60
		'271 s/\(info_docs\).*/html_docs\)/' \
71
		${WRKSRC}/man4/Makefile.in
61
		${WRKSRC}/man4/Makefile.in
72
62
.if defined(NOPORTDOCS)
73
post-install:
63
	@${REINPLACE_CMD} -e '790 s/install-docDATA //' \
74
	${LN} -fs libnetcdf.so.4 ${PREFIX}/lib/libnetcdf.so
64
		${WRKSRC}/man/Makefile.in
75
	${LN} -fs libnetcdf_c++.so.4 ${PREFIX}/lib/libnetcdf_c++.so
65
.endif
76
66
77
regression-test: build
67
regression-test: build
78
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
68
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
(-)/usr/ports/sunpoet/netcdf/files/extra-patch-man-Makefile.in (-17 lines)
Lines 1-17 Link Here
1
--- man/Makefile.in.orig	2008-06-30 01:25:05.000000000 +0800
2
+++ man/Makefile.in	2008-08-29 23:58:27.317775084 +0800
3
@@ -683,14 +683,6 @@
4
 	  rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \
5
 	done
6
 install-docDATA: $(doc_DATA)
7
-	@$(NORMAL_INSTALL)
8
-	test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
9
-	@list='$(doc_DATA)'; for p in $$list; do \
10
-	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
11
-	  f=$(am__strip_dir) \
12
-	  echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
13
-	  $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
14
-	done
15
 
16
 uninstall-docDATA:
17
 	@$(NORMAL_UNINSTALL)
(-)/usr/ports/sunpoet/netcdf/files/patch-fortran+cfortran.h (-21 lines)
Lines 1-21 Link Here
1
--- fortran/cfortran.h.orig	2008-07-23 21:47:30.000000000 -0500
2
+++ fortran/cfortran.h	2008-07-23 21:48:50.000000000 -0500
3
@@ -134,7 +134,8 @@
4
 /* Split #if into 2 because some HP-UX can't handle long #if */
5
 #if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran)||defined(PATHSCALE_COMPILER)||defined(gFortran))
6
 #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
7
-/* If your compiler barfs on ' #error', replace # with the trigraph for #     */
8
+#define    f2cFortran 
9
+/* If your compiler barfs on ' #error', replace # with the trigraph for #
10
  #error "cfortran.h:  Can't find your environment among:\
11
     - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)     \
12
     - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000     \
13
@@ -158,7 +159,7 @@
14
     - Absoft Pro Fortran: Use #define AbsoftProFortran \
15
     - Portland Group Fortran: Use #define pgiFortran \
16
     - PathScale Fortran: Use #define PATHSCALE_COMPILER"
17
-/* Compiler must throw us out at this point! */
18
+   Compiler must throw us out at this point! */
19
 #endif
20
 #endif
21
 

Return to bug 146415