3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=6814b47ceaa99880c754c5195aa1aac1
10 PKG_SOURCE_URL
:=@SF
/mad \
11 ftp
://ftp.mars.org
/pub
/mpeg
/
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,MADPLAY
,madplay
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
31 td_cv_buggygetaddrinfo
="no" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
58 --disable-experimental \
59 --without-libiconv-prefix \
60 --without-libintl-prefix \
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)" \
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
)