3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=1be543bc30c56fb6bea1d7bf6a64e66c
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
,LIBMAD
,libmad
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
28 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
59 $(PKG_BUILD_DIR
)/.built
:
60 rm -rf
$(PKG_INSTALL_DIR
)
61 mkdir
-p
$(PKG_INSTALL_DIR
)
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 DESTDIR
="$(PKG_INSTALL_DIR)" \
68 install -m0755
-d
$(IDIR_LIBMAD
)/usr
/lib
69 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libmad.so.
* $(IDIR_LIBMAD
)/usr
/lib
/
70 $(RSTRIP
) $(IDIR_LIBMAD
)
71 $(IPKG_BUILD
) $(IDIR_LIBMAD
) $(PACKAGE_DIR
)
73 $(STAGING_DIR
)/usr
/lib
/libmad.so
: $(PKG_BUILD_DIR
)/.built
74 mkdir
-p
$(STAGING_DIR
)/usr
/include
75 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/mad.h
$(STAGING_DIR
)/usr
/include/
76 mkdir
-p
$(STAGING_DIR
)/usr
/lib
77 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libmad.a
$(STAGING_DIR
)/usr
/lib
/
78 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libmad.so
* $(STAGING_DIR
)/usr
/lib
/
81 install-dev
: $(STAGING_DIR
)/usr
/lib
/libmad.so
85 $(STAGING_DIR
)/usr
/include/mad.h \
86 $(STAGING_DIR
)/usr
/lib
/libmad.a \
87 $(STAGING_DIR
)/usr
/lib
/libmad.so
* \
93 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
94 rm -f
$(PKG_BUILD_DIR
)/.built