1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/net/mpd5/Makefile
Eugene Grosbein 98350784b4 Add a patch from upstream: switch from NO_MAN and COPTS to MK_MAN and CFLAGS
for modern FreeBSD versions. PORTREVISION unchanged.

Approved by: az (mentor).
2017-07-02 15:16:20 +00:00

55 lines
1.1 KiB
Makefile

# Created by: Archie Cobbs
# $FreeBSD$
PORTNAME= mpd
DISTVERSION= 5.8
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION}
PKGNAMESUFFIX= 5
DIST_SUBDIR= mpd5
MAINTAINER= eugen@FreeBSD.org
COMMENT= Multi-link PPP daemon based on netgraph(4)
LICENSE= BSD
OPTIONS_DEFINE= NG_IPACCT
NG_IPACCT_DESC= Use ng_ipacct kernel module from port
HAS_CONFIGURE= YES
CONFIGURE_WRKSRC= "${WRKSRC}/src"
USES= ssl
.include <bsd.port.options.mk>
MAKE_ARGS+= OSVERSION=${OSVERSION}
.if ${PORT_OPTIONS:MNG_IPACCT}
BUILD_DEPENDS+= ${LOCALBASE}/include/netgraph/ng_ipacct.h:net-mgmt/ng_ipacct
.if exists(${KMODDIR}/ng_ipacct.ko)
RUN_DEPENDS+= ${KMODDIR}/ng_ipacct.ko:net-mgmt/ng_ipacct
.else
RUN_DEPENDS+= /boot/modules/ng_ipacct.ko:net-mgmt/ng_ipacct
.endif
.endif
USE_RC_SUBR= mpd5
CONFSUF= conf secret script
DOCSDIR= ${PREFIX}/share/doc/mpd5
PORTDOCS= README mpd*
PLIST_FILES= ${CONFSUF:S/^/etc\/mpd5\/mpd./:S/$/.sample/} sbin/mpd5
.if !defined(WITHOUT_MAN)
PLIST_FILES+= man/man8/mpd5.8.gz
.endif
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT:Mopenssl-devel}
BROKEN= Does not build with openssl-devel
.endif
.include <bsd.port.post.mk>