Commit 31e9a0ab40f0add1b0ee6db40211c5fe7bec5585
authorJakob Gruber <jakob.gruber@gmail.com>
Mon, 10 Sep 2012 09:38:23 +0000 (11:38 +0200)
committerJakob Gruber <jakob.gruber@gmail.com>
Mon, 10 Sep 2012 10:36:21 +0000 (12:36 +0200)
According to http://people.freedesktop.org/~dbn/pkg-config-guide.html,
"each pkg-config file is best used to describe a single library, so each
package should have at least as many pkg-config files as they do
installed libraries."

3 files changed:
simavr/Makefile
simavr/simavr-avr.pc [new file with mode: 0644]
simavr/simavr.pc

index f701b0b9fcf3c53c8a978392c1a35611991304c6..afaae9f8e60529aa4a6884f41e35c3001ff2dd05 100644 (file)
@@ -92,6 +92,8 @@ install : all
        $(MKDIR) $(DESTDIR)/lib
        $(INSTALL) ${OBJ}/libsimavr.a $(DESTDIR)/lib/
        $(MKDIR) $(DESTDIR)/lib/pkgconfig/
+       sed -e "s|PREFIX|${PREFIX}|g" -e "s|VERSION|${SIMAVR_VERSION}|g" \
+               simavr-avr.pc >$(DESTDIR)/lib/pkgconfig/simavr-avr.pc
        sed -e "s|PREFIX|${PREFIX}|g" -e "s|VERSION|${SIMAVR_VERSION}|g" \
                simavr.pc >$(DESTDIR)/lib/pkgconfig/simavr.pc
 ifeq (${shell uname}, Linux)
diff --git a/simavr/simavr-avr.pc b/simavr/simavr-avr.pc
new file mode 100644 (file)
index 0000000..c017918
--- /dev/null
@@ -0,0 +1,13 @@
+prefix=PREFIX
+exec_prefix=${prefix}
+includedir=${prefix}/include
+libdir=${exec_prefix}/lib
+
+Name: simavr-avr
+Description: Atmel(tm) AVR 8 bits simulator - avr-gcc flags
+Version: VERSION
+Cflags: -I${includedir}/avr -ffunction-sections -fdata-sections \
+                       -Wl,--relax,--gc-sections \
+                       -Wl,--undefined=_mmcu,--section-start=.mmcu=0x910000
+Libs: 
+
index c1e9ba9d329032919451e49eb6c98fbd8fc4ec8b..3c5d3b37361740e38e79b11f79577e2089fe5c9f 100644 (file)
@@ -1,4 +1,3 @@
-simavr.pc:
 prefix=PREFIX
 exec_prefix=${prefix}
 includedir=${prefix}/include
@@ -9,18 +8,3 @@ Description: Atmel(tm) AVR 8 bits simulator
 Version: VERSION
 Cflags: -I${includedir}
 Libs: -L${libdir} -lsimavr -lelf
-
-simavr-avr.pc:
-prefix=PREFIX
-exec_prefix=${prefix}
-includedir=${prefix}/include
-libdir=${exec_prefix}/lib
-
-Name: simavr-avr
-Description: Atmel(tm) AVR 8 bits simulator - avr-gcc flags
-Version: VERSION
-Cflags: -I${includedir}/avr -ffunction-sections -fdata-sections \
-                       -Wl,--relax,--gc-sections \
-                       -Wl,--undefined=_mmcu,--section-start=.mmcu=0x910000
-Libs: 
-