2003-12-31 00:45:42 +00:00
|
|
|
# New ports collection makefile for: boodler
|
|
|
|
# Date created: 2003/12/30
|
|
|
|
# Whom: Dan Pelleg <daniel+boodler@pelleg.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= boodler
|
|
|
|
PORTVERSION= 1.5.3
|
2004-02-04 05:21:48 +00:00
|
|
|
PORTREVISION= 1
|
2003-12-31 00:45:42 +00:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://www.eblong.com/zarf/boodler/ \
|
|
|
|
http://s89813419.onlinehome.us/
|
|
|
|
DISTFILES= boodler-153.tar.gz boodler-snd-021902.tar.gz
|
|
|
|
|
|
|
|
MAINTAINER= daniel+boodler@pelleg.org
|
|
|
|
COMMENT= A programmable soundscape tool
|
|
|
|
|
|
|
|
RESTRICTED= no commercial use
|
|
|
|
RESTRICTED_FILES= boodler-snd-021902.tar.gz
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_PYTHON= yes
|
2005-05-19 14:09:18 +00:00
|
|
|
DRIVER?= oss
|
2003-12-31 00:45:42 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
BHOME= ${PREFIX}/share/boodler
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/share/boodler/boodle
|
|
|
|
|
2005-05-19 14:09:18 +00:00
|
|
|
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
|
2003-12-31 00:45:42 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-11 10:54:27 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-05-19 14:09:18 +00:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
2004-01-25 12:17:16 +00:00
|
|
|
PIC= --PIC
|
|
|
|
.endif
|
|
|
|
|
2003-12-31 00:45:42 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e "s|^booroot=.*|booroot=${PREFIX}/share/boodler|" ${WRKSRC}/wrapper/boodler
|
|
|
|
@${RMDIR} ${WRKDIR}/boodler-snd/string
|
|
|
|
|
|
|
|
do-build:
|
2005-05-19 14:09:18 +00:00
|
|
|
(cd ${WRKSRC} && ${PYTHON_CMD} configure.py --driver ${DRIVER:L} ${PIC} --include ${PREFIX}/include --lib ${PREFIX}/lib && make)
|
2003-12-31 00:45:42 +00:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/effects ${WRKSRC}/boodle/
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${ECHO_MSG} "Installing files"
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/wrapper/boodler ${PREFIX}/bin/
|
|
|
|
@${MKDIR} ${BHOME}
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/boodler.py ${BHOME}
|
|
|
|
@${MKDIR} ${BHOME}/boodle/ ${BHOME}/effects/ ${BHOME}/boodler-snd/
|
|
|
|
@${CHMOD} -R u+w,a+r,og-w ${WRKDIR}/boodler-snd
|
|
|
|
@${FIND} ${WRKDIR}/boodler-snd -type d -print0 | ${XARGS} -0 ${CHMOD} 755
|
|
|
|
@cd ${WRKDIR} && ${CP} -pPR boodler/boodle boodler/effects boodler-snd ${BHOME}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-04-11 10:54:27 +00:00
|
|
|
.include <bsd.port.post.mk>
|