OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mine/gasgui-use-dialog-config.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Use dialog-config to determine the needed LDFLAGS for libdialog
  17. This way we do not have to worry about if we have to link against
  18. the narrowc or the widec version of libncurses.
  19. --- ./Makefile.orig 2011-03-23 17:33:23.964072236 +0100
  20. +++ ./Makefile 2011-03-23 18:48:53.956072238 +0100
  21. @@ -22,6 +22,7 @@
  22. #
  23. GAS_VER = $(MINE_VER)
  24. GAS_OBJ = gasgui.o readdb.o selector.o memdb.o
  25. +GAS_DIALOG_LDFLAGS = $(shell dialog-config --libs)
  26. # Let's use AVL for the memory DB
  27. #
  28. @@ -83,7 +84,7 @@
  29. $(CC) -static $(MINE_ALL_OBJS) $(MINE_ALL_LIBS) -o mine.static
  30. gasgui: $(GAS_OBJ)
  31. - $(CC) $(GAS_OBJ) -ldialog -lcurses -lm -o gasgui
  32. + $(CC) $(GAS_OBJ) $(GAS_DIALOG_LDFLAGS) -o gasgui
  33. install: all
  34. install mine $(sysprefix)/bin/mine