"Fossies" - the Fresh Open Source Software Archive

Member "feh-3.4.1/config.mk" (29 May 2020, 2174 Bytes) of package /linux/privat/feh-3.4.1.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.mk": 3.4_vs_3.4.1.

    1 PACKAGE ?= feh
    2 VERSION ?= 3.4.1
    3 
    4 app ?= 0
    5 curl ?= 1
    6 debug ?= 0
    7 exif ?= 0
    8 help ?= 0
    9 verscmp ?= 1
   10 xinerama ?= 1
   11 
   12 # Prefix for all installed files
   13 PREFIX ?= /usr/local
   14 ICON_PREFIX ?= ${DESTDIR}${PREFIX}/share/icons
   15 
   16 # icons in /usr/share/local/icons (and other prefixes != /usr) are not
   17 # generally supported. So ignore PREFIX and always install icons into
   18 # /usr/share/icons if the user wants to install feh on their local machine.
   19 ifeq (${app},1)
   20     ICON_PREFIX = /usr/share/icons
   21 endif
   22 
   23 # Directories for manuals, executables, docs, data, etc.
   24 main_dir = ${DESTDIR}${PREFIX}
   25 man_dir = ${main_dir}/share/man
   26 bin_dir = ${main_dir}/bin
   27 doc_dir = ${main_dir}/share/doc/feh
   28 image_dir = ${main_dir}/share/feh/images
   29 font_dir = ${main_dir}/share/feh/fonts
   30 example_dir = ${main_dir}/share/doc/feh/examples
   31 desktop_dir = ${main_dir}/share/applications
   32 icon_dir = ${ICON_PREFIX}/hicolor
   33 48_icon_dir = ${icon_dir}/48x48/apps
   34 scalable_icon_dir = ${icon_dir}/scalable/apps
   35 
   36 # default CFLAGS
   37 CFLAGS ?= -g -O2
   38 CFLAGS += -Wall -Wextra -pedantic
   39 
   40 # Settings for glibc >= 2.19 - may need to be adjusted for other systems
   41 CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
   42 
   43 ifeq (${curl},1)
   44     CFLAGS += -DHAVE_LIBCURL
   45     LDLIBS += -lcurl
   46     MAN_CURL = enabled
   47 else
   48     MAN_CURL = disabled
   49 endif
   50 
   51 ifeq (${debug},1)
   52     CFLAGS += -DDEBUG -O0
   53     MAN_DEBUG = This is a debug build.
   54 else
   55     MAN_DEBUG = .
   56 endif
   57 
   58 ifeq (${help},1)
   59     CFLAGS += -DINCLUDE_HELP
   60 endif
   61 
   62 ifeq (${stat64},1)
   63     CFLAGS += -D_FILE_OFFSET_BITS=64
   64 endif
   65 
   66 ifeq (${verscmp},1)
   67     CFLAGS += -DHAVE_VERSCMP
   68     MAN_VERSCMP = available
   69 else
   70     MAN_VERSCMP = not available
   71 endif
   72 
   73 ifeq (${xinerama},1)
   74     CFLAGS += -DHAVE_LIBXINERAMA
   75     LDLIBS += -lXinerama
   76     MAN_XINERAMA = enabled
   77 else
   78     MAN_XINERAMA = disabled
   79 endif
   80 
   81 ifeq (${exif},1)
   82     CFLAGS += -DHAVE_LIBEXIF
   83     LDLIBS += -lexif
   84     MAN_EXIF = available
   85 else
   86     MAN_EXIF = not available
   87 endif
   88 
   89 ifeq (${inotify},1)
   90     CFLAGS += -DHAVE_INOTIFY
   91     MAN_INOTIFY = enabled
   92 else
   93     MAN_INOTIFY = disabled
   94 endif
   95 
   96 MAN_DATE ?= May 29, 2020
   97 
   98 # Uncomment this to use dmalloc
   99 #CFLAGS += -DWITH_DMALLOC
  100 
  101 CFLAGS += -DPREFIX=\"${PREFIX}\" \
  102     -DPACKAGE=\"${PACKAGE}\" -DVERSION=\"${VERSION}\"
  103 
  104 LDLIBS += -lm -lpng -lX11 -lImlib2