aboutsummaryrefslogtreecommitdiff
path: root/emulators/pearpc
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2005-11-17 13:22:30 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2005-11-17 13:22:30 +0000
commit7a51904aaaa44df123e7ddbad9b475eebd504344 (patch)
tree38bd383848579a7d0f566dc295dc15fff1a7816f /emulators/pearpc
parenta3d2c157e99d7a3b6a50306bccf565222b705149 (diff)
downloadports-7a51904aaaa44df123e7ddbad9b475eebd504344.tar.gz
ports-7a51904aaaa44df123e7ddbad9b475eebd504344.zip
An attempt to fix build on 4.x.
Reported by: pointyhat via kris
Notes
Notes: svn path=/head/; revision=148607
Diffstat (limited to 'emulators/pearpc')
-rw-r--r--emulators/pearpc/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/emulators/pearpc/Makefile b/emulators/pearpc/Makefile
index 13886a8619fe..a661c8328d82 100644
--- a/emulators/pearpc/Makefile
+++ b/emulators/pearpc/Makefile
@@ -28,8 +28,7 @@ PLIST_DIRS= %%DATADIR%%
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -ffast-math
.else
-CONFIGURE_ARGS+= --disable-fpo \
- --disable-release
+CONFIGURE_ARGS+= --disable-fpo
.endif
# GTK and QT ui are broken in this version
@@ -86,6 +85,9 @@ pre-everything::
@${ECHO_MSG} ""
.endif
+post-extract:
+ @${REINPLACE_CMD} -e 's|-g -O2||;s|-O2||' ${WRKSRC}/configure
+
post-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/src/Makefile