MFH: r377911

- Fix build on FreeBSD 8.x and 9.x

Obtained from:	FreeBSD Haskell
Approved by:	portmgr (erwin)
This commit is contained in:
Gabor Pali 2015-01-29 02:32:44 +00:00
parent c9cf4ba0cf
commit ec13d769c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2015Q1/; revision=378102
3 changed files with 15 additions and 2 deletions

View File

@ -25,8 +25,10 @@ post-patch::
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.if ${OSVERSION} >= 900000
EXTRA_PATCHES+= ${PATCHDIR}/nopatch-wxc.cabal
.if ${OSVERSION} >= 1000000
EXTRA_PATCHES+= ${PATCHDIR}/nopatch0-wxc.cabal
.else
EXTRA_PATCHES+= ${PATCHDIR}/nopatch1-wxc.cabal
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- wxc.cabal.orig 2015-01-16 21:06:43 UTC
+++ wxc.cabal
@@ -161,6 +161,8 @@ library
base >= 4 && < 5,
wxdirect >= 0.90.1.0
+ extra-libraries: stdc++
+
x-dll-sources:
src/cpp/apppath.cpp
src/cpp/dragimage.cpp