diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2008-10-21 18:42:08 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2008-10-21 18:42:08 +0000 |
commit | 05386e7851de58c667e6486ebe091417f16554b2 (patch) | |
tree | 667709ed6d885a1a66f4b22147d09f6b1946f3c7 /sysutils/asusoled | |
parent | 12475602f66d9dac6f05e26198fe4426bbcd8a01 (diff) |
Notes
Diffstat (limited to 'sysutils/asusoled')
-rw-r--r-- | sysutils/asusoled/files/patch-Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sysutils/asusoled/files/patch-Makefile b/sysutils/asusoled/files/patch-Makefile new file mode 100644 index 000000000000..36e40c316b78 --- /dev/null +++ b/sysutils/asusoled/files/patch-Makefile @@ -0,0 +1,25 @@ +--- Makefile.orig 2008-09-13 03:00:29.000000000 -0400 ++++ Makefile 2008-10-21 14:27:18.000000000 -0400 +@@ -5,12 +5,20 @@ + HDRS= asusoled.h asusoled_hw.h + + PREFIX?= /usr/local ++SDL_CONFIG?= ${PREFIX}/bin/sdl-config + + INCS= -I${.CURDIR} -I${PREFIX}/include +-LIBS= -L${PREFIX}/lib -lSDL_image -lSDL_ttf -lusb -lutil ++.if exists(${SDL_CONFIG}) ++LIBS+= `${SDL_CONFIG} --libs` ++.else ++LIBS+= -lSDL -pthread ++.endif ++LIBS+= -L${PREFIX}/lib -lSDL_image -lSDL_ttf -lusb -lutil + + CFLAGS?= -Wall -O2 +- ++.if exists(${SDL_CONFIG}) ++CFLAGS+= `${SDL_CONFIG} --cflags` ++.endif + .if defined(TTF_FONT) + CFLAGS+= -DDEFAULT_FONT=\"${TTF_FONT}\" + .endif |