ports/math/ogdf/files/patch-makeMakefile.py
Kurt Jaeger 141a25e582 math/ogdf: 2012.07 -> 2015.05
Changes:
  http://www.ogdf.net/doku.php/tech:versions#v_201505_baobab

- Remove dependencies on math/abacus and math/coinmp, as they are
  now bundled into the OGDF source tarballs and compiled from there
  (COIN remains optional)
- Point MASTER_SITES to the official OGDF website
- Utilise USES=compiler:features to detect C++11 support, and
  add compiler flags -std=c++11 if so (required for build to complete
  without errors)
- Remove custom do-install recipe, and instead use default
  make install target
- Take maintainership

PR:		207531
Submitted by:	Ben Woods <woodsb02@gmail.com>
2016-03-09 16:49:38 +00:00

22 lines
984 B
Python

--- makeMakefile.py.orig 2015-05-29 15:36:39 UTC
+++ makeMakefile.py
@@ -154,7 +154,7 @@ if useCoin:
if sharedLib and (sys.platform == 'win32' or sys.platform == 'cygwin'):
libs += ' -l' + v.coinSharedName()
-ogdfFlags = '-I./include ' + addIncludes
+ogdfFlags = '-I./include %%STDCPP11%% ' + addIncludes
coinFlags = '$(COIN_INSTALL_DEFINES) -I./include/coin ' + addIncludes
if sharedLib:
@@ -458,8 +458,8 @@ if installPrefix:
if useCoin:
InstallHeaders('include/coin', makefile, installPrefix)
makefile.write('\ninstall-pkgconfig: ogdf.pc\n')
- makefile.write('\tinstall -d $(DESTDIR)' + installPrefix + '/lib/pkgconfig\n')
- makefile.write('\tinstall -m 0644 ogdf.pc $(DESTDIR)' + installPrefix + '/lib/pkgconfig\n')
+ makefile.write('\tinstall -d $(DESTDIR)' + installPrefix + '/libdata/pkgconfig\n')
+ makefile.write('\tinstall -m 0644 ogdf.pc $(DESTDIR)' + installPrefix + '/libdata/pkgconfig\n')
makefile.write('\ndistclean: clean-doc')
for v in versions: