ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

commit 59554cbc61c4ed4a358fe337b4d5d1d0a8effbae
parent 148d786a40a31285581b313919fab5450bdada68
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 27 Apr 2014 17:18:42 +0200

add dwm

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Adwm/config.mk | 33+++++++++++++++++++++++++++++++++
Adwm/dwm.mk | 14++++++++++++++
Adwm/mkfile | 5+++++
3 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/dwm/config.mk b/dwm/config.mk @@ -0,0 +1,33 @@ +# dwm version +VERSION = 6.1 + +# Customize below to fit your system + +# paths +#PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man + +#X11INC = /usr/X11R6/include +#X11LIB = /usr/X11R6/lib + +# Xinerama, comment if you don't want it +XINERAMALIBS = -lXinerama +XINERAMAFLAGS = -DXINERAMA + +# includes and libs +#INCS = -I${X11INC} +LIBS = -lX11 ${XINERAMALIBS} + +# flags +CPPFLAGS += -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} +#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} +CFLAGS += -std=c99 -Wno-deprecated-declarations ${INCS} ${CPPFLAGS} +LDFLAGS += ${LIBS} + +# Solaris +#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" +#LDFLAGS = ${LIBS} + +# compiler and linker +#CC = cc +#LD = $(CC) diff --git a/dwm/dwm.mk b/dwm/dwm.mk @@ -0,0 +1,14 @@ +TARG = dwm +DEPS = tinyxlib + +<$mkbuild/mk.common-noinst + +dwm:QV: + # overwrite default config.mk to allow overriding some variables. + cp ../config.mk config.mk + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + CC="${CC} -static" make -j$nprocs PREFIX="$prefix" DESTDIR="$ROOT" + +install:QV: + make -j$nprocs PREFIX="$prefix" DESTDIR="$ROOT" install diff --git a/dwm/mkfile b/dwm/mkfile @@ -0,0 +1,5 @@ +<$mkbuild/mk.3rdparty + +src = dwm +git = git://git.suckless.org/dwm +mkfile = ../dwm.mk