summaryrefslogtreecommitdiff
path: root/graphics/cimg/Makefile
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-10-12 20:42:04 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-10-12 20:42:04 +0000
commite9fa808011317d60f4ad5fb6040faa5efcbb5251 (patch)
tree3af74e776d1fc235b25b8947a6bcbd7716058f2e /graphics/cimg/Makefile
parentFix some more installation-blocking typos missed in the back-port from 1.7.3. (diff)
Add cimg 1.0.6, the C++ Template Image Processing Library.
Notes
Notes: svn path=/head/; revision=119094
Diffstat (limited to 'graphics/cimg/Makefile')
-rw-r--r--graphics/cimg/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/graphics/cimg/Makefile b/graphics/cimg/Makefile
new file mode 100644
index 000000000000..dadfed531740
--- /dev/null
+++ b/graphics/cimg/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: CImg
+# Date created: 11 September 2004
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= cimg
+PORTVERSION= 1.0.6
+CATEGORIES= graphics devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= CImg
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= The C++ Template Image Processing Library
+
+USE_ZIP= yes
+MAKE_ENV= CPPFLAGS="${CFLAGS} ${LAPACK_DEF} ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} ${LAPACK_LIB} ${PTHREAD_LIBS}" \
+ X11PATH=${X11BASE}
+
+.if !defined(NOPORTDOCS)
+BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
+USE_GCC= 3.4
+USE_REINPLACE= yes
+.else
+NOBUILD= yes
+.endif
+.if !defined(WITHOUT_IM)
+RUN_DEPENDS+= ${LOCALBASE}/lib/libMagick.so.6:${PORTSDIR}/graphics/ImageMagick
+.endif
+.if !defined(WITHOUT_LAPACK)
+LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
+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
+
+.if !defined(NOPORTDOCS)
+post-patch:
+ @${REINPLACE_CMD} -e "s|examples/|${EXAMPLESDIR}/|g" \
+ ${WRKSRC}/CImg_test.cpp
+.endif
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/CImg.h ${PREFIX}/include
+.if !defined(NOPORTDOCS)
+ ${INSTALL_PROGRAM} ${WRKSRC}/CImg_test ${PREFIX}/bin
+ ${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/html/* ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
+ @(cd ${EXAMPLESDIR} && ${MAKE} clean)
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>