* [Buildroot] rxvt-package for all x11-versions
@ 2007-08-28 14:35 Simon Pasch
2007-08-28 21:19 ` Bernhard Fischer
0 siblings, 1 reply; 3+ messages in thread
From: Simon Pasch @ 2007-08-28 14:35 UTC (permalink / raw)
To: buildroot
This is my attempt to realize a rxvt-version for xorg, tinyx and the new x11r7.
I tested it with xorg and x11r7. (Don't know if it works with tinyx,
because the tinyx-build fails)
By the way...Is the file rxvt_2.6.4-10.diff needed anymore?!
diff -Naur buildroot/package/rxvt.old/Config.in buildroot/package/rxvt/Config.in
--- buildroot/package/rxvt.old/Config.in 2007-08-28 09:15:23.000000000 +0200
+++ buildroot/package/rxvt/Config.in 2007-08-28 15:19:17.000000000 +0200
@@ -1,10 +1,8 @@
config BR2_PACKAGE_RXVT
bool "rxvt"
default n
- depends BR2_PACKAGE_XSERVER_xorg || BR2_PACKAGE_XSERVER_tinyx
-
+ depends BR2_PACKAGE_XSERVER_xorg || BR2_PACKAGE_XSERVER_tinyx ||
BR2_PACKAGE_XSERVER_x11r7
help
A nice small colour vt102 X terminal emulator.
- Does not build for X11R7 yet.
http://www.rxvt.org/
diff -Naur buildroot/package/rxvt.old/rxvt.mk buildroot/package/rxvt/rxvt.mk
--- buildroot/package/rxvt.old/rxvt.mk 2007-08-28 09:15:23.000000000 +0200
+++ buildroot/package/rxvt/rxvt.mk 2007-08-28 16:17:30.000000000 +0200
@@ -27,6 +27,18 @@
RXVT_DIR:=$(BUILD_DIR)/rxvt-$(RXVT_VERSION)
RXVT_BINARY:=$(RXVT_DIR)/src/rxvt
+ifeq ($(strip $(BR2_PACKAGE_XSERVER_xorg)),y)
+RXVT_PREFIX:=/usr/X11R6
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_XSERVER_tinyx)),y)
+RXVT_PREFIX:=/usr/X11R6
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_XSERVER_x11r7)),y)
+RXVT_PREFIX:=/usr
+endif
+
$(DL_DIR)/$(RXVT_SOURCE):
$(WGET) -P $(DL_DIR) $(RXVT_SITE)/$(RXVT_SOURCE)
@@ -46,11 +58,11 @@
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
- --prefix=/usr/X11R6 \
+ --prefix=$(RXVT_PREFIX) \
--mandir=/usr/man \
--infodir=/usr/info \
- --x-includes=$(STAGING_DIR)/usr/X11R6/include \
- --x-libraries=$(STAGING_DIR)/usr/X11R6/lib \
+ --x-includes=$(STAGING_DIR)$(RXVT_PREFIX)/include \
+ --x-libraries=$(STAGING_DIR)$(RXVT_PREFIX)/lib \
--disable-resources \
--disable-memset \
)
@@ -60,14 +72,14 @@
$(MAKE) CC=$(TARGET_CC) -C $(RXVT_DIR)
$(STRIP) $(STRIP_DISCARD_ALL) $(RXVT_BINARY)
-$(TARGET_DIR)/usr/X11R6/bin/rxvt: $(RXVT_BINARY)
- cp -f $(RXVT_BINARY) $(TARGET_DIR)/usr/X11R6/bin
- (cd $(TARGET_DIR)/usr/X11R6/bin; ln -fs rxvt xterm)
+$(TARGET_DIR)$(RXVT_PREFIX)/bin/rxvt: $(RXVT_BINARY)
+ cp -f $(RXVT_BINARY) $(TARGET_DIR)$(RXVT_PREFIX)/bin
+ (cd $(TARGET_DIR)$(RXVT_PREFIX)/bin; ln -fs rxvt xterm)
-rxvt: $(XSERVER) $(TARGET_DIR)/usr/X11R6/bin/rxvt
+rxvt: $(XSERVER) $(TARGET_DIR)$(RXVT_PREFIX)/bin/rxvt
rxvt-clean:
- rm -f $(TARGET_DIR)/usr/X11R6/bin/rxvt
+ rm -f $(TARGET_DIR)$(RXVT_PREFIX)/bin/rxvt
-$(MAKE) -C $(RXVT_DIR) clean
rxvt-dirclean:
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] rxvt-package for all x11-versions
2007-08-28 14:35 [Buildroot] rxvt-package for all x11-versions Simon Pasch
@ 2007-08-28 21:19 ` Bernhard Fischer
2007-08-28 22:09 ` Cristian Ionescu-Idbohrn
0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Fischer @ 2007-08-28 21:19 UTC (permalink / raw)
To: buildroot
On Tue, Aug 28, 2007 at 04:35:48PM +0200, Simon Pasch wrote:
>This is my attempt to realize a rxvt-version for xorg, tinyx and the new x11r7.
>I tested it with xorg and x11r7. (Don't know if it works with tinyx,
>because the tinyx-build fails)
>
>By the way...Is the file rxvt_2.6.4-10.diff needed anymore?!
>
>diff -Naur buildroot/package/rxvt.old/Config.in buildroot/package/rxvt/Config.in
>--- buildroot/package/rxvt.old/Config.in 2007-08-28 09:15:23.000000000 +0200
>+++ buildroot/package/rxvt/Config.in 2007-08-28 15:19:17.000000000 +0200
>@@ -1,10 +1,8 @@
> config BR2_PACKAGE_RXVT
> bool "rxvt"
> default n
>- depends BR2_PACKAGE_XSERVER_xorg || BR2_PACKAGE_XSERVER_tinyx
>-
>+ depends BR2_PACKAGE_XSERVER_xorg || BR2_PACKAGE_XSERVER_tinyx ||
>BR2_PACKAGE_XSERVER_x11r7
> help
> A nice small colour vt102 X terminal emulator.
>- Does not build for X11R7 yet.
>
> http://www.rxvt.org/
>diff -Naur buildroot/package/rxvt.old/rxvt.mk buildroot/package/rxvt/rxvt.mk
>--- buildroot/package/rxvt.old/rxvt.mk 2007-08-28 09:15:23.000000000 +0200
>+++ buildroot/package/rxvt/rxvt.mk 2007-08-28 16:17:30.000000000 +0200
>@@ -27,6 +27,18 @@
> RXVT_DIR:=$(BUILD_DIR)/rxvt-$(RXVT_VERSION)
> RXVT_BINARY:=$(RXVT_DIR)/src/rxvt
>
>+ifeq ($(strip $(BR2_PACKAGE_XSERVER_xorg)),y)
>+RXVT_PREFIX:=/usr/X11R6
>+endif
>+
>+ifeq ($(strip $(BR2_PACKAGE_XSERVER_tinyx)),y)
>+RXVT_PREFIX:=/usr/X11R6
>+endif
>+
>+ifeq ($(strip $(BR2_PACKAGE_XSERVER_x11r7)),y)
>+RXVT_PREFIX:=/usr
>+endif
>+
> $(DL_DIR)/$(RXVT_SOURCE):
> $(WGET) -P $(DL_DIR) $(RXVT_SITE)/$(RXVT_SOURCE)
>
>@@ -46,11 +58,11 @@
> --target=$(GNU_TARGET_NAME) \
> --host=$(GNU_TARGET_NAME) \
> --build=$(GNU_HOST_NAME) \
>- --prefix=/usr/X11R6 \
>+ --prefix=$(RXVT_PREFIX) \
Given that the filesystem standard nowadays seem to mandate that all X11
apps should go into /usr, it would be way better to add one central
config BR2_X11_PREFIX
string "/usr/X11R6" if BR2_PACKAGE_XSERVER_xorg || BR2_PACKAGE_XSERVER_tinyx
string "/usr" if !BR2_PACKAGE_XSERVER_xorg && !BR2_PACKAGE_XSERVER_tinyx
in package/Makefile.in, below the XSERVER settings.
Peronally i don't like that new convention to put the X11 bloat^Wstuff
into /usr, but that is not relevant here.
Please update accordingly and resend. TIA,
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] rxvt-package for all x11-versions
2007-08-28 21:19 ` Bernhard Fischer
@ 2007-08-28 22:09 ` Cristian Ionescu-Idbohrn
0 siblings, 0 replies; 3+ messages in thread
From: Cristian Ionescu-Idbohrn @ 2007-08-28 22:09 UTC (permalink / raw)
To: buildroot
On Tue, 28 Aug 2007, Bernhard Fischer wrote:
> Given that the filesystem standard nowadays seem to mandate that all X11
> apps should go into /usr, it would be way better to add one central
> config BR2_X11_PREFIX
> string "/usr/X11R6" if BR2_PACKAGE_XSERVER_xorg || BR2_PACKAGE_XSERVER_tinyx
> string "/usr" if !BR2_PACKAGE_XSERVER_xorg && !BR2_PACKAGE_XSERVER_tinyx
> in package/Makefile.in, below the XSERVER settings.
Is it not so that with xorg all that X11R6 is gone? For example on my
debian unstable:
/usr/X11R6/bin -> ../bin/
Cheers,
--
Cristian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-28 22:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-28 14:35 [Buildroot] rxvt-package for all x11-versions Simon Pasch
2007-08-28 21:19 ` Bernhard Fischer
2007-08-28 22:09 ` Cristian Ionescu-Idbohrn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox