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)" \
52 --target
=$(GNU_TARGET_NAME
) \
53 --host
=$(GNU_TARGET_NAME
) \
54 --build
=$(GNU_HOST_NAME
) \
61 --libexecdir
=/usr
/lib \
63 --datadir=/usr
/share \
64 --localstatedir
=/var \
68 $(DISABLE_LARGEFILE
) \
74 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
75 rm -rf
$(PKG_INSTALL_DIR
)
76 mkdir
-p
$(PKG_INSTALL_DIR
)
77 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
78 DESTDIR
="$(PKG_INSTALL_DIR)" \
83 install -m0755
-d
$(IDIR_GLIB1
)/usr
/lib
84 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-1.2.so.
* $(IDIR_GLIB1
)/usr
/lib
/
85 $(RSTRIP
) $(IDIR_GLIB1
)
86 $(IPKG_BUILD
) $(IDIR_GLIB1
) $(PACKAGE_DIR
)
88 $(STAGING_DIR
)/usr
/lib
/libglib.so
: $(PKG_BUILD_DIR
)/.built
89 mkdir
-p
$(STAGING_DIR
)/usr
/bin
90 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/glib-config
$(STAGING_DIR
)/usr
/bin
/
91 mkdir
-p
$(STAGING_DIR
)/usr
/include
92 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/glib-1.2
$(STAGING_DIR
)/usr
/include/
93 cp
-fpR
$(PKG_BUILD_DIR
)/glibconfig-sysdefs.h
$(STAGING_DIR
)/usr
/include/glib-1.2
/
94 mkdir
-p
$(STAGING_DIR
)/usr
/lib
95 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}.
{a
,so
} $(STAGING_DIR
)/usr
/lib
/
96 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-*.so.
* $(STAGING_DIR
)/usr
/lib
/
97 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/glib
$(STAGING_DIR
)/usr
/lib
/
98 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
99 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/g
{lib
,module
,thread
}.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
100 touch
$(STAGING_DIR
)/usr
/lib
/libglib.so
102 install-dev
: $(STAGING_DIR
)/usr
/lib
/libglib.so
105 rm -rf
$(STAGING_DIR
)/usr
/bin
/glib-config
106 rm -rf
$(STAGING_DIR
)/usr
/include/glib-1.2
107 rm -rf
$(STAGING_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}.
{a
,so
}
108 rm -rf
$(STAGING_DIR
)/usr
/lib
/libg
{lib
,module
,thread
}-*.so.
*
109 rm -rf
$(STAGING_DIR
)/usr
/lib
/glib
110 rm -rf
$(STAGING_DIR
)/usr
/lib
/pkgconfig
/g
{lib
,module
,thread
}.
pc