freebsd-ports/audio/pd/Makefile
Alexander Leidinger d16f7bfb92 Reset maintainership to ports@ after ~4 months without any response to any
PR.

Thanks for contributing.

Since the acroread7 port is a somewhat important port for our users, I
will hand it over to emulation@ if no _active_ *committer* takes it
before the ports freeze.

While I'm here:
 - fix a little nit in the csound port (I think the intention was to
   create no backup file instead of creating one with a "-e" extension)
 - set ARCH to i386 in the amd64 case for the acroread7 port. This
   is a work-around to be able to install everything when a dependency
   is not already installed (ARCH is read-only in sub-makes, so the
   dependencies can't change it). This should be removed when the
   dependencies are fixed or converted to use bsd.linux-rpm.mk. [1]

Not objected to by:	portmgr (explicit: krion; silence: rest)
Maintainer timeout:	~4 months
Submitted by:		Sangwoo Shim <sangwoos@gmail.com> [1]
PR:			87985 [1]
2006-02-11 21:03:14 +00:00

95 lines
2.6 KiB
Makefile

# New ports collection makefile for: pd
# Date created: 2002-05-24
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= pd
PORTVERSION= 0.37
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www-crca.ucsd.edu/~msp/Software/
DISTNAME= pd-0.37-1test1.src
MAINTAINER= ports@FreeBSD.org
COMMENT= Pure Data, a MIDI-capable real-time audio processor/synthesizer
LIB_DEPENDS= tcl84:${PORTSDIR}/lang/tcl84 \
tk84:${PORTSDIR}/x11-toolkits/tk84
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib -ltk84 -ltcl84"
MAKEFILE= makefile
MAN1= pd.1 pdreceive.1 pdsend.1
PATCH_WRKSRC= ${WRKSRC}/..
PLIST= ${WRKDIR}/pkg-plist
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_AUTOTOOLS= autoconf:259
WRKSRC= ${WRKDIR}/pd-0.37-1test1/src
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile on !i386"
.endif
pre-patch:
${RM} -f ${WRKSRC}/configure
post-configure:
${MV} ${WRKSRC}/makefile ${WRKSRC}/makefile.orig
${SED} -e "s:^INCLUDE = :INCLUDE = -I${LOCALBASE}/include/tk8.4 \
-I${LOCALBASE}/include/tcl8.4 -I${X11BASE}/include :g; \
s:^LIB =:LIB =${PTHREAD_LIBS}:g; \
s:GFLAGS = :GFLAGS = -DUSEAPI_OSS :g; \
s:x_midi.c ::g; s:s_midi.c ::g; \
s:^CFLAGS =:CFLAGS+=${PTHREAD_CFLAGS}:g" \
< ${WRKSRC}/makefile.orig > ${WRKSRC}/makefile
pre-install:
${RM} -f ${PLIST}
.for ii in pd pd-gui pd-watchdog pd.tk pdreceive pdsend
${ECHO_CMD} bin/${ii} >> ${PLIST}
.endfor
${ECHO_CMD} include/m_pd.h >> ${PLIST}
.if !defined(NOPORTDOCS)
.for ii in LICENSE README
${ECHO_CMD} share/doc/pd/${ii}.txt >> ${PLIST}
.endfor
cd ${WRKSRC}/../doc && ${FIND} -s . -type f | \
${CUT} -c3-999 | \
${SED} -e 's:^:share/doc/pd/:' >> ${PLIST} \
&& ${FIND} -d . -type d | \
${CUT} -c3-999 | \
${SED} -e 's:^:@dirrm share/doc/pd/:' >> ${PLIST}
cd ${WRKSRC}/../extra && ${FIND} -s . -type f -or -type l | \
${CUT} -c3-999 | \
${SED} -e 's:^:share/pd/:' >> ${PLIST} \
&& ${FIND} -d . -type d | \
${CUT} -c3-999 | \
${SED} -e 's:^:@dirrm share/pd/:' >> ${PLIST}
.endif
do-install:
.for ii in pd pd-gui pd-watchdog pdreceive pdsend
${INSTALL_PROGRAM} ${WRKSRC}/../bin/${ii} ${PREFIX}/bin
.endfor
${INSTALL_DATA} ${WRKSRC}/../bin/pd.tk ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/m_pd.h ${PREFIX}/include
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for ii in LICENSE README
${INSTALL_DATA} ${WRKSRC}/../${ii}.txt ${DOCSDIR}
.endfor
cd ${WRKSRC}/../doc && ${PAX} -r -w * ${DOCSDIR}
.endif
.for ii in pd pdreceive pdsend
${INSTALL_MAN} ${WRKSRC}/../man/${ii}.1 ${PREFIX}/man/man1/
.endfor
${MKDIR} ${DATADIR}
cd ${WRKSRC}/../extra && ${PAX} -r -w * ${DATADIR}
.include <bsd.port.post.mk>