aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_dnssd/Makefile
blob: 7d97630cd23aa050fc2e5308a5aafb3bef08ab99 (plain) (blame)
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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mod_dnssd
PORTVERSION=    0.6
PORTREVISION=   12
CATEGORIES= www
MASTER_SITES=   http://0pointer.de/lennart/projects/mod_dnssd/
PKGNAMEPREFIX=  ${APACHE_PKGNAMEPREFIX}

MAINTAINER= joneum@FreeBSD.org
COMMENT=    Apache module that provides DNS-SD capabilities

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libavahi-client.so:net/avahi-app

USES=       apache:2.2+ gmake pkgconfig
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  APR_CFLAGS="`${LOCALBASE}/bin/apr-1-config --cflags --cppflags --includes`" \
        APR_LIBS="`${LOCALBASE}/bin/apr-1-config --ldflags`"
CONFIGURE_ARGS= --disable-lynx

OPTIONS_DEFINE= DOCS

post-configure:
    ${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' ${WRKSRC}/src/Makefile

pre-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/
    ${INSTALL_DATA} ${WRKSRC}/doc/README ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>