diff options
author | Tony Theodore <tonyt@logyst.com> | 2017-12-27 02:59:16 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2017-12-27 02:59:16 (GMT) |
commit | a75d79da1e3c522f5faa74e01e24219f60d7d3a1 (patch) | |
tree | 9479442055e9496ae32872fce79e4ba68979fff6 /src/libao.mk | |
parent | b3eed0030d8824f6d534fc517d5b0103ff486733 (diff) | |
download | mxe-a75d79da1e3c522f5faa74e01e24219f60d7d3a1.zip mxe-a75d79da1e3c522f5faa74e01e24219f60d7d3a1.tar.gz mxe-a75d79da1e3c522f5faa74e01e24219f60d7d3a1.tar.bz2 |
libao: fix shared, add test, use GH_CONF, build out-of-source
Diffstat (limited to 'src/libao.mk')
-rw-r--r-- | src/libao.mk | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/libao.mk b/src/libao.mk index 8460e3a..e7a7cda 100644 --- a/src/libao.mk +++ b/src/libao.mk @@ -6,23 +6,22 @@ $(PKG)_DESCR := AO $(PKG)_IGNORE := $(PKG)_VERSION := 1.2.2 $(PKG)_CHECKSUM := df8a6d0e238feeccb26a783e778716fb41a801536fe7b6fce068e313c0e2bf4d -$(PKG)_SUBDIR := libao-$($(PKG)_VERSION) -$(PKG)_FILE := $($(PKG)_VERSION).tar.gz -$(PKG)_URL := https://github.com/xiph/libao/archive/$($(PKG)_FILE) +$(PKG)_GH_CONF := xiph/libao/tags $(PKG)_DEPS := gcc -define $(PKG)_UPDATE - $(WGET) -q -O- 'https://downloads.xiph.org/releases' | \ - $(SED) -n 's,.*<a href="libao-\([0-9][0-9.]*\)\.tar\.[gx]z">.*,\1,p' | \ - $(SORT) -V | \ - tail -1 -endef - define $(PKG)_BUILD - cd '$(1)' && ./autogen.sh && \ - ./configure \ + cd '$(SOURCE_DIR)' && ./autogen.sh + cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \ $(MXE_CONFIGURE_OPTS) \ - --enable-wmm - $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= - $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + --enable-wmm \ + LIBS=-lksuser + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + $(MAKE) -C '$(BUILD_DIR)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + # compile test + '$(TARGET)-gcc' \ + -W -Wall \ + '$(SOURCE_DIR)/doc/ao_example.c' -o \ + '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' ao --cflags --libs` endef |