diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-04 03:29:12 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-04 03:29:12 +0200 |
commit | 2e1efc10229d2a0ea078443349185faf4ae2e0a1 (patch) | |
tree | e426efbfc7c676b3c548407c483f95109c721353 | |
parent | derp (diff) | |
download | libgammamm-2e1efc10229d2a0ea078443349185faf4ae2e0a1.tar.gz libgammamm-2e1efc10229d2a0ea078443349185faf4ae2e0a1.tar.bz2 libgammamm-2e1efc10229d2a0ea078443349185faf4ae2e0a1.tar.xz |
add pkg-config file1.0
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | libgammamm.pc | 11 |
2 files changed, 21 insertions, 2 deletions
@@ -14,8 +14,10 @@ INCLUDE ?= /include DATA ?= /share # The library path including prefix LIBDIR ?= $(PREFIX)$(LIB) -# The library header including prefix. +# The library header path including prefix. INCLUDEDIR ?= $(PREFIX)$(INCLUDE) +# The pkg-config file path including prefix. +PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig # The resource path including prefix DATADIR ?= $(PREFIX)$(DATA) # The generic documentation path including prefix @@ -132,7 +134,7 @@ install: install-base install-all: install-base .PHONY: install-base -install-base: install-lib install-include install-copyright +install-base: install-lib install-include install-pc install-copyright .PHONY: install-lib @@ -147,6 +149,11 @@ install-include: install -dm755 -- "$(DESTDIR)$(INCLUDEDIR)" install -m644 $(foreach H,$(HEADERS),src/$(H).hh) -- "$(DESTDIR)$(INCLUDEDIR)" +.PHONY: install-pc +install-pc: + install -dm755 -- "$(DESTDIR)$(PKGCONFIGDIR)" + install -m644 libgammamm.pc -- "$(DESTDIR)$(PKGCONFIGDIR)" + .PHONY: install-copyright install-copyright: install-copying install-license @@ -169,6 +176,7 @@ uninstall: -rm -- "$(DESTDIR)$(LIBDIR)/libgammamm.$(SO).$(LIB_MAJOR)" -rm -- "$(DESTDIR)$(LIBDIR)/libgammamm.$(SO)" -rm -- $(foreach H,$(HEADERS),"$(DESTDIR)$(INCLUDEDIR)/$(H).hh") + -rm -- "$(DESTDIR)$(PKGCONFIGDIR)/libgammamm.pc" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE" -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" diff --git a/libgammamm.pc b/libgammamm.pc new file mode 100644 index 0000000..e9fff52 --- /dev/null +++ b/libgammamm.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=/usr +libdir=/usr/lib +includedir=/usr/include + +Name: libgammamm +Description: Display server abstraction layer for gamma ramps for C++ +Version: 1.0 +Libs: -L${libdir} -lgammamm -lgamma +Cflags: -I${includedir} + |