diff options
Diffstat (limited to 'src/jpeg.mk')
-rw-r--r-- | src/jpeg.mk | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/jpeg.mk b/src/jpeg.mk index 561728a..38504d7 100644 --- a/src/jpeg.mk +++ b/src/jpeg.mk @@ -18,13 +18,19 @@ endef define $(PKG)_BUILD cd '$(1)' && ./configure \ - --prefix='$(PREFIX)/$(TARGET)' \ - --host='$(TARGET)' \ - --disable-shared + $(MXE_CONFIGURE_OPTS) $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= + # create pkg-config file + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + (echo 'Name: jpeg'; \ + echo 'Version: 0'; \ + echo 'Description: jpeg'; \ + echo 'Libs: -ljpeg';) \ + > '$(PREFIX)/$(TARGET)/lib/pkgconfig/jpeg.pc' + '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-jpeg.exe' \ - -ljpeg + `'$(TARGET)-pkg-config' jpeg --libs` endef |