freebsd-ports/audio/spiralloops/Makefile
Akinori MUSHA d5819cf547 Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.

Use command macros where appropriate.
2002-01-29 09:33:26 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: spiralloops
# Date created: 2000-12-06
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= spiralloops
PORTVERSION= 0.0.1
CATEGORIES= audio
MASTER_SITES= http://www.pawfal.org/SpiralLoops/dload/
DISTNAME= SpiralLoops-${PORTVERSION}
MAINTAINER= trevor@FreeBSD.org
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
DOCDIR= share/doc/${PORTNAME}
DOC_FILES= CHANGES COPYING README
GNU_CONFIGURE= yes
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
PLIST= ${WRKDIR}/pkg-plist
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
post-patch:
${PERL} -pi -e "s:-ldl::g" ${WRKSRC}/Makefile.in
${PERL} -pi -e 's|-O3|${PTHREAD_CFLAGS}|g ; \
s|CFLAGS =|CFLAGS +=|g ; \
s|CXXFLAGS=|CXXFLAGS+=|g ; \
s|-lm|${PTHREAD_LIBS} -lm|g ; \
s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.in
pre-install:
${ECHO_CMD} bin/SpiralLoops > ${PLIST}
.if !defined(NOPORTDOCS)
.for i in ${DOC_FILES}
${ECHO_CMD} ${DOCDIR}/`${BASENAME} ${i}` >> ${PLIST}
.endfor
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/SpiralLoops ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/${DOCDIR}
.for i in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
.endfor
.endif
.include <bsd.port.mk>