Skip to content

Commit

Permalink
Merge branch 'pkgconfig-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
fador committed Sep 15, 2015
2 parents f1ac0e6 + 4db06bc commit 5b3f2a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ endif

.PHONY: kvazaar.pc init_submodules install install-pc install-prog install-lib
.PHONY: install-dylib install-dll clean
kvazaar.pc: KVZ_VERSION = $(shell sed -n 's/^#define\s\+KVZ_VERSION\s\+\(.*\)/\1/ p' global.h)
kvazaar.pc: kvazaar.pc.in Makefile
sed -e "s;@prefix@;$(PREFIX);" -e "s;@libdir@;$(LIBDIR);" \
-e "s;@VERSION@;$(VER_MAJOR).$(VER_MINOR).$(VER_RELEASE);" \
-e "s;@VERSION@;$(KVZ_VERSION);" \
-e "s;@LIBS@;$(LIBS);" kvazaar.pc.in > $@

init_submodules:
Expand Down
7 changes: 6 additions & 1 deletion src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ typedef int16_t coeff_t;
//#define SIGN3(x) ((x) > 0) ? +1 : ((x) == 0 ? 0 : -1)
#define SIGN3(x) (((x) > 0) - ((x) < 0))

#define VERSION_STRING "0.5.0"

#define QUOTE(x) #x
#define QUOTE_EXPAND(x) QUOTE(x)

#define KVZ_VERSION 0.5.0
#define VERSION_STRING QUOTE_EXPAND(KVZ_VERSION)

//#define VERBOSE 1

Expand Down

0 comments on commit 5b3f2a6

Please sign in to comment.