diff options
author | thierry <thierry@FreeBSD.org> | 2004-10-21 04:54:08 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-10-21 04:54:08 +0800 |
commit | 5400166085499802d6a13ed56849ce68f1d1229f (patch) | |
tree | 94271d24ab8e5337571e75fb84388e342a4ba01d /graphics/cimg/Makefile | |
parent | 94ac2e2e3aaea2994781fdc2759d0c2a4ca44ca9 (diff) | |
download | freebsd-ports-gnome-5400166085499802d6a13ed56849ce68f1d1229f.tar.gz freebsd-ports-gnome-5400166085499802d6a13ed56849ce68f1d1229f.tar.zst freebsd-ports-gnome-5400166085499802d6a13ed56849ce68f1d1229f.zip |
Upgrade to CImg.1.0.7 version (pre-release).
Diffstat (limited to 'graphics/cimg/Makefile')
-rw-r--r-- | graphics/cimg/Makefile | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/graphics/cimg/Makefile b/graphics/cimg/Makefile index dadfed531740..053548208ac3 100644 --- a/graphics/cimg/Makefile +++ b/graphics/cimg/Makefile @@ -6,7 +6,7 @@ # PORTNAME= cimg -PORTVERSION= 1.0.6 +PORTVERSION= 1.0.7 CATEGORIES= graphics devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,6 +17,7 @@ MAINTAINER= thierry@FreeBSD.org COMMENT= The C++ Template Image Processing Library USE_ZIP= yes +BUILD_WRKSRC= ${WRKSRC}/examples MAKE_ENV= CPPFLAGS="${CFLAGS} ${LAPACK_DEF} ${PTHREAD_CFLAGS}" \ LDFLAGS="${LDFLAGS} ${LAPACK_LIB} ${PTHREAD_LIBS}" \ X11PATH=${X11BASE} @@ -25,9 +26,12 @@ MAKE_ENV= CPPFLAGS="${CFLAGS} ${LAPACK_DEF} ${PTHREAD_CFLAGS}" \ BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen USE_GCC= 3.4 USE_REINPLACE= yes +REINPLACE_ARGS= -i "" +DOCBASE= CHANGES.txt README.txt .else NOBUILD= yes .endif + .if !defined(WITHOUT_IM) RUN_DEPENDS+= ${LOCALBASE}/lib/libMagick.so.6:${PORTSDIR}/graphics/ImageMagick .endif @@ -37,23 +41,23 @@ LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lcblas -lf77blas -lg2c -latlas LAPACK_DEF= -Dcimg_lapack .endif -post-extract: - @${CP} ${WRKSRC}/CImg.h ${WRKSRC}/CImg.h.dos - @${TR} -d '\r' < ${WRKSRC}/CImg.h.dos > ${WRKSRC}/CImg.h +#post-extract: +# @${CP} ${WRKSRC}/CImg.h ${WRKSRC}/CImg.h.dos +# @${TR} -d '\r' < ${WRKSRC}/CImg.h.dos > ${WRKSRC}/CImg.h .if !defined(NOPORTDOCS) post-patch: - @${REINPLACE_CMD} -e "s|examples/|${EXAMPLESDIR}/|g" \ - ${WRKSRC}/CImg_test.cpp + @${GREP} -lR 'img/' ${BUILD_WRKSRC} | \ + ${XARGS} ${REINPLACE_CMD} -e 's|img/|${EXAMPLESDIR}/img/|g' .endif do-install: ${INSTALL_DATA} ${WRKSRC}/CImg.h ${PREFIX}/include .if !defined(NOPORTDOCS) - ${INSTALL_PROGRAM} ${WRKSRC}/CImg_test ${PREFIX}/bin + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/CImg_test ${PREFIX}/bin ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} - ${CP} -R ${WRKSRC}/html/* ${DOCSDIR} + ${INSTALL_DATA} ${DOCBASE:S|^|${WRKSRC}/|} ${DOCSDIR} + ${CP} -R ${WRKSRC}/documentation/* ${DOCSDIR} ${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR} @(cd ${EXAMPLESDIR} && ${MAKE} clean) ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} ${EXAMPLESDIR} |