diff options
author | pav <pav@FreeBSD.org> | 2005-05-19 22:09:18 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-05-19 22:09:18 +0800 |
commit | 28372072e87acd57a9914ee2352ffc13240ec5ce (patch) | |
tree | 409e4ea356f9f2c02e895467d18c8d9058372cd4 /audio/boodler | |
parent | 17d8d8d7002283145cf48debff77ed155c7fdcc1 (diff) | |
download | freebsd-ports-gnome-28372072e87acd57a9914ee2352ffc13240ec5ce.tar.gz freebsd-ports-gnome-28372072e87acd57a9914ee2352ffc13240ec5ce.tar.zst freebsd-ports-gnome-28372072e87acd57a9914ee2352ffc13240ec5ce.zip |
- Refine support for sound drivers
PR: ports/81212
Submitted by: Dan Pelleg <daniel+boodler@pelleg.org> (maintainer)
Diffstat (limited to 'audio/boodler')
-rw-r--r-- | audio/boodler/Makefile | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/audio/boodler/Makefile b/audio/boodler/Makefile index 8a929521801f..61286058dd70 100644 --- a/audio/boodler/Makefile +++ b/audio/boodler/Makefile @@ -21,19 +21,40 @@ RESTRICTED_FILES= boodler-snd-021902.tar.gz USE_GMAKE= yes USE_REINPLACE= yes USE_PYTHON= yes -DRIVER= oss +DRIVER?= oss WRKSRC= ${WRKDIR}/${PORTNAME} BHOME= ${PREFIX}/share/boodler INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/share/boodler/boodle -.if defined(DRIVER_FILE) -DRIVER= FILE +pre-everything:: + @${ECHO} "" + @${ECHO} "The following build options are available for Boodler:" + @${ECHO} "" + @${ECHO} " DRIVER=OSS Configure to use /dev/dsp." + @${ECHO} " DRIVER=ESD Configure to use EsounD." + @${ECHO} " DRIVER=FILE Configure to write raw PCM data to a file." + @${ECHO} "" + @${ECHO} "Boodler can only be configured to use one of these" + @${ECHO} "interfaces. The default is to use OSS." + @${ECHO} "" + +.if ${DRIVER:L} == "oss" +# Probably nothing here... +.endif + +.if ${DRIVER:L} == "esd" +LIB_DEPENDS+= esd.2:${PORTSDIR}/audio/esound +PKGNAMESUFFIX= -esd +.endif + +.if ${DRIVER:L} == "file" +PKGNAMESUFFIX= -file .endif .include <bsd.port.pre.mk> -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" +.if ${ARCH} == "amd64" || ${ARCH} == "ia64" PIC= --PIC .endif @@ -42,7 +63,7 @@ post-patch: @${RMDIR} ${WRKDIR}/boodler-snd/string do-build: - (cd ${WRKSRC} && ${PYTHON_CMD} configure.py --driver ${DRIVER} ${PIC} && make) + (cd ${WRKSRC} && ${PYTHON_CMD} configure.py --driver ${DRIVER:L} ${PIC} --include ${PREFIX}/include --lib ${PREFIX}/lib && make) @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/effects ${WRKSRC}/boodle/ do-install: |