3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=be0a6d326cd8567e736fbc75df0a5c45
10 PKG_SOURCE_URL
:=http
://www.boutell.com
/gd
/http
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
,LIBGD
,libgd
,$(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
="$(TARGET_CFLAGS)" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
28 LIBPNG12_CONFIG
="$(STAGING_DIR)/usr/bin/libpng12-config" \
29 sys_lib_dlsearch_path_spec
="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
30 sys_lib_search_path_spec
="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
40 --datadir=/usr
/share \
41 --includedir=/usr
/include \
42 --infodir=/usr
/share
/info \
44 --libexecdir
=/usr
/lib \
45 --localstatedir
=/var \
46 --mandir=/usr
/share
/man \
49 $(DISABLE_LARGEFILE
) \
55 --with-png
=$(STAGING_DIR
)/usr \
57 touch
$(PKG_BUILD_DIR
)/.configured
59 $(PKG_BUILD_DIR
)/.built
:
60 mkdir
-p
$(PKG_INSTALL_DIR
)
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
62 DESTDIR
="$(PKG_INSTALL_DIR)" \
66 install -d
-m0755
$(IDIR_LIBGD
)/usr
/lib
67 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgd.so.
* $(IDIR_LIBGD
)/usr
/lib
/
68 $(RSTRIP
) $(IDIR_LIBGD
)
69 $(IPKG_BUILD
) $(IDIR_LIBGD
) $(PACKAGE_DIR
)
71 $(STAGING_DIR
)/usr
/lib
/libgd.so
: $(PKG_BUILD_DIR
)/.built
72 mkdir
-p
$(STAGING_DIR
)/usr
/bin
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/gdlib-config
$(STAGING_DIR
)/usr
/bin
/
74 mkdir
-p
$(STAGING_DIR
)/usr
/include
75 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/entities.h
$(STAGING_DIR
)/usr
/include/
76 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/gd
*.h
$(STAGING_DIR
)/usr
/include/
77 mkdir
-p
$(STAGING_DIR
)/usr
/lib
78 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgd.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
80 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgd.so
84 $(STAGING_DIR
)/usr
/include/entities.h \
85 $(STAGING_DIR
)/usr
/include/gd
*.h \
86 $(STAGING_DIR
)/usr
/lib
/libgd.
{a
,so
*}