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
) \
29 RELEASE_CFLAGS
="$(TARGET_CFLAGS)" \
34 install -m0755
-d
$(IDIR_LIBFLAC
)/usr
/lib
35 cp
-fpR
$(PKG_BUILD_DIR
)/obj
/release
/lib
/libFLAC.so
$(IDIR_LIBFLAC
)/usr
/lib
/
36 $(RSTRIP
) $(IDIR_LIBFLAC
)
37 $(IPKG_BUILD
) $(IDIR_LIBFLAC
) $(PACKAGE_DIR
)
39 $(STAGING_DIR
)/usr
/lib
/libFLAC.so
: $(PKG_BUILD_DIR
)/.built
40 mkdir
-p
$(STAGING_DIR
)/usr
/include
41 cp
-fpR
$(PKG_BUILD_DIR
)/include/FLAC
$(STAGING_DIR
)/usr
/include/
42 mkdir
-p
$(STAGING_DIR
)/usr
/lib
43 cp
-fpR
$(PKG_BUILD_DIR
)/obj
/release
/lib
/libFLAC.a
$(STAGING_DIR
)/usr
/lib
/
44 cp
-fpR
$(PKG_BUILD_DIR
)/obj
/release
/lib
/libFLAC.so
$(STAGING_DIR
)/usr
/lib
/
47 install-dev
: $(STAGING_DIR
)/usr
/lib
/libFLAC.so
51 $(STAGING_DIR
)/usr
/include/FLAC \
52 $(STAGING_DIR
)/usr
/lib
/libFLAC.a \
53 $(STAGING_DIR
)/usr
/lib
/libFLAC.so \
55 compile-targets
: install-dev
56 clean-targets
: uninstall-dev
59 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
60 rm -f
$(PKG_BUILD_DIR
)/.built