diff options
Diffstat (limited to 'audio/spiralsynthbaby/Makefile')
-rw-r--r-- | audio/spiralsynthbaby/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/audio/spiralsynthbaby/Makefile b/audio/spiralsynthbaby/Makefile index 5e3aced27bb0..031abdb61d29 100644 --- a/audio/spiralsynthbaby/Makefile +++ b/audio/spiralsynthbaby/Makefile @@ -16,13 +16,21 @@ MAINTAINER= trevor@FreeBSD.org LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk USE_X_PREFIX= yes - +MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" GNU_CONFIGURE= yes WRKSRC= ${WRKDIR}/${DISTNAME} DOC_FILES= CHANGES COPYING README +post-patch: + ${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 + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth ${PREFIX}/bin .if !defined(NOPORTDOCS) |