Re: [dev] ST 0.4 and OpenBSD 5.2

From: Anthony J. Bentley <anthony_AT_cathet.us>
Date: Fri, 19 Apr 2013 11:53:33 -0600

Gregor Best writes:
> I'm on OpenBSD -current at the moment and the latest git HEAD of st compiles
> with the following patch:
>
> diff --git a/config.mk b/config.mk
> index 88355c7..f1a24d7 100644
> --- a/config.mk
> +++ b/config.mk
> _AT_@ -26,3 +26,4 @@ LDFLAGS += -g ${LIBS}
> # compiler and linker
> CC ?= cc
>
> +CFLAGS += -I/usr/X11R6/include/freetype2

That's because the st makefiles use $(shell ...) which is a GNUism.

Here is a patch that fixes it:


diff --git a/config.mk b/config.mk
index 88355c7..4d0a869 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -12,11 +12,11 @@ X11LIB = /usr/X11R6/lib
 
 # includes and libs
 INCS = -I. -I/usr/include -I${X11INC} \
- $(shell pkg-config --cflags fontconfig) \
- $(shell pkg-config --cflags freetype2)
+ `pkg-config --cflags fontconfig` \
+ `pkg-config --cflags freetype2`
 LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil -lXext -lXft \
- $(shell pkg-config --libs fontconfig) \
- $(shell pkg-config --libs freetype2)
+ `pkg-config --libs fontconfig` \
+ `pkg-config --libs freetype2`
 
 # flags
 CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_XOPEN_SOURCE=600
Received on Fri Apr 19 2013 - 19:53:33 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 19 2013 - 20:00:07 CEST