version 1.1.1.2, 2013/07/22 08:44:29
|
version 1.1.1.3, 2016/11/01 09:56:12
|
Line 10
|
Line 10
|
PROG?= mpd5 |
PROG?= mpd5 |
PREFIX?= /usr/local |
PREFIX?= /usr/local |
BINDIR?= ${PREFIX}/sbin |
BINDIR?= ${PREFIX}/sbin |
VERSION= 5.7 | VERSION= 5.8 |
NOMAN= |
NOMAN= |
NO_MAN= |
NO_MAN= |
|
|
|
BINOWN!= /usr/bin/id -n -u |
|
BINGRP!= /usr/bin/id -n -g |
|
|
# Default configuration directory |
# Default configuration directory |
|
|
Line 78 COPTS+= -DPROTO_NAME_LIST
|
Line 80 COPTS+= -DPROTO_NAME_LIST
|
|
|
# Compiler & linker flags |
# Compiler & linker flags |
|
|
.if defined ( USE_TCP_WRAP ) | .if exists ( /usr/lib/libwrap.so ) && defined ( USE_TCP_WRAP ) |
## filter TCP accept connections |
## filter TCP accept connections |
LDADD+= -lwrap |
LDADD+= -lwrap |
DPADD+= ${LIBWRAP} |
DPADD+= ${LIBWRAP} |
Line 92 DPADD+= ${LIBOPIE}
|
Line 94 DPADD+= ${LIBOPIE}
|
COPTS+= -DUSE_OPIE |
COPTS+= -DUSE_OPIE |
.endif |
.endif |
|
|
.if defined ( USE_AUTH_PAM ) | .if exists ( /usr/lib/libpam.so ) && defined ( USE_AUTH_PAM ) |
LDADD+= -lpam |
LDADD+= -lpam |
DPADD+= ${LIBPAM} |
DPADD+= ${LIBPAM} |
COPTS+= -DUSE_PAM |
COPTS+= -DUSE_PAM |
Line 117 LDADD+= -L${PREFIX}/lib
|
Line 119 LDADD+= -L${PREFIX}/lib
|
LDADD+= -lpdel |
LDADD+= -lpdel |
LDADD+= -lexpat |
LDADD+= -lexpat |
.endif |
.endif |
LDADD+= -lssl |
|
|
|
MPD_VERSION!= echo -n "${VERSION} (`id -un`@`uname -n` `LC_TIME=C date +'%R %v'`)" |
MPD_VERSION!= echo -n "${VERSION} (`id -un`@`uname -n` `LC_TIME=C date +'%R %v'`)" |
|
|
COPTS+= -DPATH_CONF_DIR=\"${MPD_CONF_DIR}\" | COPTS+= -DPATH_CONF_DIR='"${MPD_CONF_DIR}"' |
COPTS+= -DSYSLOG_FACILITY=${SYSLOG_FACILITY} | |
COPTS+= -DMPD_VERSION='"${MPD_VERSION}"' |
COPTS+= -DMPD_VERSION='"${MPD_VERSION}"' |
COPTS+= -g |
COPTS+= -g |
COPTS+= -Wall \ |
COPTS+= -Wall \ |
Line 139 COPTS+= -Wall \
|
Line 139 COPTS+= -Wall \
|
-I${PREFIX}/include |
-I${PREFIX}/include |
|
|
.if defined ( MPD_VENDOR ) |
.if defined ( MPD_VENDOR ) |
COPTS+= '-DMPD_VENDOR="${MPD_VENDOR}"' | COPTS+= -DMPD_VENDOR='"${MPD_VENDOR}"' |
.endif |
.endif |
|
|
|
.if defined ( SYSLOG_FACILITY ) |
|
COPTS+= -DSYSLOG_FACILITY='"${SYSLOG_FACILITY}"' |
|
.endif |
|
|
# Standard sources |
# Standard sources |
|
|
STDSRCS= assert.c auth.c bund.c rep.c ccp.c chap.c \ |
STDSRCS= assert.c auth.c bund.c rep.c ccp.c chap.c \ |
Line 154 STDSRCS= assert.c auth.c bund.c rep.c ccp.c cha
|
Line 158 STDSRCS= assert.c auth.c bund.c rep.c ccp.c cha
|
COPTS+= -DNOWEB |
COPTS+= -DNOWEB |
.else |
.else |
STDSRCS+= web.c |
STDSRCS+= web.c |
|
LDADD+= -lssl |
.endif |
.endif |
|
|
.if defined ( NOLIBPDEL ) |
.if defined ( NOLIBPDEL ) |
Line 295 COPTS+= -DUSE_FETCH
|
Line 300 COPTS+= -DUSE_FETCH
|
LDADD+= -lfetch |
LDADD+= -lfetch |
DPADD+= ${LIBFETCH} |
DPADD+= ${LIBFETCH} |
.endif |
.endif |
|
.if defined ( SMALL_SYSTEM ) |
|
COPTS+= -DSMALL_SYSTEM |
|
.endif |
|
|
# Add in required support files and libraries |
# Add in required support files and libraries |
|
|
.if defined ( NEED_DES ) |
|
LDADD+= -lcrypto |
LDADD+= -lcrypto |
DPADD+= ${LIBCRYPTO} |
DPADD+= ${LIBCRYPTO} |
|
|
|
.if exists ( /usr/lib/libexecinfo.so ) |
|
LDADD+= -lexecinfo |
|
COPTS+= -DUSE_BACKTRACE |
.endif |
.endif |
|
|
# Now add standard sources |
# Now add standard sources |