summaryrefslogtreecommitdiff
path: root/openwrt/package/libmad
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-18 01:58:27 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-18 01:58:27 +0000
commite0098f1b20477cb9aa9d611c2b151f170e335291 (patch)
treefe20434aedacd29ce8cb6dc6069f4c78bbc564c2 /openwrt/package/libmad
parent6613426e84fe863d387e5bd34005412230f70265 (diff)
fix libmad build when arch != mipsel
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2173 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/libmad')
-rw-r--r--openwrt/package/libmad/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/openwrt/package/libmad/Makefile b/openwrt/package/libmad/Makefile
index 4a979d0c07..977248d08a 100644
--- a/openwrt/package/libmad/Makefile
+++ b/openwrt/package/libmad/Makefile
@@ -19,6 +19,14 @@ include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,LIBMAD,libmad,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+FPM:=default
+ifeq ($(ARCH),i386)
+FPM:=intel
+endif
+ifeq ($(ARCH),mipsel)
+FPM:=mips
+endif
+
$(PKG_BUILD_DIR)/.configured:
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \
@@ -50,7 +58,7 @@ $(PKG_BUILD_DIR)/.configured:
--enable-static \
--disable-rpath \
--with-gnu-ld \
- --enable-fpm=mips \
+ --enable-fpm=$(FPM) \
--disable-debugging \
--enable-speed \
);