3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=8f0b3ce721bda11401e656b90ba4e78c
10 PKG_SOURCE_URL
:=http
://xmlsoft.org
/sources
/ \
11 ftp
://fr.rpmfind.net
/pub
/libxml
/
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
,LIBXML2
,libxml2
,$(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" \
27 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
82 $(PKG_BUILD_DIR
)/.built
:
83 rm -rf
$(PKG_INSTALL_DIR
)
84 mkdir
-p
$(PKG_INSTALL_DIR
)
85 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
86 DESTDIR
="$(PKG_INSTALL_DIR)" \
91 install -m0755
-d
$(IDIR_LIBXML2
)/usr
/lib
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.so.
* $(IDIR_LIBXML2
)/usr
/lib
/
93 $(RSTRIP
) $(IDIR_LIBXML2
)
94 $(IPKG_BUILD
) $(IDIR_LIBXML2
) $(PACKAGE_DIR
)
96 $(STAGING_DIR
)/usr
/lib
/libxml2.so
: $(PKG_BUILD_DIR
)/.built
97 mkdir
-p
$(STAGING_DIR
)/usr
/bin
98 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/xml2-config
$(STAGING_DIR
)/usr
/bin
/
99 mkdir
-p
$(STAGING_DIR
)/usr
/include
100 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxml2
$(STAGING_DIR
)/usr
/include/
101 mkdir
-p
$(STAGING_DIR
)/usr
/lib
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxml2.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
103 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
105 $(SED
) 's,-I$${includedir}/libxml2,,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
106 $(SED
) 's,-I$${includedir},,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
107 $(SED
) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
108 $(SED
) 's,-L$${libdir},,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
109 $(SED
) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR
)/usr
/bin
/xml2-config
110 $(SED
) 's,-I$${includedir}/libxml2,,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc
111 $(SED
) 's,-L$${libdir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc
114 install-dev
: $(STAGING_DIR
)/usr
/lib
/libxml2.so
118 $(STAGING_DIR
)/usr
/bin
/xml2-config \
119 $(STAGING_DIR
)/usr
/include/libxml2 \
120 $(STAGING_DIR
)/usr
/lib
/libxml2.
{a
,so
*} \
121 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxml-2.0.
pc \
123 compile-targets
: install-dev
124 clean-targets
: uninstall-dev
127 make
-C
$(PKG_BUILD_DIR
) clean
128 rm $(PKG_BUILD_DIR
)/.built