| @@ -1,41 +1,42 @@ | | | @@ -1,41 +1,42 @@ |
1 | # $NetBSD: Makefile,v 1.24 2019/10/14 11:00:56 sborrill Exp $ | | 1 | # $NetBSD: Makefile,v 1.25 2019/10/14 11:43:19 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= c_icap-0.5.5 | | 3 | DISTNAME= c_icap-0.5.5 |
4 | PKGNAME= ${DISTNAME:S/_/-/} | | 4 | PKGNAME= ${DISTNAME:S/_/-/} |
5 | CATEGORIES= www | | 5 | CATEGORIES= www |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=c-icap/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=c-icap/} |
7 | | | 7 | |
8 | MAINTAINER= adam@NetBSD.org | | 8 | MAINTAINER= adam@NetBSD.org |
9 | HOMEPAGE= http://c-icap.sourceforge.net/ | | 9 | HOMEPAGE= http://c-icap.sourceforge.net/ |
10 | COMMENT= Implementation of an ICAP server | | 10 | COMMENT= Implementation of an ICAP server |
11 | LICENSE= gnu-lgpl-v2.1 | | 11 | LICENSE= gnu-lgpl-v2.1 |
12 | | | 12 | |
13 | USE_LANGUAGES= c | | 13 | USE_LANGUAGES= c |
14 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
15 | USE_TOOLS+= gmake | | 15 | USE_TOOLS+= gmake |
16 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
17 | CONFIGURE_ARGS+= --enable-large-files | | 17 | CONFIGURE_ARGS+= --enable-large-files |
18 | | | 18 | |
19 | EGDIR= ${PREFIX}/share/c-icap | | 19 | EGDIR= ${PREFIX}/share/c-icap |
20 | CONF_FILES= ${EGDIR}/c-icap.conf.default ${PKG_SYSCONFDIR}/c-icap.conf | | 20 | CONF_FILES= ${EGDIR}/c-icap.conf.default ${PKG_SYSCONFDIR}/c-icap.conf |
21 | CONF_FILES+= ${EGDIR}/c-icap.magic.default ${PKG_SYSCONFDIR}/c-icap.magic | | 21 | CONF_FILES+= ${EGDIR}/c-icap.magic.default ${PKG_SYSCONFDIR}/c-icap.magic |
22 | | | 22 | |
23 | BUILD_DEFS+= VARBASE | | 23 | BUILD_DEFS+= VARBASE |
24 | | | 24 | |
25 | SUBST_CLASSES+= fix-path | | 25 | SUBST_CLASSES+= fix-path |
26 | SUBST_CLASSES+= fix-ldap | | | |
27 | SUBST_STAGE.fix-path= pre-configure | | 26 | SUBST_STAGE.fix-path= pre-configure |
28 | SUBST_MESSAGE.fix-path= Fixing paths. | | 27 | SUBST_MESSAGE.fix-path= Fixing paths. |
29 | SUBST_FILES.fix-path= c-icap.conf.in | | 28 | SUBST_FILES.fix-path= c-icap.conf.in |
30 | SUBST_SED.fix-path= -e 's, @prefix@/var, ${VARBASE},g' | | 29 | SUBST_SED.fix-path= -e 's, @prefix@/var, ${VARBASE},g' |
31 | SUBST_SED.fix-path+= -e 's, /var, ${VARBASE},g' | | 30 | SUBST_SED.fix-path+= -e 's, /var, ${VARBASE},g' |
| | | 31 | |
| | | 32 | SUBST_CLASSES+= fix-ldap |
32 | SUBST_STAGE.fix-ldap= post-configure | | 33 | SUBST_STAGE.fix-ldap= post-configure |
33 | SUBST_MESSAGE.fix-ldap= Fixing LDAP. | | 34 | SUBST_MESSAGE.fix-ldap= Fixing LDAP. |
34 | SUBST_FILES.fix-ldap= modules/Makefile | | 35 | SUBST_FILES.fix-ldap= modules/Makefile |
35 | SUBST_SED.fix-ldap= -e 's,-DLDAP_DEPRECATED,,g' | | 36 | SUBST_SED.fix-ldap= -e 's,-DLDAP_DEPRECATED,,g' |
36 | | | 37 | |
37 | .include "options.mk" | | 38 | .include "options.mk" |
38 | | | 39 | |
39 | .include "../../devel/zlib/buildlink3.mk" | | 40 | .include "../../devel/zlib/buildlink3.mk" |
40 | .include "../../mk/dlopen.buildlink3.mk" | | 41 | .include "../../mk/dlopen.buildlink3.mk" |
41 | .include "../../mk/bsd.pkg.mk" | | 42 | .include "../../mk/bsd.pkg.mk" |