blob: 857e82a10d9ca12dba0f3471e7b8ddd8a86ec21c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: Makefile,v 1.3 2007/02/22 19:30:04 wiz Exp $
#
DISTNAME= pdiff0.9b-src
PKGNAME= pdiff-0.9b
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pdiff/}
EXTRACT_SUFX= .zip
MAINTAINER= heinz@NetBSD.org
HOMEPAGE= http://pdiff.sourceforge.net/
COMMENT= Image comparison through perceptually based image metric
PKG_INSTALLATION_TYPES= overwrite pkgviews
EXTRACT_OPTS+= -d pdiff
WRKSRC= ${WRKDIR}/pdiff
USE_LANGUAGES= c c++
BUILD_DEPENDS+= cmake>=2:../../devel/cmake
OPSYSVARS+= LIBTIFFNAME
LIBTIFFNAME.*= libtiff.so
LIBTIFFNAME.Darwin= libtiff.dylib
CMAKEFLAGS.pdiff+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX}
CMAKEFLAGS.pdiff+= -DTIFF_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.tiff}/include
CMAKEFLAGS.pdiff+= -DTIFF_LIBRARY:PATH=${BUILDLINK_PREFIX.tiff}/lib/${LIBTIFFNAME}
post-extract:
${MV} ${WRKSRC}/compareargs.cpp ${WRKSRC}/CompareArgs.cpp
${MV} ${WRKSRC}/metric.cpp ${WRKSRC}/Metric.cpp
do-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${LOCALBASE}/bin/cmake ${CMAKEFLAGS.pdiff} .
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/perceptualdiff ${PREFIX}/bin/.
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|