source: freewrt/package/libgd/Makefile@ c8b93bd

freewrt_1_0 freewrt_2_0
Last change on this file since c8b93bd was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.6 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= gd
10PKG_VERSION:= 2.0.33
11PKG_RELEASE:= 2
12PKG_MD5SUM:= be0a6d326cd8567e736fbc75df0a5c45
13
14PKG_SOURCE_URL:=http://www.boutell.com/gd/http
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,LIBGD,libgd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); 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" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 --enable-largefile \
47 --disable-nls \
48 --enable-shared \
49 --enable-static \
50 --disable-rpath \
51 --with-gnu-ld \
52 --without-x \
53 --without-freetype \
54 --with-jpeg=$(STAGING_DIR)/usr \
55 --with-png=$(STAGING_DIR)/usr \
56 --without-xpm \
57 )
58 touch $@
59
60$(WRKBUILD)/.built:
61 rm -rf $(WRKINST)
62 mkdir -p $(WRKINST)
63 $(MAKE) -C $(WRKBUILD) \
64 DESTDIR="$(WRKINST)" \
65 all install
66 touch $@
67
68$(IPKG_LIBGD):
69 install -d -m0755 $(IDIR_LIBGD)/usr/lib
70 $(CP) $(WRKINST)/usr/lib/libgd.so.* $(IDIR_LIBGD)/usr/lib/
71 $(RSTRIP) $(IDIR_LIBGD)
72 $(IPKG_BUILD) $(IDIR_LIBGD) $(PACKAGE_DIR)
73
74$(STAGING_DIR)/usr/lib/libgd.so: $(WRKBUILD)/.built
75 mkdir -p $(STAGING_DIR)/usr/bin
76 $(CP) $(WRKINST)/usr/bin/gdlib-config $(STAGING_DIR)/usr/bin/
77 mkdir -p $(STAGING_DIR)/usr/include
78 $(CP) $(WRKINST)/usr/include/entities.h $(STAGING_DIR)/usr/include/
79 $(CP) $(WRKINST)/usr/include/gd*.h $(STAGING_DIR)/usr/include/
80 mkdir -p $(STAGING_DIR)/usr/lib
81 $(CP) $(WRKINST)/usr/lib/libgd.{a,so*} $(STAGING_DIR)/usr/lib/
82 touch $@
83
84install-dev: $(STAGING_DIR)/usr/lib/libgd.so
85
86uninstall-dev:
87 rm -rf \
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*} \
92
93compile-targets: install-dev
94clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.