3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=19f27ddd2dda4b2d26a559a4f0f402a7
10 PKG_SOURCE_URL
:=@SF
/id3lib
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
,ID3LIB
,id3lib
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
25 CXXFLAGS
="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
28 LIBS
="-Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic,-lz,-lm,-lc" \
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
) \
56 $(PKG_BUILD_DIR
)/.built
:
57 rm -rf
$(PKG_INSTALL_DIR
)
58 mkdir
-p
$(PKG_INSTALL_DIR
)
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 DESTDIR
="$(PKG_INSTALL_DIR)" \
65 install -d
-m0755
$(IDIR_ID3LIB
)/usr
/lib
/
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libid3-
*.so.
* $(IDIR_ID3LIB
)/usr
/lib
/
67 $(IPKG_BUILD
) $(IDIR_ID3LIB
) $(PACKAGE_DIR
)
69 $(STAGING_DIR
)/usr
/lib
/libid3.so
: $(PKG_BUILD_DIR
)/.built
70 mkdir
-p
$(STAGING_DIR
)/usr
/include
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/id3
$(STAGING_DIR
)/usr
/include/
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/id3.h
$(STAGING_DIR
)/usr
/include/
73 mkdir
-p
$(STAGING_DIR
)/usr
/lib
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libid3.a
$(STAGING_DIR
)/usr
/lib
/
75 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libid3.so
$(STAGING_DIR
)/usr
/lib
/
76 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libid3-
*.so.
* $(STAGING_DIR
)/usr
/lib
/
79 install-dev
: $(STAGING_DIR
)/usr
/lib
/libid3.so
83 $(STAGING_DIR
)/usr
/include/id3 \
84 $(STAGING_DIR
)/usr
/include/id3.h \
85 $(STAGING_DIR
)/usr
/lib
/libid3.a \
86 $(STAGING_DIR
)/usr
/lib
/libid3.so \
87 $(STAGING_DIR
)/usr
/lib
/libid3-
*.so.
* \
89 compile-targets
: install-dev
90 clean-targets
: uninstall-dev