blob: 4fb28f6c9a96faa9bb394d81a22471805c460924 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Created by: trevor
# $FreeBSD$
PORTNAME= spiralloops
PORTVERSION= 2.0.0
PORTREVISION= 7
CATEGORIES= audio
MASTER_SITES= http://www.pawfal.org/Software/SpiralLoops/dload/
DISTNAME= SpiralLoops-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Loop-based sampler
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
NO_STAGE= yes
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
WRKSRC= ${WRKDIR}/${DISTNAME}
.include <bsd.port.pre.mk>
post-patch:
${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; \
s:/usr/X11R6:${LOCALBASE}:g" \
< ${WRKSRC}/Makefile.in.orig > ${WRKSRC}/Makefile.in
@${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'
pre-install:
${ECHO_CMD} bin/SpiralLoops > ${PLIST}
.if ${PORT_OPTIONS:MDOCS}
.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 ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for i in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|