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
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 LIBPNG12_CONFIG
="$(STAGING_DIR)/usr/bin/libpng12-config" \
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
) \
55 --with-png
=$(STAGING_DIR
)/usr \
60 $(PKG_BUILD_DIR
)/.built
:
61 rm -rf
$(PKG_INSTALL_DIR
)
62 mkdir
-p
$(PKG_INSTALL_DIR
)
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 DESTDIR
="$(PKG_INSTALL_DIR)" \
69 install -d
-m0755
$(IDIR_LIBGD
)/usr
/lib
70 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgd.so.
* $(IDIR_LIBGD
)/usr
/lib
/
71 $(RSTRIP
) $(IDIR_LIBGD
)
72 $(IPKG_BUILD
) $(IDIR_LIBGD
) $(PACKAGE_DIR
)
74 $(STAGING_DIR
)/usr
/lib
/libgd.so
: $(PKG_BUILD_DIR
)/.built
75 mkdir
-p
$(STAGING_DIR
)/usr
/bin
76 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/gdlib-config
$(STAGING_DIR
)/usr
/bin
/
77 mkdir
-p
$(STAGING_DIR
)/usr
/include
78 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/entities.h
$(STAGING_DIR
)/usr
/include/
79 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/gd
*.h
$(STAGING_DIR
)/usr
/include/
80 mkdir
-p
$(STAGING_DIR
)/usr
/lib
81 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgd.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
84 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgd.so
88 $(STAGING_DIR
)/usr
/bin
/gdlib-config \
89 $(STAGING_DIR
)/usr
/include/entities.h \
90 $(STAGING_DIR
)/usr
/include/gd
*.h \
91 $(STAGING_DIR
)/usr
/lib
/libgd.
{a
,so
*} \