3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=2bfc127cdda02834d0491ab531a20960
10 PKG_SOURCE_URL
:=@SF
/flac
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBFLAC
,libflac
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
24 $(PKG_BUILD_DIR
)/.built
:
25 rm -rf
$(PKG_INSTALL_DIR
)
26 mkdir
-p
$(PKG_INSTALL_DIR
)
27 $(MAKE
) -C
$(PKG_BUILD_DIR
) -f Makefile.lite \
28 $(TARGET_CONFIGURE_OPTS
) \
33 install -m0755
-d
$(IDIR_LIBFLAC
)/usr
/lib
34 cp
-fpR
$(PKG_BUILD_DIR
)/obj
/release
/lib
/libFLAC.so
$(IDIR_LIBFLAC
)/usr
/lib
/
35 $(RSTRIP
) $(IDIR_LIBFLAC
)
36 $(IPKG_BUILD
) $(IDIR_LIBFLAC
) $(PACKAGE_DIR
)
38 $(STAGING_DIR
)/usr
/lib
/libFLAC.so
: $(PKG_BUILD_DIR
)/.built
39 mkdir
-p
$(STAGING_DIR
)/usr
/include
40 cp
-fpR
$(PKG_BUILD_DIR
)/include/FLAC
$(STAGING_DIR
)/usr
/include/
41 mkdir
-p
$(STAGING_DIR
)/usr
/lib
42 cp
-fpR
$(PKG_BUILD_DIR
)/obj
/release
/lib
/libFLAC.a
$(STAGING_DIR
)/usr
/lib
/
43 cp
-fpR
$(PKG_BUILD_DIR
)/obj
/release
/lib
/libFLAC.so
$(STAGING_DIR
)/usr
/lib
/
46 install-dev
: $(STAGING_DIR
)/usr
/lib
/libFLAC.so
50 $(STAGING_DIR
)/usr
/include/FLAC \
51 $(STAGING_DIR
)/usr
/lib
/libFLAC.a \
52 $(STAGING_DIR
)/usr
/lib
/libFLAC.so \
58 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
59 rm -f
$(PKG_BUILD_DIR
)/.built