st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

config.mk.OBSD (1782B)


      1 # st version
      2 VERSION = 0.9.2
      3 
      4 # Customize below to fit your system
      5 
      6 # paths
      7 PREFIX = $(HOME)/.local
      8 MANPREFIX = $(PREFIX)/share/man
      9 ICONPREFIX = $(PREFIX)/share/pixmaps
     10 ICONNAME = st.png
     11 
     12 X11INC = /usr/X11R6/include
     13 X11LIB = /usr/X11R6/lib
     14 
     15 PKG_CONFIG = pkg-config
     16 
     17 # Uncomment this for the alpha patch / ALPHA_PATCH
     18 XRENDER = `$(PKG_CONFIG) --libs xrender`
     19 
     20 # Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH
     21 #XCURSOR = `$(PKG_CONFIG) --libs xcursor`
     22 
     23 # Uncomment the lines below for the ligatures patch / LIGATURES_PATCH
     24 #LIGATURES_C = hb.c
     25 #LIGATURES_H = hb.h
     26 #LIGATURES_INC = `$(PKG_CONFIG) --cflags harfbuzz`
     27 #LIGATURES_LIBS = `$(PKG_CONFIG) --libs harfbuzz`
     28 
     29 # Uncomment this for the SIXEL patch / SIXEL_PATCH
     30 #SIXEL_C = sixel.c sixel_hls.c
     31 #SIXEL_LIBS = `$(PKG_CONFIG) --libs imlib2`
     32 
     33 # Uncomment for the netwmicon patch / NETWMICON_PATCH
     34 #NETWMICON_LIBS = `$(PKG_CONFIG) --libs gdlib`
     35 
     36 # includes and libs, uncomment harfbuzz for the ligatures patch
     37 INCS = -I$(X11INC) \
     38        `$(PKG_CONFIG) --cflags fontconfig` \
     39        `$(PKG_CONFIG) --cflags freetype2` \
     40        $(LIGATURES_INC)
     41 LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft ${SIXEL_LIBS} ${XRENDER} ${XCURSOR}\
     42        `$(PKG_CONFIG) --libs fontconfig` \
     43        `$(PKG_CONFIG) --libs freetype2` \
     44        $(LIGATURES_LIBS) \
     45        $(NETWMICON_LIBS)
     46 
     47 # flags
     48 STCPPFLAGS = -DVERSION=\"$(VERSION)\" -DICON=\"$(ICONPREFIX)/$(ICONNAME)\" -D_XOPEN_SOURCE=600
     49 STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
     50 STLDFLAGS = $(LIBS) $(LDFLAGS)
     51 
     52 # OpenBSD:
     53 CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
     54 LIBS = -L$(X11LIB) -lm -lX11 -lutil -lXft \
     55        `pkg-config --libs fontconfig` \
     56        `pkg-config --libs freetype2`
     57 MANPREFIX = ${PREFIX}/man
     58 
     59 # compiler and linker
     60 # CC = c99