ab19b7b153
The word "wheel" does not occur in the whole source tree anymore.
76 lines
2.2 KiB
Makefile
76 lines
2.2 KiB
Makefile
# $NetBSD: Makefile,v 1.103 2020/04/26 06:35:30 rillig Exp $
|
|
|
|
DISTNAME= nas-1.9.4.src
|
|
PKGNAME= ${DISTNAME:S/.src//}
|
|
PKGREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nas/}
|
|
|
|
MAINTAINER= markd@NetBSD.org
|
|
HOMEPAGE= http://nas.sourceforge.net/
|
|
COMMENT= Network Audio System
|
|
LICENSE= mit # with no-advertisement clause
|
|
|
|
# 1) uses dia library before it is built
|
|
# 2) make succeeds even with failures, making this problem non-obvious
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
USE_TOOLS+= yacc lex makedepend
|
|
USE_IMAKE= yes
|
|
|
|
MAKE_FLAGS+= CDEBUGFLAGS=${CFLAGS:Q}
|
|
MAKE_FLAGS+= EXTRA_LDOPTIONS=${LDFLAGS:Q}
|
|
MAKE_FLAGS+= SHLIBGLOBALSFLAGS=${LDFLAGS:Q}
|
|
|
|
PKG_SYSCONFSUBDIR= nas
|
|
|
|
SUBST_CLASSES+= sysconf
|
|
SUBST_STAGE.sysconf= pre-configure
|
|
SUBST_FILES.sysconf= config/NetAudio.def
|
|
SUBST_VARS.sysconf= PKG_SYSCONFDIR
|
|
|
|
SUBST_CLASSES+= ossaudio
|
|
SUBST_STAGE.ossaudio= pre-configure
|
|
SUBST_FILES.ossaudio= server/nasd.conf.eg server/dda/voxware/auvoxware.c
|
|
SUBST_VARS.ossaudio= DEVOSSAUDIO
|
|
|
|
SUBST_CLASSES+= mungeman
|
|
SUBST_STAGE.mungeman= pre-configure
|
|
SUBST_FILES.mungeman= config/mungeman
|
|
SUBST_SED.mungeman= -e 's|^ *\#|\#|g'
|
|
|
|
REPLACE_SH= clients/audio/util/checkmail
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.clients
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} != "Darwin" && ${OPSYS} != "Interix"
|
|
RCD_SCRIPTS= nasd
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.server
|
|
EGDIR= ${PREFIX}/share/examples/nas
|
|
CONF_FILES= ${EGDIR}/nasd.conf.eg ${PKG_SYSCONFDIR}/nasd.conf
|
|
|
|
. if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" \
|
|
|| ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" || ${OPSYS} == "UnixWare"
|
|
. include "../../mk/oss.buildlink3.mk"
|
|
. endif
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC}/config && ${SETENV} ${CONFIGURE_ENV} ./configure
|
|
|
|
# XXX OpenBSD 2.9 or later does not use lib/X11/config/bsdLib.rules,
|
|
# XXX the rule in OpenBSDLib.rules does not do the following.
|
|
# XXX PLIST should be splitted?
|
|
.if ${OPSYS} == "OpenBSD"
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/lib && \
|
|
${LN} -s libaudio.so.2.4 libaudio.so.2 && \
|
|
${LN} -s libaudio.so.2 libaudio.so
|
|
.endif
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|