2001-03-24 03:54:49 +01:00
|
|
|
# New ports collection makefile for: spiralloops
|
|
|
|
# Date created: 2000-12-06
|
|
|
|
# Whom: trevor
|
2000-09-16 21:02:06 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-03-24 03:54:49 +01:00
|
|
|
PORTNAME= spiralloops
|
|
|
|
PORTVERSION= 0.0.1
|
2000-09-16 21:02:06 +02:00
|
|
|
CATEGORIES= audio
|
2001-03-24 03:54:49 +01:00
|
|
|
MASTER_SITES= http://www.pawfal.org/SpiralLoops/dload/
|
|
|
|
DISTNAME= SpiralLoops-${PORTVERSION}
|
2000-09-16 21:02:06 +02:00
|
|
|
|
2000-10-02 07:39:35 +02:00
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
2000-09-16 21:02:06 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
|
2001-03-24 03:54:49 +01:00
|
|
|
DOCDIR= share/doc/${PORTNAME}
|
|
|
|
DOC_FILES= CHANGES COPYING README
|
2000-09-16 21:02:06 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-08-29 07:42:33 +02:00
|
|
|
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
|
2001-03-24 03:54:49 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
USE_X_PREFIX= yes
|
2000-09-16 21:02:06 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
|
2001-08-29 07:42:33 +02:00
|
|
|
post-patch:
|
2001-03-24 03:54:49 +01:00
|
|
|
${PERL} -pi -e "s:-ldl::g" ${WRKSRC}/Makefile.in
|
2001-08-29 07:42:33 +02:00
|
|
|
${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
|
2001-03-24 03:54:49 +01:00
|
|
|
|
|
|
|
pre-install:
|
2002-01-29 10:33:26 +01:00
|
|
|
${ECHO_CMD} bin/SpiralLoops > ${PLIST}
|
2001-03-24 03:54:49 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for i in ${DOC_FILES}
|
2002-01-29 10:33:26 +01:00
|
|
|
${ECHO_CMD} ${DOCDIR}/`${BASENAME} ${i}` >> ${PLIST}
|
2001-03-24 03:54:49 +01:00
|
|
|
.endfor
|
2002-01-29 10:33:26 +01:00
|
|
|
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
2001-03-24 03:54:49 +01:00
|
|
|
.endif
|
2000-09-16 21:02:06 +02:00
|
|
|
|
|
|
|
do-install:
|
2001-03-24 03:54:49 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/SpiralLoops ${PREFIX}/bin
|
2000-09-16 21:02:06 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-03-24 03:54:49 +01:00
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
2000-09-16 21:02:06 +02:00
|
|
|
.for i in ${DOC_FILES}
|
2001-03-24 03:54:49 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
|
2000-09-16 21:02:06 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|