diff options
author | trevor <trevor@FreeBSD.org> | 2001-08-29 09:44:46 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2001-08-29 09:44:46 +0800 |
commit | 34af0242f092c840f735c74a2becdd9c91565174 (patch) | |
tree | a888529c8461aff8a207990b1c0b6b713f5ce566 | |
parent | 0de995d8195b640116b327dd1f6565b1881bf18b (diff) | |
download | freebsd-ports-gnome-34af0242f092c840f735c74a2becdd9c91565174.tar.gz freebsd-ports-gnome-34af0242f092c840f735c74a2becdd9c91565174.tar.zst freebsd-ports-gnome-34af0242f092c840f735c74a2becdd9c91565174.zip |
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.
-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) |