blob: d0699beee51e491fd3ac7bee3a22b0b13f9aebb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# libMikMod
# http://mikmod.raphnet.net/
PKG := libmikmod
$(PKG)_VERSION := 3.2.0-beta2
$(PKG)_SUBDIR := libmikmod-$($(PKG)_VERSION)
$(PKG)_FILE := libmikmod-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://mikmod.raphnet.net/files/$($(PKG)_FILE)
$(PKG)_DEPS := gcc pthreads
define $(PKG)_UPDATE
wget -q -O- 'http://mikmod.raphnet.net/' | \
$(SED) -n 's,.*libmikmod-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
$(SED) 's,-Dunix,,' -i '$(1)/libmikmod/Makefile.in'
$(SED) 's,`uname`,MinGW,g' -i '$(1)/configure'
cd '$(1)' && \
CC='$(TARGET)-gcc' \
NM='$(TARGET)-nm' \
RANLIB='$(TARGET)-ranlib' \
STRIP='$(TARGET)-strip' \
LIBS='-lws2_32' \
./configure \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-esd
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
|