| @@ -1,29 +1,34 @@ | | | @@ -1,29 +1,34 @@ |
1 | # $NetBSD: Makefile,v 1.15 2010/02/16 18:11:52 joerg Exp $ | | 1 | # $NetBSD: Makefile,v 1.16 2010/12/21 08:17:27 obache Exp $ |
2 | | | 2 | |
3 | DISTNAME= crawl-0.4 | | 3 | DISTNAME= crawl-0.4 |
4 | PKGREVISION= 8 | | 4 | PKGREVISION= 8 |
5 | CATEGORIES= www | | 5 | CATEGORIES= www |
6 | MASTER_SITES= http://monkey.org/~provos/ | | 6 | MASTER_SITES= http://monkey.org/~provos/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://monkey.org/~provos/crawl/ | | 9 | HOMEPAGE= http://monkey.org/~provos/crawl/ |
10 | COMMENT= Small and efficient HTTP crawler | | 10 | COMMENT= Small and efficient HTTP crawler |
11 | | | 11 | |
12 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | | | 13 | |
14 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
15 | USE_DB185= yes | | 15 | USE_DB185= yes |
16 | | | 16 | |
| | | 17 | # BDB detection is not sufficient, specify manually instead. |
| | | 18 | CONFIGURE_ARGS+= --with-db=yes |
| | | 19 | CONFIGURE_ENV+= DBLIB=${BDB_LIBS:Q} |
| | | 20 | CPPFLAGS+= -DHAVE_DB_185_H |
| | | 21 | |
17 | CONF_FILES= ${PREFIX}/share/examples/crawl/crawl.conf ${PKG_SYSCONFDIR}/crawl.conf | | 22 | CONF_FILES= ${PREFIX}/share/examples/crawl/crawl.conf ${PKG_SYSCONFDIR}/crawl.conf |
18 | | | 23 | |
19 | INSTALLATION_DIRS+= share/examples/crawl | | 24 | INSTALLATION_DIRS+= share/examples/crawl |
20 | | | 25 | |
21 | post-install: | | 26 | post-install: |
22 | ${INSTALL_DATA} ${WRKSRC}/crawl.conf ${DESTDIR}${PREFIX}/share/examples/crawl/crawl.conf | | 27 | ${INSTALL_DATA} ${WRKSRC}/crawl.conf ${DESTDIR}${PREFIX}/share/examples/crawl/crawl.conf |
23 | | | 28 | |
24 | SUBST_CLASSES+= path | | 29 | SUBST_CLASSES+= path |
25 | SUBST_STAGE.path= post-patch | | 30 | SUBST_STAGE.path= post-patch |
26 | SUBST_FILES.path= cfg.h | | 31 | SUBST_FILES.path= cfg.h |
27 | SUBST_SED.path= -e 's,crawl.conf,${PKG_SYSCONFDIR}/crawl.conf,g' | | 32 | SUBST_SED.path= -e 's,crawl.conf,${PKG_SYSCONFDIR}/crawl.conf,g' |
28 | SUBST_MESSAGE.path= Fixing hardcoded path. | | 33 | SUBST_MESSAGE.path= Fixing hardcoded path. |
29 | | | 34 | |