diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-03-11 17:44:11 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-03-11 17:44:11 (GMT) |
commit | 3f57e6641809af6e6ae0811aa0e0a44d2b7acbd9 (patch) | |
tree | 71efa38954010d48d2be4b5ebf2cf171deb603af /src | |
parent | a2356e2352e3d359e5655e22df68590781bfe6de (diff) | |
parent | a327292b95b4aac9e1d0ed2987a43db7dd62b9d0 (diff) | |
download | mxe-3f57e6641809af6e6ae0811aa0e0a44d2b7acbd9.zip mxe-3f57e6641809af6e6ae0811aa0e0a44d2b7acbd9.tar.gz mxe-3f57e6641809af6e6ae0811aa0e0a44d2b7acbd9.tar.bz2 |
Merge branch 'stable'
Diffstat (limited to 'src')
-rw-r--r-- | src/freeimage.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/freeimage.mk b/src/freeimage.mk index e5dea43..5a97f76 100644 --- a/src/freeimage.mk +++ b/src/freeimage.mk @@ -29,8 +29,17 @@ define $(PKG)_BUILD $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' $(INSTALL) -m644 '$(1)/Source/FreeImage.h' '$(PREFIX)/$(TARGET)/include/' + # create pkg-config file + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + (echo 'Name: freeimage'; \ + echo 'Version: $(freeimage_VERSION)'; \ + echo 'Description: FreeImage'; \ + echo 'Cflags: -DFREEIMAGE_LIB'; \ + echo 'Libs: -lfreeimage';) \ + > '$(PREFIX)/$(TARGET)/lib/pkgconfig/freeimage.pc' + '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-freeimage.exe' \ - -lfreeimage -DFREEIMAGE_LIB + `'$(TARGET)-pkg-config' freeimage --cflags --libs` endef |