diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-10-30 19:13:50 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-10-30 19:13:50 +0000 |
commit | 360b08d857c297ba3617e76e491b0f07108f24ec (patch) | |
tree | db1ab2761428520546cd92487724dd034aa0ddbc /cad/pdnmesh/Makefile | |
parent | 2d0a8f696faefb46248b712bece4e292143f6157 (diff) | |
download | ports-360b08d857c297ba3617e76e491b0f07108f24ec.tar.gz ports-360b08d857c297ba3617e76e491b0f07108f24ec.zip |
Notes
Diffstat (limited to 'cad/pdnmesh/Makefile')
-rw-r--r-- | cad/pdnmesh/Makefile | 91 |
1 files changed, 67 insertions, 24 deletions
diff --git a/cad/pdnmesh/Makefile b/cad/pdnmesh/Makefile index cbacfb006c08..9ff1ac36f7e0 100644 --- a/cad/pdnmesh/Makefile +++ b/cad/pdnmesh/Makefile @@ -2,39 +2,82 @@ # $FreeBSD$ PORTNAME= pdnmesh -PORTVERSION= 0.2.1 -PORTREVISION= 11 +PORTVERSION= 0.2.2 CATEGORIES= cad MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION} MAINTAINER= ports@FreeBSD.org -COMMENT= A finite element program +COMMENT= Finite element program -LIB_DEPENDS= gtkglext:${PORTSDIR}/x11-toolkits/gtkglext +LICENSE= GPLv2 # (or later) -.include <bsd.port.pre.mk> +LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \ + pcre:${PORTSDIR}/devel/pcre \ + cairo:${PORTSDIR}/graphics/cairo \ + drm:${PORTSDIR}/graphics/libdrm \ + png15:${PORTSDIR}/graphics/png \ + freetype:${PORTSDIR}/print/freetype2 \ + expat:${PORTSDIR}/textproc/expat2 \ + fontconfig:${PORTSDIR}/x11-fonts/fontconfig \ + gtkglext:${PORTSDIR}/x11-toolkits/gtkglext \ + xcb:${PORTSDIR}/x11/libxcb -.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS) -WITH_ATLAS= yes -.endif -.if defined(WITH_ATLAS) -LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas -BLAS= -lf77blas -LAPACK= -lalapack -lcblas -.else -LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas -LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack -BLAS= -lblas -LAPACK= -llapack -.endif +OPTIONS_DEFINE= ATLAS DOCS EXAMPLES +ATLAS_DESC= Enable ATLAS support USE_FORTRAN= yes -CONFIGURE_ENV+= BLAS_LIBS="${BLAS}" LAPACK_LIBS="${LAPACK}" -USE_GL= yes +USE_GL= glu +USE_GETTEXT= yes +USE_ICONV= yes +USE_GNOME= gdkpixbuf2 gtk20 +USE_PKGCONFIG= build +USE_XORG= ice pixman sm x11 xau xcomposite xcursor xdamage xdmcp xext \ + xfixes xmu xi xinerama xrandr xrender xt xxf86vm GNU_CONFIGURE= yes -CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +MAKE_JOBS_SAFE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +MAN1= pdnmesh.1 +MAN5= pdnmesh_input.5 + +DESKTOP_ENTRIES="${PORTNAME}" "${COMMENT}" "" "${PORTNAME}" "" "true" + +.include <bsd.port.options.mk> -MAN1= pdnmesh.1 -MAN5= pdnmesh_input.5 +.if ${PORT_OPTIONS:MATLAS} +LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas +CONFIGURE_ARGS+=--with-blas=cblas --with-lapack=alapack +.else +LIB_DEPENDS+= blas:${PORTSDIR}/math/blas +LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack +CONFIGURE_ARGS+=--with-blas=blas --with-lapack=lapack +.endif + +post-patch: + @${REINPLACE_CMD}-e \ + '/^SUBDIRS/s|doc|| ; \ + s|^pkgdata_DATA|#pkgdata_DATA|' ${WRKSRC}/Makefile.in + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + (cd ${WRKSRC} \ + && ${INSTALL_DATA} ChangeLog ${DOCSDIR} \ + && ${INSTALL_DATA} README ${DOCSDIR}) + @${MKDIR} ${DOCSDIR}/tutorial + (cd ${WRKSRC}/doc/tutorial \ + && ${INSTALL_DATA} README ${DOCSDIR}/tutorial \ + && ${INSTALL_DATA} tutorial.* ${DOCSDIR}/tutorial) +.endif +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} + @(${TAR} -C ${WRKSRC}/doc/examples --exclude "*Makefile*" -cf - . | \ + ${TAR} -C ${EXAMPLESDIR} --unlink -xf -) + @${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHREOWN}:${SHAREGRP} + @${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx + @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} +.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |