3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=ec1b903e4be5f073caa72458ea58c29c
10 PKG_SOURCE_URL
:=@SF
/freetype
11 PKG_SOURCE
:=freetype-
$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/freetype-
$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBFREETYPE
,libfreetype
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
26 $(TARGET_CONFIGURE_OPTS
) \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
37 --libexecdir
=/usr
/lib \
39 --datadir=/usr
/share \
40 --localstatedir
=/var \
44 $(DISABLE_LARGEFILE
) \
51 $(PKG_BUILD_DIR
)/.built
:
52 rm -rf
$(PKG_INSTALL_DIR
)
53 mkdir
-p
$(PKG_INSTALL_DIR
)
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 install -d
-m0755
$(IDIR_LIBFREETYPE
)/usr
/lib
61 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfreetype.so.
* $(IDIR_LIBFREETYPE
)/usr
/lib
/
62 $(RSTRIP
) $(IDIR_LIBFREETYPE
)
63 $(IPKG_BUILD
) $(IDIR_LIBFREETYPE
) $(PACKAGE_DIR
)
65 $(STAGING_DIR
)/usr
/lib
/libfreetype.so
: $(PKG_BUILD_DIR
)/.built
66 mkdir
-p
$(STAGING_DIR
)/usr
/bin
67 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/freetype-config
$(STAGING_DIR
)/usr
/bin
/
68 mkdir
-p
$(STAGING_DIR
)/usr
/include
69 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/freetype2
$(STAGING_DIR
)/usr
/include/
70 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/ft2build.h
$(STAGING_DIR
)/usr
/include/
71 mkdir
-p
$(STAGING_DIR
)/usr
/lib
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libfreetype.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
73 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/freetype2.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
77 install-dev
: $(STAGING_DIR
)/usr
/lib
/libfreetype.so
81 $(STAGING_DIR
)/usr
/bin
/freetype-config \
82 $(STAGING_DIR
)/usr
/include/freetype2 \
83 $(STAGING_DIR
)/usr
/include/ft2build.h \
84 $(STAGING_DIR
)/usr
/lib
/libfreetype.
{a
,so
*} \
85 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/freetype2.
pc \
87 compile-targets
: install-dev
88 clean-targets
: uninstall-dev