summaryrefslogtreecommitdiff
path: root/desktop/dmenu/dmenu-4.8-libdir_cflags_fixups.diff
diff options
context:
space:
mode:
authorPhillip Warner <pc_warner@yahoo.com>2018-04-02 20:31:20 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-07 08:13:09 +0700
commitedc8035ebde0a3fbe59bd877e19104b2bf4d71bc (patch)
tree3d96cd5f184a70355a76705336b4bce05ca1660d /desktop/dmenu/dmenu-4.8-libdir_cflags_fixups.diff
parent847f98793d72ec122f408ad71c9ff5854362aee7 (diff)
downloadslackbuilds-edc8035ebde0a3fbe59bd877e19104b2bf4d71bc.tar.gz
desktop/dmenu: Updated for version 4.8.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/dmenu/dmenu-4.8-libdir_cflags_fixups.diff')
-rw-r--r--desktop/dmenu/dmenu-4.8-libdir_cflags_fixups.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/desktop/dmenu/dmenu-4.8-libdir_cflags_fixups.diff b/desktop/dmenu/dmenu-4.8-libdir_cflags_fixups.diff
new file mode 100644
index 0000000000..5c8f5e341a
--- /dev/null
+++ b/desktop/dmenu/dmenu-4.8-libdir_cflags_fixups.diff
@@ -0,0 +1,26 @@
+diff -Naur dmenu-4.8-orig/config.mk dmenu-4.8/config.mk
+--- dmenu-4.8-orig/config.mk 2018-03-14 13:26:40.000000000 -0600
++++ dmenu-4.8/config.mk 2018-04-01 18:03:50.431134881 -0600
+@@ -4,6 +4,7 @@
+ # paths
+ PREFIX = /usr/local
+ MANPREFIX = ${PREFIX}/share/man
++LIBDIR = /usr/local/lib
+
+ X11INC = /usr/X11R6/include
+ X11LIB = /usr/X11R6/lib
+@@ -20,11 +21,12 @@
+
+ # includes and libs
+ INCS = -I${X11INC} -I${FREETYPEINC}
+-LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
++LIBS = -L${LIBDIR} -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
+
+ # flags
++OPTS ?= -Os
+ 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}
++CFLAGS = -std=c99 -pedantic -Wall ${OPTS} ${INCS} ${CPPFLAGS}
+ LDFLAGS = -s ${LIBS}
+
+ # compiler and linker