2013-01-27 06:55:20 +01:00
|
|
|
# Created by: trevor
|
2000-09-16 21:02:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2001-03-24 03:54:49 +01:00
|
|
|
PORTNAME= spiralloops
|
2002-05-24 02:45:17 +02:00
|
|
|
PORTVERSION= 2.0.0
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 7
|
2000-09-16 21:02:06 +02:00
|
|
|
CATEGORIES= audio
|
2005-11-12 12:58:01 +01:00
|
|
|
MASTER_SITES= http://www.pawfal.org/Software/SpiralLoops/dload/
|
2001-03-24 03:54:49 +01:00
|
|
|
DISTNAME= SpiralLoops-${PORTVERSION}
|
2000-09-16 21:02:06 +02:00
|
|
|
|
2006-02-11 22:03:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-01 15:34:33 +01:00
|
|
|
COMMENT= Loop-based sampler
|
2000-09-16 21:02:06 +02:00
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
|
2000-09-16 21:02:06 +02:00
|
|
|
|
2013-09-20 16:36:35 +02:00
|
|
|
NO_STAGE= yes
|
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
|
2000-09-16 21:02:06 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
|
2003-06-05 00:43:38 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-08-29 07:42:33 +02:00
|
|
|
post-patch:
|
2003-10-04 16:50:25 +02:00
|
|
|
${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.orig
|
|
|
|
${SED} -E "s:-ldl::g; \
|
|
|
|
s:^CFLAGS:XCFLAGS:g; \
|
|
|
|
s:^CXXFLAGS:XCXXFLAGS:g; \
|
|
|
|
s:-O3:${PTHREAD_CFLAGS}:g; \
|
|
|
|
s:CFLAGS =:CFLAGS +=:g; \
|
|
|
|
s:CXXFLAGS=:CXXFLAGS+=:g; \
|
|
|
|
s:-lm:${PTHREAD_LIBS} -lm:g; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s:/usr/X11R6:${LOCALBASE}:g" \
|
2003-10-04 16:50:25 +02:00
|
|
|
< ${WRKSRC}/Makefile.in.orig > ${WRKSRC}/Makefile.in
|
2001-03-24 03:54:49 +01:00
|
|
|
|
2011-11-15 15:59:16 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name "*.C" -o -name "*.cpp" -o -name "*.h" | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e '/^#include <FL/s|.h>$$|.H>|; /^#include "FL/s|.h"$$|.H"|; \
|
|
|
|
s|fl_file_chooser.H|Fl_File_Chooser.H|g'
|
|
|
|
|
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)
|
2002-05-24 02:45:17 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2000-09-16 21:02:06 +02:00
|
|
|
.for i in ${DOC_FILES}
|
2002-05-24 02:45:17 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2000-09-16 21:02:06 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2003-05-18 11:55:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|