]>
Commit | Line | Data |
---|---|---|
30dc04f0 AM |
1 | Description: Add a pkg-config file for the shared libraries. |
2 | Author: Benjamin Drung <bdrung@debian.org> | |
3 | ||
4 | --- a/Makefile.head | |
5 | +++ b/Makefile.head | |
6 | @@ -1 +1,4 @@ | |
7 | +PREFIX = /usr/local | |
8 | +LIBDIR = /usr/local/lib | |
9 | +VERSION = $(shell grep LIVEMEDIA_LIBRARY_VERSION_STRING liveMedia/include/liveMedia_version.hh | sed 's/.*"\([^"]*\)".*/\1/') | |
10 | ##### Change the following for your environment: | |
11 | --- /dev/null | |
12 | +++ b/live555.pc.in | |
13 | @@ -0,0 +1,9 @@ | |
14 | +prefix=@PREFIX@ | |
15 | +libdir=@LIBDIR@ | |
16 | +includedir=${prefix}/include | |
17 | + | |
18 | +Name: live555 | |
19 | +Description: multimedia RTSP streaming library | |
20 | +Version: @VERSION@ | |
21 | +Cflags: -I${includedir}/liveMedia -I${includedir}/groupsock -I${includedir}/BasicUsageEnvironment -I${includedir}/UsageEnvironment | |
22 | +Libs: -L${libdir} -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment | |
23 | --- a/Makefile.tail | |
24 | +++ b/Makefile.tail | |
25 | @@ -20,7 +20,12 @@ | |
26 | cd $(MEDIA_SERVER_DIR) ; $(MAKE) | |
27 | cd $(PROXY_SERVER_DIR) ; $(MAKE) | |
28 | ||
29 | -install: | |
30 | +install_shared_libraries: | |
31 | + install -d $(DESTDIR)$(LIBDIR)/pkgconfig | |
32 | + sed "s#@PREFIX@#$(PREFIX)#;s#@LIBDIR@#$(LIBDIR)#;s#@VERSION@#$(VERSION)#" live555.pc.in > $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc | |
33 | + chmod 644 $(DESTDIR)$(LIBDIR)/pkgconfig/live555.pc | |
34 | + | |
35 | +install: $(INSTALL2) | |
36 | cd $(LIVEMEDIA_DIR) ; $(MAKE) install | |
37 | cd $(GROUPSOCK_DIR) ; $(MAKE) install | |
38 | cd $(USAGE_ENVIRONMENT_DIR) ; $(MAKE) install |