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
)))
30 $(PKG_BUILD_DIR
)/.configured
:
31 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
32 $(TARGET_CONFIGURE_OPTS
) \
33 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
34 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
35 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
36 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
38 --target
=$(GNU_TARGET_NAME
) \
39 --host
=$(GNU_TARGET_NAME
) \
40 --build
=$(GNU_HOST_NAME
) \
46 --datadir=/usr
/share \
47 --includedir=/usr
/include \
48 --infodir=/usr
/share
/info \
50 --libexecdir
=/usr
/lib \
51 --localstatedir
=/var \
52 --mandir=/usr
/share
/man \
55 $(DISABLE_LARGEFILE
) \
67 $(PKG_BUILD_DIR
)/.built
:
68 rm -rf
$(PKG_INSTALL_DIR
)
69 mkdir
-p
$(PKG_INSTALL_DIR
)
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 install -m0755
-d
$(IDIR_LIBMAD
)/usr
/lib
77 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libmad.so.
* $(IDIR_LIBMAD
)/usr
/lib
/
78 $(RSTRIP
) $(IDIR_LIBMAD
)
79 $(IPKG_BUILD
) $(IDIR_LIBMAD
) $(PACKAGE_DIR
)
81 $(STAGING_DIR
)/usr
/lib
/libmad.so
: $(PKG_BUILD_DIR
)/.built
82 mkdir
-p
$(STAGING_DIR
)/usr
/include
83 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/mad.h
$(STAGING_DIR
)/usr
/include/
84 mkdir
-p
$(STAGING_DIR
)/usr
/lib
85 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libmad.a
$(STAGING_DIR
)/usr
/lib
/
86 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libmad.so
* $(STAGING_DIR
)/usr
/lib
/
89 install-dev
: $(STAGING_DIR
)/usr
/lib
/libmad.so
93 $(STAGING_DIR
)/usr
/include/mad.h \
94 $(STAGING_DIR
)/usr
/lib
/libmad.a \
95 $(STAGING_DIR
)/usr
/lib
/libmad.so
* \
97 compile-targets
: install-dev
98 clean-targets
: uninstall-dev
101 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
102 rm -f
$(PKG_BUILD_DIR
)/.built