1 #############################################################
5 #############################################################
7 OPENMOTIF_VERSION
= 2.3.0
8 OPENMOTIF_SOURCE
= openmotif-
$(OPENMOTIF_VERSION
).
tar.gz
9 OPENMOTIF_SITE
= ftp
://ftp.ics.com
/openmotif
/2.3/2.3.0
10 OPENMOTIF_CAT
:=$(ZCAT
)
11 OPENMOTIF_DIR
:=$(BUILD_DIR
)/openmotif-
$(OPENMOTIF_VERSION
)
12 OPENMOTIF_HOST_DIR
:=$(BUILD_DIR
)/openmotif-
$(OPENMOTIF_VERSION
)-host
14 $(DL_DIR
)/$(OPENMOTIF_SOURCE
):
15 $(call DOWNLOAD
,$(OPENMOTIF_SITE
),$(OPENMOTIF_SOURCE
))
17 openmotif-source
: $(DL_DIR
)/$(OPENMOTIF_SOURCE
)
19 $(OPENMOTIF_DIR
)/.unpacked
: $(DL_DIR
)/$(OPENMOTIF_SOURCE
)
20 $(OPENMOTIF_CAT
) $(DL_DIR
)/$(OPENMOTIF_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
21 $(CONFIG_UPDATE
) $(OPENMOTIF_DIR
)
22 cp
-a
$(OPENMOTIF_DIR
) $(OPENMOTIF_DIR
)-host
23 toolchain
/patch-kernel.sh
$(OPENMOTIF_DIR
) package
/openmotif
/ \
*.patch
24 touch
$(OPENMOTIF_DIR
)/.unpacked
26 $(OPENMOTIF_HOST_DIR
)/.configured
: $(OPENMOTIF_DIR
)/.unpacked
27 (if
[ ! -e
"/usr/include/X11/extensions/Print.h" ]; then \
28 echo
"Please install libXp-devel and re-run make."; \
30 (if
[ ! -e
"/usr/include/X11/bitmaps" ]; then \
31 echo
"Please install xorg-x11-xbitmaps and re-run make."; \
33 (cd
$(OPENMOTIF_HOST_DIR
); rm -rf config.cache
; \
34 aclocal
; automake
--foreign
--add-missing
; autoconf
; \
37 touch
$(OPENMOTIF_HOST_DIR
)/.configured
39 $(OPENMOTIF_DIR
)/.configured
: $(OPENMOTIF_HOST_DIR
)/.configured
40 (cd
$(OPENMOTIF_DIR
); rm -rf config.cache
; \
41 aclocal
; automake
--foreign
--add-missing
; autoconf
; \
42 $(TARGET_CONFIGURE_OPTS
) \
43 $(TARGET_CONFIGURE_ARGS
) \
44 ac_cv_file__usr_X_include_X11_X_h
=yes \
45 ac_cv_func_setpgrp_void
=yes \
47 --target
=$(GNU_TARGET_NAME
) \
48 --host
=$(GNU_TARGET_NAME
) \
49 --build
=$(GNU_HOST_NAME
) \
53 --includedir=/usr
/include \
54 --with-x
--program-prefix
="" \
56 touch
$(OPENMOTIF_DIR
)/.configured
58 $(OPENMOTIF_HOST_DIR
)/.done
: $(OPENMOTIF_DIR
)/.configured
59 $(MAKE
) -C
$(OPENMOTIF_HOST_DIR
)
60 ln
-s
-f
$(OPENMOTIF_HOST_DIR
)/config
/util
/makestrs
$(OPENMOTIF_DIR
)/config
/util
/makestrs-host
61 ln
-s
-f
$(OPENMOTIF_HOST_DIR
)/tools
/wml
/wmluiltok
$(OPENMOTIF_DIR
)/tools
/wml
/wmluiltok-host
62 ln
-s
-f
$(OPENMOTIF_HOST_DIR
)/tools
/wml
/wml
$(OPENMOTIF_DIR
)/tools
/wml
/wml-host
63 ln
-s
-f
$(OPENMOTIF_HOST_DIR
)/tools
/wml
/wmldbcreate
$(OPENMOTIF_DIR
)/tools
/wml
/wmldbcreate-host
64 mkdir
-p
$(OPENMOTIF_DIR
)/tools
/wml
/.libs
65 ln
-s
-f
$(OPENMOTIF_HOST_DIR
)/tools
/wml
/.libs
/lt-wmldbcreate
$(OPENMOTIF_DIR
)/tools
/wml
/.libs
/lt-wmldbcreate-host
66 mkdir
-p
$(OPENMOTIF_DIR
)/demos
/lib
/Exm
/wml
/.libs
67 ln
-s
-f
$(OPENMOTIF_HOST_DIR
)/demos
/lib
/Exm
/wml
/.libs
/lt-wmldbcreate
$(OPENMOTIF_DIR
)/demos
/lib
/Exm
/wml
/.libs
/lt-wmldbcreate-host
68 mkdir
-p
$(OPENMOTIF_DIR
)/clients
/uil
/.libs
69 ln
-s
-f
$(OPENMOTIF_HOST_DIR
)/clients
/uil
/.libs
/lt-uil
$(OPENMOTIF_DIR
)/clients
/uil
/.libs
/lt-uil-host
70 touch
$(OPENMOTIF_HOST_DIR
)/.done
72 $(OPENMOTIF_DIR
)/.done
: $(OPENMOTIF_HOST_DIR
)/.done
73 $(MAKE
) -C
$(OPENMOTIF_DIR
)
74 $(MAKE
) -C
$(OPENMOTIF_DIR
) install DESTDIR
=$(STAGING_DIR
)
75 $(MAKE
) -C
$(OPENMOTIF_DIR
) install DESTDIR
=$(TARGET_DIR
)
76 touch
$(OPENMOTIF_DIR
)/.done
78 openmotif
: uclibc
$(OPENMOTIF_DIR
)/.done
81 rm -f
$(TARGET_DIR
)/bin
/openmotif
82 -$(MAKE
) -C
$(OPENMOTIF_DIR
) clean
85 rm -rf
$(OPENMOTIF_DIR
)
87 #############################################################
89 # Toplevel Makefile options
91 #############################################################
92 ifeq ($(BR2_PACKAGE_OPENMOTIF
),y
)