1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/audio/spiralloops/Makefile
Gerald Pfeifer 15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00

54 lines
1.4 KiB
Makefile

# Created by: trevor
# $FreeBSD$
PORTNAME= spiralloops
PORTVERSION= 2.0.0
PORTREVISION= 9
CATEGORIES= audio
MASTER_SITES= http://www.pawfal.org/Software/SpiralLoops/dload/
DISTNAME= SpiralLoops-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Loop-based sampler
LICENSE= GPLv2
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
GNU_CONFIGURE= yes
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
WRKSRC= ${WRKDIR}/${DISTNAME}
PLIST_FILES= bin/SpiralLoops
PORTDOCS= CHANGES README
DESKTOP_ENTRIES="SpiralLoops" "" "" "SpiralLoops" "" false
OPTIONS_DEFINE= DOCS
.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::g; \
s:CFLAGS =:CFLAGS +=:g; \
s:CXXFLAGS=:CXXFLAGS+=:g; \
s:-lm:${PTHREAD_LIBS} -lm:g; \
s:/usr/X11R6:${LOCALBASE}:g; \
s:gcc:${CC}:; s:g\+\+:${CXX}:" \
< ${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; s|iostream.h|iostream|; s|fstream.h|fstream|'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/SpiralLoops ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>