3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=db71660bb7d01ccd4e6be990af8d813b
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
,LIBXSLT
,libxslt
,$(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 -I$(STAGING_DIR)/usr/include/libxml2" \
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
) \
52 --with-libxml-prefix
="$(STAGING_DIR)/usr" \
53 --with-libxml-include-prefix
="$(STAGING_DIR)/usr/include" \
54 --with-libxml-libs-prefix
="$(STAGING_DIR)/usr/lib" \
63 $(PKG_BUILD_DIR
)/.built
:
64 rm -rf
$(PKG_INSTALL_DIR
)
65 mkdir
-p
$(PKG_INSTALL_DIR
)
66 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
67 DESTDIR
="$(PKG_INSTALL_DIR)" \
72 install -m0755
-d
$(IDIR_LIBXSLT
)/usr
/lib
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* $(IDIR_LIBXSLT
)/usr
/lib
/
74 $(RSTRIP
) $(IDIR_LIBXSLT
)
75 $(IPKG_BUILD
) $(IDIR_LIBXSLT
) $(PACKAGE_DIR
)
77 $(STAGING_DIR
)/usr
/lib
/libxslt.so
: $(PKG_BUILD_DIR
)/.built
78 mkdir
-p
$(STAGING_DIR
)/usr
/bin
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config
$(STAGING_DIR
)/usr
/bin
/
80 mkdir
-p
$(STAGING_DIR
)/usr
/include
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxslt
$(STAGING_DIR
)/usr
/include/
82 mkdir
-p
$(STAGING_DIR
)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
84 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
86 $(SED
) 's,-I$${includedir},,g' $(STAGING_DIR
)/usr
/bin
/xslt-config
87 $(SED
) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR
)/usr
/bin
/xslt-config
88 $(SED
) 's,-L$${libdir},,g' $(STAGING_DIR
)/usr
/bin
/xslt-config
89 $(SED
) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR
)/usr
/bin
/xslt-config
90 $(SED
) 's,-I$${includedir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc
91 $(SED
) 's,-L$${libdir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc
92 $(SED
) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc
95 install-dev
: $(STAGING_DIR
)/usr
/lib
/libxslt.so
99 $(STAGING_DIR
)/usr
/bin
/xslt-config \
100 $(STAGING_DIR
)/usr
/include/libxslt \
101 $(STAGING_DIR
)/usr
/lib
/libxslt.
{a
,so
*} \
102 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc \
104 compile-targets
: install-dev
105 clean-targets
: uninstall-dev
108 make
-C
$(PKG_BUILD_DIR
) clean
109 rm $(PKG_BUILD_DIR
)/.built