summaryrefslogtreecommitdiffstats
path: root/package/xorg/xorg.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-07-13 10:29:18 +0000
committerEric Andersen <andersen@codepoet.org>2005-07-13 10:29:18 +0000
commita79991083a9e4a4e5553a5a8a4c3ccd828f78ec7 (patch)
tree6ab8cbba4215c2cfad4e65897739f1d1dcd98b1a /package/xorg/xorg.mk
parent85d9e768af05688a820b78bfb98feb14a33f7592 (diff)
downloadbuildroot-novena-a79991083a9e4a4e5553a5a8a4c3ccd828f78ec7.tar.gz
buildroot-novena-a79991083a9e4a4e5553a5a8a4c3ccd828f78ec7.zip
Get it building
Diffstat (limited to 'package/xorg/xorg.mk')
-rw-r--r--package/xorg/xorg.mk33
1 files changed, 19 insertions, 14 deletions
diff --git a/package/xorg/xorg.mk b/package/xorg/xorg.mk
index 9c2549e5c..632e6d77a 100644
--- a/package/xorg/xorg.mk
+++ b/package/xorg/xorg.mk
@@ -13,7 +13,7 @@ XORG_APPS:=xlsfonts/xlsfonts xmodmap/xmodmap
# xhost/xhost xauth/xauth oclock/oclock xeyes/xeyes
#
-XORG_LIBS:=ICE X11 Xext Xpm
+XORG_LIBS:=ICE X11 Xext Xpm Xmuu
# Xaw SM Xt Xmu
#############################################################
@@ -29,12 +29,15 @@ XORG_CAT:=bzcat
XORG_DIR:=$(BUILD_DIR)/xc
XORG_LDIR:=$(XORG_DIR)/lib
XORG_PROGS:=$(XORG_DIR)/programs
-XORG_BINX:=$(TARGET_DIR)/usr/X11R6/bin/
+TARGET_BINX:=/usr/bin/
+XORG_BINX:=$(TARGET_DIR)$(TARGET_BINX)
XORG_LIBX:=$(TARGET_DIR)/usr/lib/
XORG_CF:=$(XORG_DIR)/config/cf/cross.def
-# Install Xfbdev for use with the kernel frame buffer
-XORG_XSERVER:=$(XORG_DIR)/programs/Xserver/Xfbdev
+# Install Xvfb for use with the kernel frame buffer
+XSERVER:=Xvfb
+XORG_XSERVER:=$(XORG_DIR)/programs/Xserver/$(XSERVER)
+TARGET_XSERVER:=$(XORG_BINX)/$(XSERVER)
$(DL_DIR)/$(XORG_SOURCE):
$(WGET) -P $(DL_DIR) $(XORG_SITE)/$(XORG_SOURCE)
@@ -54,20 +57,22 @@ $(XORG_DIR)/.configure: $(DL_DIR)/$(XORG_SOURCE)
touch $(XORG_DIR)/.configure
$(XORG_XSERVER): $(XORG_DIR)/.configure
- rm -f $(XORG_BINX)/Xfbdev
- ( cd $(XORG_DIR) ; $(MAKE) World )
+ rm -f $(TARGET_XSERVER) $(XORG_XSERVER)
+ ( cd $(XORG_DIR) ; $(MAKE) World XCURSORGEN=xcursorgen )
-$(XORG_BINX)/Xfbdev: $(XORG_XSERVER)
- -mkdir $(TARGET_DIR)/usr/X11R6
- -mkdir $(XORG_BINX)
+$(TARGET_XSERVER): $(XORG_XSERVER)
+ -mkdir -p $(XORG_BINX)
for file in $(XORG_APPS) ; do \
cp -f $(XORG_DIR)/programs/$$file $(XORG_BINX) ; \
$(STRIP) $(XORG_PROGS)/$$file ; \
done
- cp $(XORG_DIR)/programs/Xserver/Xfbdev $(XORG_BINX)
- $(STRIP) $(XORG_BINX)/Xfbdev
- cp -f $(XORG_DIR)/startx $(TARGET_DIR)/bin
- chmod a+x $(TARGET_DIR)/bin/startx
+ cp $(XORG_XSERVER) $(TARGET_XSERVER)
+ (cd $(XORG_BINX); ln -snf $(XSERVER) X)
+ $(STRIP) $(TARGET_XSERVER)
+ cp -f $(XORG_DIR)/programs/xinit/startx $(XORG_BINX)
+ cp -f $(XORG_DIR)/programs/xauth/xauth $(XORG_BINX)
+ cp -f $(XORG_DIR)/programs/xinit/xinit $(XORG_BINX)
+ chmod a+x $(XORG_BINX)/startx $(XORG_BINX)/xauth $(XORG_BINX)/xinit
$(XORG_LIBX)/libX11.so.6.2: $(XORG_XSERVER)
for dirs in $(XORG_LIBS) ; do \
@@ -78,7 +83,7 @@ $(XORG_LIBX)/libX11.so.6.2: $(XORG_XSERVER)
cp -pRf $$file $(XORG_LIBX) ; \
done
-xorg: zlib $(XORG_LIBX)/libX11.so.6.2 $(XORG_BINX)/Xfbdev
+xorg: zlib $(XORG_LIBX)/libX11.so.6.2 $(TARGET_XSERVER)
xorg-source: $(DL_DIR)/$(XORG_SOURCE)