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