855a196489
activate the module during make install or at package installation time. MFH: 2014Q3
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mod_dnssd
|
|
PORTVERSION= 0.6
|
|
PORTREVISION= 11
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://0pointer.de/lennart/projects/mod_dnssd/
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Apache module that provides DNS-SD capabilities
|
|
|
|
LIB_DEPENDS= libavahi-client.so:${PORTSDIR}/net/avahi-app
|
|
|
|
USES= gmake pkgconfig
|
|
USE_APACHE= 22+
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= APR_CFLAGS="`${LOCALBASE}/bin/apr-1-config --cflags --cppflags --includes`" \
|
|
APR_LIBS="`${LOCALBASE}/bin/apr-1-config --ldflags`"
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
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:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/doc/README ${STAGEDIR}${DOCSDIR}/README
|
|
|
|
.include <bsd.port.mk>
|