2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_VERSION
:=X11R7.0
-1.0.1
15 PKG_SOURCE_URL
:=http
://xorg.freedesktop.org
/releases
/X11R7.2
/src
/app
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_BUILD_DIR
=$(BUILD_DIR
)/Xorg
/$(_CATEGORY
)/${PKG_NAME}-$(PKG_VERSION
)/
19 _DEPEND
:= +font-misc-misc
21 _DEPEND
+=xorg-server-essentials
24 include $(INCLUDE_DIR
)/package.mk
30 DEPENDS
:=${_DEPEND} @DISPLAY_SUPPORT
32 URL
:=http
://xorg.freedesktop.org
/
35 define Build
/InstallDev
36 DESTDIR
=$(1) $(MAKE
) -C
$(PKG_BUILD_DIR
) $(MAKE_FLAGS
) install
40 CONFIGURE_ARGS
+=--with-random-device
=/dev
/urandom
43 CONFIGURE_ARGS
+=LIBS
="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
46 make
-C
$(PKG_BUILD_DIR
)
47 make
-C
$(PKG_BUILD_DIR
) DESTDIR
=$(PKG_INSTALL_DIR
) install
50 define Build
/Configure
51 (cd
$(PKG_BUILD_DIR
)/$(CONFIGURE_PATH
); \
52 if
[ -x
$(CONFIGURE_CMD
) ]; then \
53 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/ && \
56 $(CONFIGURE_ARGS_XTRA
) \
62 define Package
/xcalc
/install
64 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)
68 define Package
/xinit
/install
69 $(INSTALL_DIR
) $(1)/usr
/bin
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xinit
$(1)/usr
/bin
/xinit
71 cd
$(1)/usr
/bin
/; ln
-s xinit startx
74 $(eval
$(call BuildPackage
,xcalc
))