| @@ -1,30 +1,42 @@ | | | @@ -1,30 +1,42 @@ |
1 | # $NetBSD: Makefile,v 1.11 2011/02/28 14:52:50 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2011/05/02 12:57:22 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= vigra-1.7.1-src | | 3 | DISTNAME= vigra-1.7.1-src |
4 | PKGNAME= ${DISTNAME:S/-src//} | | 4 | PKGNAME= ${DISTNAME:S/-src//} |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= graphics | | 6 | CATEGORIES= graphics |
6 | MASTER_SITES= http://hci.iwr.uni-heidelberg.de/vigra/ | | 7 | MASTER_SITES= http://hci.iwr.uni-heidelberg.de/vigra/ |
7 | | | 8 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://hci.iwr.uni-heidelberg.de/vigra/ | | 10 | HOMEPAGE= http://hci.iwr.uni-heidelberg.de/vigra/ |
10 | COMMENT= Computer vision library | | 11 | COMMENT= Computer vision library |
11 | LICENSE= mit | | 12 | LICENSE= mit |
12 | | | 13 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 15 | |
15 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | | 16 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} |
16 | | | 17 | |
17 | USE_CMAKE= yes | | 18 | USE_CMAKE= yes |
18 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
19 | USE_LIBTOOL= yes | | 20 | USE_LIBTOOL= yes |
20 | USE_TOOLS+= pkg-config | | 21 | USE_TOOLS+= pkg-config |
21 | | | 22 | |
22 | CMAKE_ARGS+= -D DOCINSTALL:PATH=${PREFIX}/share/doc | | 23 | CMAKE_ARGS+= -D DOCINSTALL:PATH=${PREFIX}/share/doc |
23 | | | 24 | |
| | | 25 | SUBST_CLASSES+= python |
| | | 26 | SUBST_STAGE.python= pre-configure |
| | | 27 | SUBST_FILES.python+= config/vigra-config.in |
| | | 28 | # Best we can do without pulling in a python dependency. |
| | | 29 | # Update when PYTHON_VERSION_DEFAULT changes! |
| | | 30 | SUBST_SED.python+= -e 's,/usr/bin/env.*python,${PREFIX}/bin/python2.6,' |
| | | 31 | SUBST_MESSAGE.python= Fixing path to python. |
| | | 32 | # Package doesn't need dependency, only packages using the script, |
| | | 33 | # usually during configure, so don't depend on python. |
| | | 34 | CHECK_INTERPRETER_SKIP= bin/vigra-config |
| | | 35 | |
24 | .include "options.mk" | | 36 | .include "options.mk" |
25 | | | 37 | |
26 | .include "../../devel/zlib/buildlink3.mk" | | 38 | .include "../../devel/zlib/buildlink3.mk" |
27 | .include "../../graphics/png/buildlink3.mk" | | 39 | .include "../../graphics/png/buildlink3.mk" |
28 | .include "../../graphics/tiff/buildlink3.mk" | | 40 | .include "../../graphics/tiff/buildlink3.mk" |
29 | .include "../../mk/jpeg.buildlink3.mk" | | 41 | .include "../../mk/jpeg.buildlink3.mk" |
30 | .include "../../mk/bsd.pkg.mk" | | 42 | .include "../../mk/bsd.pkg.mk" |