File: pkg-config

package info (click to toggle)
acr 2.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 712 kB
  • sloc: sh: 4,738; makefile: 41
file content (33 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pkg-config with ACR
===================

You can easily create .pc files for your program by adding a simple template
file like this in your project:

--- libfoo.pc.acr
# Package Information for pkg-config

prefix=@PREFIX@
exec_prefix=${prefix}
libdir=@LIBDIR@
includedir=@INCLUDEDIR@

Name: @PKGNAME@
Description: Your description
Version: @VERSION@
Libs: -L${libdir} -Wl,-R${libdir} -lfoo
Cflags: -I${INCLUDEDIR}
---

You must add the following line in your Makefile.acr:

--- Makefile.acr
install:
	${INSTALL_DATA} libfoo.pc ${LIBDIR}/pkgconfig/
---

And of course...you must handle this file into the configure.acr:

--- configure.acr
SUBDIRS libfoo.pc ;
---