From 01bd4cc26519744be08831973f252a171fd7760f Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Fri, 12 Nov 2010 18:14:31 +0100 Subject: [PATCH] BuildSystem: set HAVE_IMLIB instead of HAVE_IMLIB --- BSDmakefile | 6 +++++- Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/BSDmakefile b/BSDmakefile index 719071e..aced1b8 100644 --- a/BSDmakefile +++ b/BSDmakefile @@ -4,12 +4,16 @@ PROG= wmfs MAN1= wmfs.1 -.for lib in xrandr xinerama imlib2 +.for lib in xrandr xinerama .if !empty(LIBS:M${lib}) CFLAGS+= -DHAVE_${lib:U} .endif .endfor +.if !empty(LIBS:Mimlib2) +CFLAGS+= -DHAVE_IMLIB +.endif + .if !defined(CFLAGS_LIBS) CFLAGS_LIBS!= pkg-config --cflags-only-I ${LIBS} .endif diff --git a/Makefile b/Makefile index 2a623a0..508bb71 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ CFLAGS+= -DHAVE_XINERAMA endif ifneq ($(findstring imlib2, ${LIBS}),) -CFLAGS+= -DHAVE_IMLIB2 +CFLAGS+= -DHAVE_IMLIB endif ifndef CFLAGS_LIBS