| @@ -1,42 +1,42 @@ | | | @@ -1,42 +1,42 @@ |
1 | # $NetBSD: Makefile,v 1.48 2022/07/11 18:27:07 schmonz Exp $ | | 1 | # $NetBSD: Makefile,v 1.49 2022/07/29 15:21:41 schmonz Exp $ |
2 | | | 2 | |
3 | .include "../../textproc/xapian/Makefile.common" | | 3 | .include "../../textproc/xapian/Makefile.common" |
4 | | | 4 | |
5 | DISTNAME= xapian-omega-${VERSION} | | 5 | DISTNAME= xapian-omega-${VERSION} |
6 | | | 6 | |
7 | HOMEPAGE= https://xapian.org/docs/omega/overview.html | | 7 | HOMEPAGE= https://xapian.org/docs/omega/overview.html |
8 | COMMENT= Search engine application for websites using Xapian | | 8 | COMMENT= Search engine application for websites using Xapian |
9 | | | 9 | |
10 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 10 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
11 | USE_TOOLS+= perl:run | | 11 | USE_TOOLS+= perl:run pkg-config |
12 | | | 12 | |
13 | TEST_TARGET= check | | 13 | TEST_TARGET= check |
14 | | | 14 | |
15 | REPLACE_PERL= dbi2omega htdig2omega mbox2omega | | 15 | REPLACE_PERL= dbi2omega htdig2omega mbox2omega |
16 | | | 16 | |
17 | SUBST_CLASSES+= files | | 17 | SUBST_CLASSES+= files |
18 | SUBST_STAGE.files= do-configure | | 18 | SUBST_STAGE.files= do-configure |
19 | SUBST_FILES.files= omega.conf | | 19 | SUBST_FILES.files= omega.conf |
20 | SUBST_VARS.files= VARBASE | | 20 | SUBST_VARS.files= VARBASE |
21 | SUBST_MESSAGE.files= Fixing configuration files. | | 21 | SUBST_MESSAGE.files= Fixing configuration files. |
22 | | | 22 | |
23 | OWN_DIRS+= ${VARBASE}/log/${PKGBASE} | | 23 | OWN_DIRS+= ${VARBASE}/log/${PKGBASE} |
24 | OWN_DIRS+= ${VARBASE}/${PKGBASE}/cdb | | 24 | OWN_DIRS+= ${VARBASE}/${PKGBASE}/cdb |
25 | OWN_DIRS+= ${VARBASE}/${PKGBASE}/data | | 25 | OWN_DIRS+= ${VARBASE}/${PKGBASE}/data |
26 | OWN_DIRS+= ${VARBASE}/${PKGBASE}/templates | | 26 | OWN_DIRS+= ${VARBASE}/${PKGBASE}/templates |
27 | | | 27 | |
28 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 28 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
29 | | | 29 | |
30 | CONF_FILES+= ${EGDIR}/omega.conf ${PKG_SYSCONFDIR}/omega.conf | | 30 | CONF_FILES+= ${EGDIR}/omega.conf ${PKG_SYSCONFDIR}/omega.conf |
31 | | | 31 | |
32 | INSTALLATION_DIRS= ${EGDIR} | | 32 | INSTALLATION_DIRS= ${EGDIR} |
33 | | | 33 | |
34 | INSTALL_TARGET= install install-dist_sysconfDATA | | 34 | INSTALL_TARGET= install install-dist_sysconfDATA |
35 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q} | | 35 | INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q} |
36 | | | 36 | |
37 | BUILD_DEFS+= VARBASE | | 37 | BUILD_DEFS+= VARBASE |
38 | | | 38 | |
39 | .include "../../devel/pcre2/buildlink3.mk" | | 39 | .include "../../devel/pcre2/buildlink3.mk" |
40 | .include "../../sysutils/file/buildlink3.mk" | | 40 | .include "../../sysutils/file/buildlink3.mk" |
41 | .include "../../textproc/xapian/buildlink3.mk" | | 41 | .include "../../textproc/xapian/buildlink3.mk" |
42 | .include "../../mk/bsd.pkg.mk" | | 42 | .include "../../mk/bsd.pkg.mk" |