aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/cimg/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/cimg/Makefile')
-rw-r--r--graphics/cimg/Makefile22
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}