diff options
author | maho <maho@FreeBSD.org> | 2007-01-19 06:24:11 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-01-19 06:24:11 +0000 |
commit | 3015098d6907cbfc41ac7d81c7ee834faf267b8e (patch) | |
tree | b548ef501338213751efad1f93717ff6da82b2d2 /graphics | |
parent | edad42589296f5fe700981f8b68e0e2ab057cbd7 (diff) | |
download | FreeBSD-ports-3015098d6907cbfc41ac7d81c7ee834faf267b8e.zip FreeBSD-ports-3015098d6907cbfc41ac7d81c7ee834faf267b8e.tar.gz |
* Migrate to gfortran.
* Bump port revision.
BTW: A newer CImg-1-17.zip is at MASTER_SITE, I fetched from one of
the mirror of FBSD distfiles, though.
Approved by: portmgr(kris)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/cimg/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/graphics/cimg/Makefile b/graphics/cimg/Makefile index 6a423d1..e63892c 100644 --- a/graphics/cimg/Makefile +++ b/graphics/cimg/Makefile @@ -7,6 +7,7 @@ PORTNAME= cimg DISTVERSION= 1-17 +PORTREVISION= 1 CATEGORIES= graphics devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -37,17 +38,23 @@ NOBUILD= yes RUN_DEPENDS+= ${LOCALBASE}/lib/libMagick.so.10:${PORTSDIR}/graphics/ImageMagick .endif .if !defined(WITHOUT_LAPACK) -LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas -LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lcblas -lf77blas -lg2c -latlas +LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas +LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lcblas -lf77blas -L`${CAT} ${WRKSRC}/LIBDIR`/../../.. -lgfortran -latlas LAPACK_DEF= -Dcimg_lapack .endif +WANT_FORTRAN= yes #dummy but future use +BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42 +FC= gfortran42 +F77= gfortran42 + #post-extract: + +post-patch: + ${DIRNAME} `${LOCALBASE}/bin/${F77} -print-libgcc-file-name` > ${WRKSRC}/LIBDIR # @${CP} ${WRKSRC}/CImg.h ${WRKSRC}/CImg.h.dos # @${TR} -d '\r' < ${WRKSRC}/CImg.h.dos > ${WRKSRC}/CImg.h - .if !defined(NOPORTDOCS) -post-patch: @${GREP} -lR 'img/' ${BUILD_WRKSRC} | \ ${XARGS} ${REINPLACE_CMD} -e 's|img/|${EXAMPLESDIR}/img/|g' .endif |