Changeset 98087
- Timestamp:
- Sep 24, 2012, 5:37:09 PM (12 years ago)
- Location:
- trunk/dports/databases/mongodb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/databases/mongodb/Portfile
r98086 r98087 43 43 post-patch { 44 44 reinplace "s|@@PREFIX@@|${prefix}|g" \ 45 ${worksrcpath}/SConstruct \46 45 ${worksrcpath}/distsrc/client/SConstruct 47 46 } … … 56 55 57 56 build.env TERM=xterm \ 58 CFLAGS="[get_canonical_archflags cc]" \ 59 CPPFLAGS="-I${prefix}/include/js" \ 60 CXXFLAGS="[get_canonical_archflags cxx]" \ 61 LINKFLAGS="[get_canonical_archflags ld]" 57 ARCHFLAGS="[get_canonical_archflags]" \ 58 CPPFLAGS="${configure.cppflags} -I${prefix}/include/js" \ 59 LDFLAGS="${configure.ldflags}" 62 60 63 61 build.cmd ${prefix}/bin/scons -
trunk/dports/databases/mongodb/files/patch-SConstruct.diff
r98079 r98087 1 1 --- SConstruct.orig 2012-08-28 00:28:11.000000000 -0500 2 +++ SConstruct 2012-0 8-30 04:19:10.000000000 -05003 @@ -486,21 +486, 14@@2 +++ SConstruct 2012-09-24 11:16:43.000000000 -0500 3 @@ -486,21 +486,9 @@ 4 4 darwin = True 5 5 platform = "osx" # prettier than darwin … … 20 20 - env.Append( EXTRACPPPATH=filterExists(["/sw/include" , "/opt/local/include"]) ) 21 21 - env.Append( EXTRALIBPATH=filterExists(["/sw/lib/", "/opt/local/lib"]) ) 22 + env.Append( EXTRACPPPATH=["@@PREFIX@@/include"] ) 23 + env.Append( EXTRALIBPATH=["@@PREFIX@@/lib"] ) 24 + env["CFLAGS"] = os.getenv("CFLAGS") 25 + env["CPPFLAGS"] = os.getenv("CPPFLAGS") 26 + env["CXXFLAGS"] = os.getenv("CXXFLAGS") 27 + env["LINKFLAGS"] = os.getenv("LINKFLAGS") 22 + env.MergeFlags( [ os.getenv("CPPFLAGS"), os.getenv("LDFLAGS"), os.getenv("ARCHFLAGS") ] ) 28 23 29 24 elif os.sys.platform.startswith("linux"):
Note: See TracChangeset
for help on using the changeset viewer.