termux-packages/x11-packages/dwm/config.mk.patch
Yisus7u7 90390b6fae
update some packages (#615)
* arqiver: update to 0.9.0

* dwm: update to 6.3

* featherpad: update to 1.1.1

* feh: update to 3.8

* fluent-gtk-theme: update to 2022.01.15

* fluent-icon-theme: update to 2022.02.04

* geany-plugins: update to 1.38

Co-authored-by: Yisus7u7 <jesuspixel5@gmail.com>
Co-authored-by: xtkoba <69125751+xtkoba@users.noreply.github.com>
2022-04-18 14:50:17 +05:30

46 lines
1.3 KiB
Diff

--- a/config.mk
+++ b/config.mk
@@ -4,11 +4,11 @@
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+PREFIX = @TERMUX_PREFIX@
MANPREFIX = ${PREFIX}/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = @TERMUX_PREFIX@/include
+X11LIB = @TERMUX_PREFIX@/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
@@ -16,7 +16,7 @@
# freetype
FREETYPELIBS = -lfontconfig -lXft
-FREETYPEINC = /usr/include/freetype2
+FREETYPEINC = @TERMUX_PREFIX@/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
@@ -25,14 +25,14 @@
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS += -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = ${LIBS}
+CFLAGS += -std=c99 -pedantic -Wall -Wno-deprecated-declarations ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
-CC = cc
+CC ?= cc