| 1 | # $Id: Makefile 2670 2005-12-14 13:40:21Z nico $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=madplay
|
|---|
| 6 | PKG_VERSION:=0.15.2b
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=6814b47ceaa99880c754c5195aa1aac1
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=@SF/mad \
|
|---|
| 11 | ftp://ftp.mars.org/pub/mpeg/
|
|---|
| 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|---|
| 13 | PKG_CAT:=zcat
|
|---|
| 14 |
|
|---|
| 15 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|---|
| 16 | PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|---|
| 17 |
|
|---|
| 18 | include $(TOPDIR)/package/rules.mk
|
|---|
| 19 |
|
|---|
| 20 | $(eval $(call PKG_template,MADPLAY,madplay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 21 |
|
|---|
| 22 | $(PKG_BUILD_DIR)/.configured:
|
|---|
| 23 | (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
|---|
| 24 | BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
|
|---|
| 25 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 26 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 27 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|---|
| 28 | LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 29 | LIBS="-lz" \
|
|---|
| 30 | ac_cv_linux_vers=2 \
|
|---|
| 31 | td_cv_buggygetaddrinfo="no" \
|
|---|
| 32 | ./configure \
|
|---|
| 33 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 34 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 35 | --build=$(GNU_HOST_NAME) \
|
|---|
| 36 | --program-prefix="" \
|
|---|
| 37 | --program-suffix="" \
|
|---|
| 38 | --prefix=/usr \
|
|---|
| 39 | --exec-prefix=/usr \
|
|---|
| 40 | --bindir=/usr/bin \
|
|---|
| 41 | --datadir=/usr/share \
|
|---|
| 42 | --includedir=/usr/include \
|
|---|
| 43 | --infodir=/usr/share/info \
|
|---|
| 44 | --libdir=/usr/lib \
|
|---|
| 45 | --libexecdir=/usr/lib \
|
|---|
| 46 | --localstatedir=/var \
|
|---|
| 47 | --mandir=/usr/share/man \
|
|---|
| 48 | --sbindir=/usr/sbin \
|
|---|
| 49 | --sysconfdir=/etc \
|
|---|
| 50 | --enable-largefile \
|
|---|
| 51 | --disable-nls \
|
|---|
| 52 | --enable-shared \
|
|---|
| 53 | --disable-static \
|
|---|
| 54 | --with-gnu-ld \
|
|---|
| 55 | --disable-rpath \
|
|---|
| 56 | --disable-debugging \
|
|---|
| 57 | --disable-profiling \
|
|---|
| 58 | --disable-experimental \
|
|---|
| 59 | --without-libiconv-prefix \
|
|---|
| 60 | --without-libintl-prefix \
|
|---|
| 61 | --without-alsa \
|
|---|
| 62 | --without-esd \
|
|---|
| 63 | );
|
|---|
| 64 | touch $@
|
|---|
| 65 |
|
|---|
| 66 | $(PKG_BUILD_DIR)/.built:
|
|---|
| 67 | rm -rf $(PKG_INSTALL_DIR)
|
|---|
| 68 | mkdir -p $(PKG_INSTALL_DIR)
|
|---|
| 69 | $(MAKE) -C $(PKG_BUILD_DIR) \
|
|---|
| 70 | DESTDIR="$(PKG_INSTALL_DIR)" \
|
|---|
| 71 | all install
|
|---|
| 72 | touch $@
|
|---|
| 73 |
|
|---|
| 74 | $(IPKG_MADPLAY):
|
|---|
| 75 | install -m0755 -d $(IDIR_MADPLAY)/usr/bin
|
|---|
| 76 | install -m0755 $(PKG_INSTALL_DIR)/usr/bin/madplay $(IDIR_MADPLAY)/usr/bin/
|
|---|
| 77 | $(RSTRIP) $(IDIR_MADPLAY)
|
|---|
| 78 | $(IPKG_BUILD) $(IDIR_MADPLAY) $(PACKAGE_DIR)
|
|---|