3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= 6fe30dad87c77b91b632def29dd69ef9
10 PKG_SOURCE_URL
:= ftp
://ftp.gtk.org
/pub
/gtk
/v1.2 \
11 http
://ftp.gwdg.de
/pub
/misc
/grafik
/gimp
/gtk
/v1.2
/ \
12 http
://ftp.esat.net
/mirrors
/ftp.gimp.org
/pub
/gtk
/v1.2
/ \
13 http
://www.mirrorservice.org
/sites
/ftp.gimp.org
/pub
/gtk
/v1.2
/
14 PKG_SOURCE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,GLIB1
,glib1
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
26 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
27 glib_cv_sizeof_gmutex
=24 \
29 ac_cv_sizeof_short
=2 \
32 ac_cv_sizeof_long_long
=8 \
33 ac_cv_sizeof_void_p
=4 \
34 glib_cv_prog_cc_ansi_proto
="no" \
35 glib_cv_has__inline
="yes" \
36 glib_cv_has__inline__
="yes" \
37 glib_cv_hasinline
="yes" \
38 glib_cv_sane_realloc
="yes" \
39 glib_cv_va_copy
="no" \
40 glib_cv___va_copy
="yes" \
41 glib_cv_va_val_copy
="yes" \
42 glib_cv_rtldglobal_broken
="no" \
44 ac_cv_func_getpwuid_r
="yes" \
45 glib_cv_func_pthread_mutex_trylock_posix
="yes" \
46 glib_cv_func_pthread_cond_timedwait_posix
="yes" \
47 glib_cv_sizeof_gmutex
="24" \
48 glib_cv_byte_contents_gmutex
="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" \
49 $(TARGET_CONFIGURE_OPTS
) \
50 CFLAGS
="$(TARGET_CFLAGS)" \
51 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
53 --target
=$(GNU_TARGET_NAME
) \
54 --host
=$(GNU_TARGET_NAME
) \
55 --build
=$(GNU_HOST_NAME
) \
62 --libexecdir
=/usr
/lib \
64 --datadir=/usr
/share \
65 --localstatedir
=/var \
69 $(DISABLE_LARGEFILE
) \
75 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
76 rm -rf
$(PKG_INSTALL_DIR
)
77 mkdir
-p
$(PKG_INSTALL_DIR
)
78 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
79 DESTDIR
="$(PKG_INSTALL_DIR)" \
84 install -m0755
-d
$(IDIR_GLIB1
)/usr
/lib
85 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-1.2.so.
* $(IDIR_GLIB1
)/usr
/lib
/
86 $(RSTRIP
) $(IDIR_GLIB1
)
87 $(IPKG_BUILD
) $(IDIR_GLIB1
) $(PACKAGE_DIR
)
89 $(STAGING_DIR
)/usr
/lib
/libglib.so
: $(PKG_BUILD_DIR
)/.built
90 mkdir
-p
$(STAGING_DIR
)/usr
/bin
91 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/glib-config
$(STAGING_DIR
)/usr
/bin
/
92 mkdir
-p
$(STAGING_DIR
)/usr
/include
93 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/glib-1.2
$(STAGING_DIR
)/usr
/include/
94 cp
-fpR
$(PKG_BUILD_DIR
)/glibconfig-sysdefs.h
$(STAGING_DIR
)/usr
/include/glib-1.2
/
95 mkdir
-p
$(STAGING_DIR
)/usr
/lib
96 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}.
{a
,so
} $(STAGING_DIR
)/usr
/lib
/
97 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-*.so.
* $(STAGING_DIR
)/usr
/lib
/
98 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/glib
$(STAGING_DIR
)/usr
/lib
/
99 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
100 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/g
{lib
,module
,thread
}.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
101 touch
$(STAGING_DIR
)/usr
/lib
/libglib.so
103 install-dev
: $(STAGING_DIR
)/usr
/lib
/libglib.so
106 rm -rf
$(STAGING_DIR
)/usr
/bin
/glib-config
107 rm -rf
$(STAGING_DIR
)/usr
/include/glib-1.2
108 rm -rf
$(STAGING_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}.
{a
,so
}
109 rm -rf
$(STAGING_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-*.so.
*
110 rm -rf
$(STAGING_DIR
)/usr
/lib
/glib
111 rm -rf
$(STAGING_DIR
)/usr
/lib
/pkgconfig
/g
{lib
,module
,thread
}.
pc