Bye pkg-config

This commit is contained in:
Lior Halphon 2020-04-27 23:36:02 +03:00
parent 3bc68fef8f
commit 1abb6e62f4

View File

@ -127,13 +127,8 @@ LDFLAGS += -lc -lm -ldl
endif endif
ifeq ($(SDL_AUDIO_DRIVER),portaudio) ifeq ($(SDL_AUDIO_DRIVER),portaudio)
ifeq (,$(PKG_CONFIG))
SDL_CFLAGS += -I/usr/local/include SDL_CFLAGS += -I/usr/local/include
SDL_LDFLAGS += -lportaudio SDL_LDFLAGS += -lportaudio
else
SDL_CFLAGS += $(shell $(PKG_CONFIG) --cflags libportaudio19)
SDL_LDFLAGS += $(shell $(PKG_CONFIG) --libs libportaudio19)
endif
endif endif
ifeq ($(PLATFORM),Darwin) ifeq ($(PLATFORM),Darwin)