1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

* 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)
This commit is contained in:
Maho Nakata 2007-01-19 06:24:11 +00:00
parent 076be9c48b
commit 1d7897bbed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182780

View File

@ -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