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

(-)cad/pdnmesh/Makefile (-23 / +49 lines)
Lines 2-40 Link Here
2
# $FreeBSD: ports/cad/pdnmesh/Makefile,v 1.27 2012/09/25 19:00:37 tabthorpe Exp $
2
# $FreeBSD: ports/cad/pdnmesh/Makefile,v 1.27 2012/09/25 19:00:37 tabthorpe Exp $
3
3
4
PORTNAME=	pdnmesh
4
PORTNAME=	pdnmesh
5
PORTVERSION=	0.2.1
5
PORTVERSION=	0.2.2
6
PORTREVISION=	11
7
CATEGORIES=	cad
6
CATEGORIES=	cad
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION}
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION}
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	A finite element program
10
COMMENT=	A finite element program
12
11
12
LICENSE=	GPLv2 # (or later)
13
13
LIB_DEPENDS=	gtkglext:${PORTSDIR}/x11-toolkits/gtkglext
14
LIB_DEPENDS=	gtkglext:${PORTSDIR}/x11-toolkits/gtkglext
14
15
15
.include <bsd.port.pre.mk>
16
OPTIONS_DEFINE=	ATLAS DOCS EXAMPLES
16
17
ATLAS_DESC=	Enable ATLAS support
17
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
18
WITH_ATLAS=	yes
19
.endif
20
.if defined(WITH_ATLAS)
21
LIB_DEPENDS+=	atlas.2:${PORTSDIR}/math/atlas
22
BLAS=		-lf77blas
23
LAPACK=		-lalapack -lcblas
24
.else
25
LIB_DEPENDS+=	blas.2:${PORTSDIR}/math/blas
26
LIB_DEPENDS+=	lapack.4:${PORTSDIR}/math/lapack
27
BLAS=		-lblas
28
LAPACK=		-llapack
29
.endif
30
18
31
USE_FORTRAN=	yes
19
USE_FORTRAN=	yes
32
CONFIGURE_ENV+=	BLAS_LIBS="${BLAS}" LAPACK_LIBS="${LAPACK}"
20
USE_GL=		glu
33
USE_GL=		yes
34
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
35
CONFIGURE_ENV+=	LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
22
MAKE_JOBS_SAFE=	yes
23
24
CPPFLAGS+=	-I${LOCALBASE}/include
25
LDFLAGS+=	-L${LOCALBASE}/lib
26
27
MAN1=		pdnmesh.1
28
MAN5=		pdnmesh_input.5
36
29
37
MAN1=	pdnmesh.1
30
.include <bsd.port.options.mk>
38
MAN5=	pdnmesh_input.5
31
32
.if ${PORT_OPTIONS:MATLAS}
33
LIB_DEPENDS+=	atlas:${PORTSDIR}/math/atlas
34
CONFIGURE_ARGS+=--with-blas=cblas --with-lapack=alapack
35
.else
36
LIB_DEPENDS+=	blas:${PORTSDIR}/math/blas
37
LIB_DEPENDS+=	lapack:${PORTSDIR}/math/lapack
38
CONFIGURE_ARGS+=--with-blas=blas --with-lapack=lapack
39
.endif
40
41
post-patch:
42
	@${REINPLACE_CMD}-e \
43
		'/^SUBDIRS/s|doc|| ; \
44
		 s|^pkgdata_DATA|#pkgdata_DATA|' ${WRKSRC}/Makefile.in
45
46
post-install:
47
.if ${PORT_OPTIONS:MDOCS}
48
	@${MKDIR} ${DOCSDIR}
49
	(cd ${WRKSRC} \
50
		&& ${INSTALL_DATA} ChangeLog ${DOCSDIR} \
51
		&& ${INSTALL_DATA} README ${DOCSDIR})
52
	@${MKDIR} ${DOCSDIR}/tutorial
53
	(cd ${WRKSRC}/doc/tutorial \
54
		&& ${INSTALL_DATA} README ${DOCSDIR}/tutorial \
55
		&& ${INSTALL_DATA} tutorial.* ${DOCSDIR}/tutorial)
56
.endif
57
.if ${PORT_OPTIONS:MEXAMPLES}
58
	@${MKDIR} ${EXAMPLESDIR}
59
	@(${TAR} -C ${WRKSRC}/doc/examples --exclude "*Makefile*" -cf - . | \
60
		${TAR} -C ${EXAMPLESDIR} --unlink -xf -)
61
	@${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHREOWN}:${SHAREGRP}
62
	@${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
63
	@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
64
.endif
39
65
40
.include <bsd.port.post.mk>
66
.include <bsd.port.mk>
(-)cad/pdnmesh/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pdnmesh-0.2.1.tar.gz) = af67231ff7767af479f08ec3cd9148c124016481c04a43c1b4bb429545409d29
1
SHA256 (pdnmesh-0.2.2.tar.gz) = 6ff31e2bf9ef9906a75f6ad37d37f4197bd4262f7dc4418a0c8f3898cd38e704
2
SIZE (pdnmesh-0.2.1.tar.gz) = 1590790
2
SIZE (pdnmesh-0.2.2.tar.gz) = 1625961
(-)cad/pdnmesh/files/patch-src+Makefile.in (-11 lines)
Lines 1-11 Link Here
1
--- src/Makefile.in.orig	Wed Jan 17 16:58:18 2007
2
+++ src/Makefile.in	Wed Jan 17 16:58:16 2007
3
@@ -72,7 +72,7 @@
4
 LEXLIB = @LEXLIB@
5
 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
6
 LIBOBJS = @LIBOBJS@
7
-LIBS = @LIBS@
8
+LIBS = @LAPACK_LIBS@ @BLAS_LIBS@ @FLIBS@ 
9
 LN_S = @LN_S@
10
 LTLIBOBJS = @LTLIBOBJS@
11
 MAKEINFO = @MAKEINFO@
(-)cad/pdnmesh/pkg-plist (-29 / +29 lines)
Lines 1-41 Link Here
1
bin/pdnmesh
1
bin/pdnmesh
2
%%DATADIR%%/README
2
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
3
%%DATADIR%%/COPYING
3
%%PORTDOCS%%%%DOCSDIR%%/README
4
%%DATADIR%%/ChangeLog
4
%%PORTDOCS%%%%DOCSDIR%%/tutorial/README
5
%%DATADIR%%/tutorial/README
5
%%PORTDOCS%%%%DOCSDIR%%/tutorial/tutorial.html.bz2
6
%%DATADIR%%/tutorial/tutorial.sgml.bz2
6
%%PORTDOCS%%%%DOCSDIR%%/tutorial/tutorial.sgml.bz2
7
%%DATADIR%%/tutorial/tutorial.html.bz2
7
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
8
%%DATADIR%%/examples/README
8
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.1
9
%%DATADIR%%/examples/coords.1
9
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.10
10
%%DATADIR%%/examples/coords.10
10
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.11
11
%%DATADIR%%/examples/coords.11
11
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.1a
12
%%DATADIR%%/examples/coords.1a
12
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.2
13
%%DATADIR%%/examples/coords.2
13
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.3
14
%%DATADIR%%/examples/coords.3
14
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.4
15
%%DATADIR%%/examples/coords.4
15
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.5
16
%%DATADIR%%/examples/coords.5
16
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.6
17
%%DATADIR%%/examples/coords.6
17
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.7
18
%%DATADIR%%/examples/coords.7
18
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.8
19
%%DATADIR%%/examples/coords.8
19
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/coords.9
20
%%DATADIR%%/examples/coords.9
20
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/flow
21
%%DATADIR%%/examples/heat
21
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/flow.1
22
%%DATADIR%%/examples/flow
22
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/heart
23
%%DATADIR%%/examples/flow.1
23
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/heat
24
%%DATADIR%%/examples/heart
24
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/switch
25
%%DATADIR%%/examples/switch
25
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trans
26
%%DATADIR%%/examples/trans
27
%%DATADIR%%/pixmaps/open.xpm
28
%%DATADIR%%/pixmaps/save.xpm
29
%%DATADIR%%/pixmaps/help_about.xpm
26
%%DATADIR%%/pixmaps/help_about.xpm
30
%%DATADIR%%/pixmaps/next_eigenmode.xpm
27
%%DATADIR%%/pixmaps/next_eigenmode.xpm
28
%%DATADIR%%/pixmaps/open.xpm
31
%%DATADIR%%/pixmaps/plot_cont.xpm
29
%%DATADIR%%/pixmaps/plot_cont.xpm
32
%%DATADIR%%/pixmaps/plot_fill.xpm
30
%%DATADIR%%/pixmaps/plot_fill.xpm
33
%%DATADIR%%/pixmaps/plot_grad.xpm
31
%%DATADIR%%/pixmaps/plot_grad.xpm
34
%%DATADIR%%/pixmaps/plot_mesh.xpm
32
%%DATADIR%%/pixmaps/plot_mesh.xpm
33
%%DATADIR%%/pixmaps/save.xpm
35
%%DATADIR%%/pixmaps/zoom_all.xpm
34
%%DATADIR%%/pixmaps/zoom_all.xpm
36
%%DATADIR%%/pixmaps/zoom_back.xpm
35
%%DATADIR%%/pixmaps/zoom_back.xpm
37
%%DATADIR%%/pixmaps/zoom_window.xpm
36
%%DATADIR%%/pixmaps/zoom_window.xpm
38
@dirrm %%DATADIR%%/examples
39
@dirrm %%DATADIR%%/pixmaps
37
@dirrm %%DATADIR%%/pixmaps
40
@dirrm %%DATADIR%%/tutorial
41
@dirrm %%DATADIR%%
38
@dirrm %%DATADIR%%
39
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
40
%%PORTDOCS%%@dirrm %%DOCSDIR%%/tutorial
41
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 172221