diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2001-08-29 01:44:46 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2001-08-29 01:44:46 +0000 |
commit | 915d7342f4f5a14fe01dc9eb0e2bd98e80bb0823 (patch) | |
tree | 4ee685c103fdb2393d47420fd845ce2c4c7ca906 /audio | |
parent | Update to 1.44. (diff) |
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.
Notes
Notes:
svn path=/head/; revision=47048
Diffstat (limited to 'audio')
-rw-r--r-- | audio/spiralsynth/Makefile | 10 | ||||
-rw-r--r-- | audio/spiralsynthbaby/Makefile | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/audio/spiralsynth/Makefile b/audio/spiralsynth/Makefile index 5e3aced27bb0..031abdb61d29 100644 --- a/audio/spiralsynth/Makefile +++ b/audio/spiralsynth/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) 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) |