2019-05-26 21:36:38 +02:00
|
|
|
diff -uNr dmenu-4.9/config.mk dmenu-4.9.mod/config.mk
|
|
|
|
--- dmenu-4.9/config.mk 2019-02-02 14:55:02.000000000 +0200
|
2020-01-04 22:51:08 +01:00
|
|
|
+++ dmenu-4.9.mod/config.mk 2020-01-04 23:50:39.788733241 +0200
|
2019-05-26 21:36:38 +02:00
|
|
|
@@ -2,11 +2,11 @@
|
|
|
|
VERSION = 4.9
|
|
|
|
|
|
|
|
# paths
|
|
|
|
-PREFIX = /usr/local
|
|
|
|
+PREFIX ?= /usr/local
|
|
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
|
|
|
|
|
|
-X11INC = /usr/X11R6/include
|
|
|
|
-X11LIB = /usr/X11R6/lib
|
|
|
|
+X11INC = $(PREFIX)/include
|
|
|
|
+X11LIB = $(PREFIX)/lib
|
|
|
|
|
|
|
|
# Xinerama, comment if you don't want it
|
|
|
|
XINERAMALIBS = -lXinerama
|
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
|
|
|
|
# freetype
|
|
|
|
FREETYPELIBS = -lfontconfig -lXft
|
|
|
|
-FREETYPEINC = /usr/include/freetype2
|
|
|
|
+FREETYPEINC = $(PREFIX)/include/freetype2
|
|
|
|
# OpenBSD (uncomment)
|
|
|
|
#FREETYPEINC = $(X11INC)/freetype2
|
|
|
|
|
2020-01-04 22:51:08 +01:00
|
|
|
@@ -25,7 +25,7 @@
|
|
|
|
# flags
|
|
|
|
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
|
|
|
|
CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
|
|
|
|
-LDFLAGS = $(LIBS)
|
|
|
|
+LDFLAGS = -Wl,-rpath=@TERMUX_PREFIX@/lib,--enable-new-dtags $(LIBS)
|
2019-05-26 21:36:38 +02:00
|
|
|
|
|
|
|
# compiler and linker
|
|
|
|
-CC = cc
|
|
|
|
+CC ?= cc
|