summaryrefslogtreecommitdiffstats
path: root/audio/spiralsynthbaby
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2001-08-29 01:44:46 +0000
committertrevor <trevor@FreeBSD.org>2001-08-29 01:44:46 +0000
commit34af0242f092c840f735c74a2becdd9c91565174 (patch)
treea888529c8461aff8a207990b1c0b6b713f5ce566 /audio/spiralsynthbaby
parent0de995d8195b640116b327dd1f6565b1881bf18b (diff)
downloadFreeBSD-ports-34af0242f092c840f735c74a2becdd9c91565174.zip
FreeBSD-ports-34af0242f092c840f735c74a2becdd9c91565174.tar.gz
Use PTHREAD_CFLAGS and PTHREAD_LIBS to permit building on bento.
Submitted by: Patrick Li PR: 29597 While I'm here, use DOCSDIR and X11BASE too.
Diffstat (limited to 'audio/spiralsynthbaby')
-rw-r--r--audio/spiralsynthbaby/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/audio/spiralsynthbaby/Makefile b/audio/spiralsynthbaby/Makefile
index 5e3aced..031abdb 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)
OpenPOWER on IntegriCloud