command is no daemon, run it in the background
[openwrt.git] / package / libgd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=gd
6 PKG_VERSION:=2.0.33
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=be0a6d326cd8567e736fbc75df0a5c45
9
10 PKG_SOURCE_URL:=http://www.boutell.com/gd/http
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBGD,libgd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
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" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 LIBPNG12_CONFIG="$(STAGING_DIR)/usr/bin/libpng12-config" \
28 sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
29 sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_LARGEFILE) \
49 $(DISABLE_NLS) \
50 --enable-shared \
51 --enable-static \
52 --disable-rpath \
53 --without-x \
54 --with-png=$(STAGING_DIR)/usr \
55 )
56 touch $@
57
58 $(PKG_BUILD_DIR)/.built:
59 rm -rf $(PKG_INSTALL_DIR)
60 mkdir -p $(PKG_INSTALL_DIR)
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 touch $@
65
66 $(IPKG_LIBGD):
67 install -d -m0755 $(IDIR_LIBGD)/usr/lib
68 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgd.so.* $(IDIR_LIBGD)/usr/lib/
69 $(RSTRIP) $(IDIR_LIBGD)
70 $(IPKG_BUILD) $(IDIR_LIBGD) $(PACKAGE_DIR)
71
72 $(STAGING_DIR)/usr/lib/libgd.so: $(PKG_BUILD_DIR)/.built
73 mkdir -p $(STAGING_DIR)/usr/bin
74 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/gdlib-config $(STAGING_DIR)/usr/bin/
75 mkdir -p $(STAGING_DIR)/usr/include
76 cp -fpR $(PKG_INSTALL_DIR)/usr/include/entities.h $(STAGING_DIR)/usr/include/
77 cp -fpR $(PKG_INSTALL_DIR)/usr/include/gd*.h $(STAGING_DIR)/usr/include/
78 mkdir -p $(STAGING_DIR)/usr/lib
79 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgd.{a,so*} $(STAGING_DIR)/usr/lib/
80 touch $@
81
82 install-dev: $(STAGING_DIR)/usr/lib/libgd.so
83
84 uninstall-dev:
85 rm -rf \
86 $(STAGING_DIR)/usr/bin/gdlib-config \
87 $(STAGING_DIR)/usr/include/entities.h \
88 $(STAGING_DIR)/usr/include/gd*.h \
89 $(STAGING_DIR)/usr/lib/libgd.{a,so*} \
90
91 compile: install-dev
92 clean: uninstall-dev
93
This page took 0.044798 seconds and 5 git commands to generate.