summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:44:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-24 17:44:13 +0100
commit67cb0759e674470fa53fd3711d8460fd4a12c1a3 (patch)
treeb1f075ce06512879f327e1aa3abc3838b2de0539 /package
parent0aabef127155575e8c8d660605f9401ab15356aa (diff)
parent87832fb8da02431280c0a1f9c127dd121ddb7b25 (diff)
resolve conflict
Diffstat (limited to 'package')
-rw-r--r--package/asterisk/Makefile6
-rwxr-xr-xpackage/base-files/src/etc/network/if-pre-up.d/02-vlan14
-rw-r--r--package/binutils/Makefile3
-rw-r--r--package/gdb/Makefile3
-rw-r--r--package/gettext/Makefile10
-rw-r--r--package/glib/Makefile19
-rw-r--r--package/glib/patches/patch-glib_gatomic_c10
-rw-r--r--package/netcat/Makefile25
-rw-r--r--package/p5-XML-Parser/Makefile5
-rw-r--r--package/php/Makefile1
-rw-r--r--package/sane-backends/Makefile2
-rw-r--r--package/tcpdump/Makefile4
-rw-r--r--package/totd/Makefile24
-rw-r--r--package/totd/files/totd.conf14
-rw-r--r--package/totd/files/totd.conffiles1
-rwxr-xr-xpackage/totd/files/totd.init26
-rw-r--r--package/totd/files/totd.postinst4
-rw-r--r--package/totd/patches/patch-Makefile_in39
-rw-r--r--package/totd/patches/patch-ne_mesg_c16
-rw-r--r--package/xf86-input-keyboard/Makefile2
-rw-r--r--package/xf86-input-mouse/Makefile2
-rw-r--r--package/xf86-video-cirrus/Makefile2
-rw-r--r--package/xf86-video-intel/Makefile2
-rw-r--r--package/xf86-video-siliconmotion/Makefile2
-rw-r--r--package/xorg-server/Makefile1
25 files changed, 213 insertions, 24 deletions
diff --git a/package/asterisk/Makefile b/package/asterisk/Makefile
index 73ac40acb..791763cf2 100644
--- a/package/asterisk/Makefile
+++ b/package/asterisk/Makefile
@@ -166,10 +166,10 @@ do-install:
asterisk-pgsql-install:
${INSTALL_DIR} $(IDIR_ASTERISK_PGSQL)/etc/asterisk
- ${INSTALL_DATA} $(WRKBUILD)/configs/cdr_pgsql.conf.sample \
- $(IDIR_ASTERISK_PGSQL)/etc/asterisk/cdr_pgsql.conf
+ ${INSTALL_DATA} $(WRKINST)/etc/asterisk/cdr_pgsql.conf \
+ $(IDIR_ASTERISK_PGSQL)/etc/asterisk/
${INSTALL_DIR} $(IDIR_ASTERISK_PGSQL)/usr/lib/asterisk/modules
- ${INSTALL_BIN} $(WRKBUILD)/cdr/cdr_pgsql.so \
+ ${INSTALL_BIN} $(WRKINST)/usr/lib/asterisk/modules/cdr_pgsql.so \
$(IDIR_ASTERISK_PGSQL)/usr/lib/asterisk/modules/
asterisk-sounds-install:
diff --git a/package/base-files/src/etc/network/if-pre-up.d/02-vlan b/package/base-files/src/etc/network/if-pre-up.d/02-vlan
index 35b7fca59..26b33ca80 100755
--- a/package/base-files/src/etc/network/if-pre-up.d/02-vlan
+++ b/package/base-files/src/etc/network/if-pre-up.d/02-vlan
@@ -1,12 +1,18 @@
#!/bin/sh
-[ -x /sbin/vconfig ] || exit 0
-[ -d /proc/net/vlan ] || exit 0
+which vconfig || {
+ echo "vconfig executable not found, aborting"
+ exit 0
+}
+[ -d /proc/net/vlan ] || {
+ echo "no kernel support for 802.1q found, aborting"
+ exit 0
+}
case "$IFACE" in
vlan*)
- vconfig set_name_type VLAN_PLUS_VID_NO_PAD
- VLANID=`echo $IFACE|sed "s/vlan*//"`
+ vconfig set_name_type VLAN_PLUS_VID_NO_PAD
+ VLANID=`echo $IFACE|sed "s/vlan*//"`
;;
eth*.*)
vconfig set_name_type DEV_PLUS_VID_NO_PAD
diff --git a/package/binutils/Makefile b/package/binutils/Makefile
index c6f414065..7bbe48e0d 100644
--- a/package/binutils/Makefile
+++ b/package/binutils/Makefile
@@ -24,6 +24,9 @@ CONFIGURE_ARGS+= --disable-werror \
--host=$(REAL_GNU_TARGET_NAME) \
--target=$(REAL_GNU_TARGET_NAME)
+pre-build:
+ @-rm $(STAGING_TARGET_DIR)/lib/libiberty.a $(STAGING_TARGET_DIR)/usr/lib/libiberty.a
+
libbfd-install:
${INSTALL_DIR} ${IDIR_LIBBFD}/usr/lib
$(CP) ${WRKINST}/usr/lib/*.so ${IDIR_LIBBFD}/usr/lib
diff --git a/package/gdb/Makefile b/package/gdb/Makefile
index 5e9f706d1..d14a71761 100644
--- a/package/gdb/Makefile
+++ b/package/gdb/Makefile
@@ -26,6 +26,9 @@ XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
# disable honour cflags stuff
XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
+pre-build:
+ @-rm $(STAGING_TARGET_DIR)/lib/libiberty.a $(STAGING_TARGET_DIR)/usr/lib/libiberty.a
+
post-install:
${INSTALL_DIR} ${IDIR_GDB}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/gdb ${IDIR_GDB}/usr/bin/
diff --git a/package/gettext/Makefile b/package/gettext/Makefile
index 8cafe4ebc..55723a49b 100644
--- a/package/gettext/Makefile
+++ b/package/gettext/Makefile
@@ -14,7 +14,9 @@ PKG_DEPENDS:= libiconv libpthread
PKG_URL:= http://www.gnu.org/software/gettext/
PKG_SITES:= ${MASTER_SITE_GNU:=gettext/}
-PKG_SUBPKGS:= LIBINTL GETTEXT MSGFMT
+PKG_SUBPKGS:= LIBINTL LIBINTL_DEV GETTEXT MSGFMT
+PKGSD_LIBINTL_DEV:= libintl headers
+PKGSC_LIBINTL_DEV:= devel
PKGSD_GETTEXT:= gettext utility
PKGSC_GETTEXT:= misc
PKGSS_GETTEXT:= libintl
@@ -29,6 +31,7 @@ endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBINTL,libintl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBINTL_DEV,libintl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBINTL_DEV},${PKGSC_LIBINTL_DEV},${PKG_OPTS}))
$(eval $(call PKG_template,GETTEXT,gettext,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_GETTEXT},${PKGSD_GETTEXT},${PKGSC_GETTEXT}))
$(eval $(call PKG_template,MSGFMT,msgfmt,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_MSGFMT},${PKGSD_MSGFMT},${PKGSC_MSGFMT}))
@@ -54,6 +57,11 @@ libintl-install:
${CP} ${WRKBUILD}/gettext-runtime/intl/.libs/libintl.so* \
${IDIR_LIBINTL}/usr/lib
+libintl-dev-install:
+ ${INSTALL_DIR} ${IDIR_LIBINTL_DEV}/usr/include
+ ${INSTALL_DATA} ${WRKBUILD}/gettext-runtime/intl/libintl.h \
+ ${IDIR_LIBINTL_DEV}/usr/include
+
gettext-install:
${INSTALL_DIR} ${IDIR_GETTEXT}/usr/bin
$(INSTALL_BIN) $(WRKBUILD)/gettext-runtime/src/.libs/gettext \
diff --git a/package/glib/Makefile b/package/glib/Makefile
index 807303ca1..f98c73cc9 100644
--- a/package/glib/Makefile
+++ b/package/glib/Makefile
@@ -4,15 +4,16 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= glib
-PKG_VERSION:= 2.27.5
-PKG_RELEASE:= 2
-PKG_MD5SUM:= ad9c80adb624a1ffe3d9753bab8a578a
+PKG_VERSION:= 2.28.1
+PKG_EXTRAVER:= 2.28
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 9f6e85e1e38490c3956f4415bcd33e6e
PKG_DESCR:= low-level core library that forms the basis of GTK+
PKG_SECTION:= libs
PKG_DEPENDS:= libintl libiconv libpthread
PKG_BUILDDEP:= gettext libiconv
PKG_URL:= http://www.gtk.org/
-PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/glib/2.27/
+PKG_SITES:= http://ftp.gnome.org/pub/gnome/sources/glib/${PKG_EXTRAVER}/
PKG_SUBPKGS:= GLIB GLIB_DEV
PKGSC_GLIB_DEV:= devel
@@ -44,15 +45,9 @@ pre-configure:
ifneq ($(OStype),Darwin)
(cd ${WRKBUILD}; rm -rf config.{cache,status}; \
./configure --prefix=$(STAGING_HOST_DIR) \
- --with-libiconv=gnu \
- --enable-debug=no \
- --with-threads=posix \
);
- env CFLAGS="-static" LDFLAGS="-static -liconv" ${MAKE} -C ${WRKBUILD}/glib
- env CFLAGS="-static" LDFLAGS="-static" ${MAKE} -C ${WRKBUILD}/gthread
- env CFLAGS="-static" LDFLAGS="-static" ${MAKE} -C ${WRKBUILD}/gio glib-compile-schemas
- env CFLAGS="-static" LDFLAGS="-static" ${MAKE} -C ${WRKBUILD}/gobject glib-genmarshal
- $(CP) ${WRKBUILD}/gio/glib-compile-schemas ${STAGING_HOST_DIR}/bin
+ env CFLAGS="-static" LDFLAGS="-static -liconv" ${MAKE} -C ${WRKBUILD}
+ $(CP) ${WRKBUILD}/gio/.libs/glib-compile-schemas ${STAGING_HOST_DIR}/bin
$(CP) ${WRKBUILD}/gobject/.libs/glib-genmarshal ${STAGING_HOST_DIR}/bin
${MAKE} -C ${WRKBUILD} clean
endif
diff --git a/package/glib/patches/patch-glib_gatomic_c b/package/glib/patches/patch-glib_gatomic_c
new file mode 100644
index 000000000..42d41196b
--- /dev/null
+++ b/package/glib/patches/patch-glib_gatomic_c
@@ -0,0 +1,10 @@
+--- glib-2.27.5.orig/glib/gatomic.c 2010-09-05 06:20:56.000000000 +0200
++++ glib-2.27.5/glib/gatomic.c 2011-02-18 20:52:37.703561782 +0100
+@@ -882,6 +882,7 @@ g_atomic_pointer_compare_and_exchange (v
+
+ #ifdef DEFINE_WITH_MUTEXES
+ /* We have to use the slow, but safe locking method */
++#include "gthread.h"
+ static GMutex *g_atomic_mutex;
+
+ /**
diff --git a/package/netcat/Makefile b/package/netcat/Makefile
new file mode 100644
index 000000000..e8d344ad9
--- /dev/null
+++ b/package/netcat/Makefile
@@ -0,0 +1,25 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= netcat
+PKG_VERSION:= 0.7.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 088def25efe04dcdd1f8369d8926ab34
+PKG_DESCR:= the GNU network swiss army knife
+PKG_SECTION:= net/misc
+PKG_URL:= http://netcat.sourceforge.net/
+PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=netcat/}
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,NETCAT,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+post-install:
+ $(INSTALL_DIR) $(IDIR_NETCAT)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/netcat \
+ $(IDIR_NETCAT)/usr/bin
+
+# please remove ALL above comments, before commiting
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/p5-XML-Parser/Makefile b/package/p5-XML-Parser/Makefile
index 6a557dc60..e0c359e90 100644
--- a/package/p5-XML-Parser/Makefile
+++ b/package/p5-XML-Parser/Makefile
@@ -16,16 +16,19 @@ PKG_SITES:= http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/
DISTFILES:= XML-Parser-${PKG_VERSION}.tar.gz
WRKDIST= ${WRKDIR}/XML-Parser-${PKG_VERSION}
+PKG_CFLINE_P5_XML_PARSER:=depends on ADK_NATIVE
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,P5_XML_PARSER,p5-xml-parser,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
+XAKE_FLAGS+= CC="$(TARGET_CC)" CCFLAGS="$(TARGET_CFLAGS)"
include $(TOPDIR)/mk/perl.mk
pre-build:
- (cd ${WRKSRC} && perl Makefile.PL)
+ (cd ${WRKSRC} && perl Makefile.PL EXPATLIBPATH=${STAGING_TARGET_DIR}/usr/lib EXPATINCPATH=${STAGING_TARGET_DIR}/usr/include)
post-install:
$(INSTALL_DIR) $(IDIR_P5_XML_PARSER)$(PERL_SITEDIR)
diff --git a/package/php/Makefile b/package/php/Makefile
index 900ab42d6..e407ae1ba 100644
--- a/package/php/Makefile
+++ b/package/php/Makefile
@@ -29,6 +29,7 @@ PKGSB_MOD_PCRE:= pcre
PKGSB_MOD_SQLITE:= sqlite
PKGSB_MOD_XML:= expat
+PKG_ARCH_DEPENDS:= !cris
PKG_HOST_DEPENDS:= !cygwin
# FIX PKG_DEPENDS
diff --git a/package/sane-backends/Makefile b/package/sane-backends/Makefile
index 2f1a5bacf..e575f7ac0 100644
--- a/package/sane-backends/Makefile
+++ b/package/sane-backends/Makefile
@@ -15,6 +15,8 @@ PKG_URL:= http://www.sane-project.org/
PKG_SITES:= ftp://ftp2.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/
PKG_MULTI:= 1
+PKG_ARCH_DEPENDS:= !cris
+
PKG_SUBPKGS:= SANE_BACKENDS SANE_BACKEND_NET SANE_BACKEND_ABATON SANE_BACKEND_AGFAFOCUS
PKG_SUBPKGS+= SANE_BACKEND_APPLE SANE_BACKEND_ARTEC_EPLUS48U SANE_BACKEND_ARTEC SANE_BACKEND_AS6E
PKG_SUBPKGS+= SANE_BACKEND_AVISION SANE_BACKEND_BH SANE_BACKEND_CANON630U SANE_BACKEND_CANON
diff --git a/package/tcpdump/Makefile b/package/tcpdump/Makefile
index 652dc1b6b..fcc5f19f6 100644
--- a/package/tcpdump/Makefile
+++ b/package/tcpdump/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= tcpdump
PKG_VERSION:= 4.1.1
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= d0dd58bbd6cd36795e05c6f1f74420b0
PKG_DESCR:= A tool for network monitoring and data acquisition
PKG_SECTION:= net
@@ -32,7 +32,7 @@ else
CONFIGURE_ARGS+= --disable-ipv6
endif
ifneq (${ADK_PACKAGE_TCPDUMP_WITH_CHROOT},)
-CONFIGURE_ARGS+= --with-chroot="/var/lib/tcpdump"
+CONFIGURE_ARGS+= --with-chroot="/var/lib/tcpdump" --with-user="nobody"
endif
XAKE_FLAGS+= CCOPT="${TARGET_CFLAGS}" \
INCLS="-I. -I${STAGING_TARGET_DIR}/usr/include"
diff --git a/package/totd/Makefile b/package/totd/Makefile
new file mode 100644
index 000000000..938439e9b
--- /dev/null
+++ b/package/totd/Makefile
@@ -0,0 +1,24 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= totd
+PKG_VERSION:= 1.5.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 7edaedae9f6aca5912dd6c123582cf08
+PKG_DESCR:= Trick or Treat Daemon (a simple DNS-ALG for NAT-PT)
+PKG_SECTION:= dns
+PKG_URL:= http://www.dillema.net/software/totd.html
+PKG_SITES:= http://www.dillema.net/software/totd/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,TOTD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+post-install:
+ $(INSTALL_DIR) $(IDIR_TOTD)/{usr/sbin,etc}
+ ${INSTALL_DATA} ./files/totd.conf ${IDIR_TOTD}/etc/
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/totd $(IDIR_TOTD)/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/totd/files/totd.conf b/package/totd/files/totd.conf
new file mode 100644
index 000000000..85a6ae73c
--- /dev/null
+++ b/package/totd/files/totd.conf
@@ -0,0 +1,14 @@
+; you can have multiple forwarders, totd will always prefer
+; forwarders listed early and only use forwarders listed later
+; if the first ones are unresponsive.
+forwarder ::1
+
+; you can have multiple prefixes or even no prefixes at all
+; totd uses them in round-robin fashion
+prefix 0::ffff:ffff:0:0
+
+; the port totd listens on for incoming requests
+port 53
+
+; the pidfile to use (default: /var/run/totd.pid)
+pidfile /var/run/totd.pid
diff --git a/package/totd/files/totd.conffiles b/package/totd/files/totd.conffiles
new file mode 100644
index 000000000..c74a3007f
--- /dev/null
+++ b/package/totd/files/totd.conffiles
@@ -0,0 +1 @@
+/etc/totd.conf
diff --git a/package/totd/files/totd.init b/package/totd/files/totd.init
new file mode 100755
index 000000000..665e36171
--- /dev/null
+++ b/package/totd/files/totd.init
@@ -0,0 +1,26 @@
+#!/bin/sh
+#PKG totd
+#INIT 60
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${totd:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ totd $totd_flags -c /etc/totd.conf
+ ;;
+stop)
+ pkill totd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ ;;
+esac
+exit $?
diff --git a/package/totd/files/totd.postinst b/package/totd/files/totd.postinst
new file mode 100644
index 000000000..12c7c1864
--- /dev/null
+++ b/package/totd/files/totd.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf 'additional flags for totd' totd_flags "-q"
+add_rcconf totd totd NO
diff --git a/package/totd/patches/patch-Makefile_in b/package/totd/patches/patch-Makefile_in
new file mode 100644
index 000000000..5eec23ca5
--- /dev/null
+++ b/package/totd/patches/patch-Makefile_in
@@ -0,0 +1,39 @@
+ - set ${CC} only if unset
+ - drop -Werror, sources aren't that sane ;)
+ - don't chown the files when installing
+ - use DESTDIR when installing
+ - don't strip binaries (we do ourself, install chooses the wrong strip binary)
+ - create non-existing target directories
+--- totd-1.5.orig/Makefile.in 2005-01-31 12:55:14.000000000 +0100
++++ totd-1.5/Makefile.in 2010-03-25 21:21:05.085663745 +0100
+@@ -4,7 +4,7 @@
+ # <$Id: Makefile.in,v 3.43 2005/01/31 11:55:14 dillema Exp $>
+ #
+
+-CC = gcc
++CC ?= gcc
+
+ # These use the standard autoconf variables, which by default are
+ # rooted in @prefix@
+@@ -19,7 +19,7 @@ TOT_CONFIG_FILE=@sysconfdir@/totd.conf
+
+ INSTALL = /usr/bin/install
+
+-CFLAGS = @CFLAGS@ @DEFS@ -Werror -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
++CFLAGS = @CFLAGS@ @DEFS@ -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
+
+ # When debugging is enabled by --enable-malloc-debug flag to the configure
+ # script, the @DBMALLOC@ substitution will contain the empty string, thus
+@@ -66,8 +66,10 @@ libswill.a:
+ -ranlib libswill.a
+
+ install: $(PROG)
+- $(INSTALL) -c -s -m 0555 -o bin -g bin $(PROG) $(INSTALLDIR)
+- $(INSTALL) -c -m 0444 -o root -g wheel $(MAN) $(INSTALLMAN)/man8
++ mkdir -p ${DESTDIR}/${INSTALLDIR}
++ $(INSTALL) -c -m 0555 $(PROG) ${DESTDIR}/$(INSTALLDIR)
++ mkdir -p ${DESTDIR}/${INSTALLMAN}/man8
++ $(INSTALL) -c -m 0444 $(MAN) ${DESTDIR}/$(INSTALLMAN)/man8
+
+ lint:
+ lint ${SRCS}
diff --git a/package/totd/patches/patch-ne_mesg_c b/package/totd/patches/patch-ne_mesg_c
new file mode 100644
index 000000000..db9633bec
--- /dev/null
+++ b/package/totd/patches/patch-ne_mesg_c
@@ -0,0 +1,16 @@
+ fix for verbose logging
+--- totd-1.5.orig/ne_mesg.c 2002-12-10 23:31:18.000000000 +0100
++++ totd-1.5/ne_mesg.c 2010-03-25 23:45:35.185664417 +0100
+@@ -470,6 +470,12 @@ u_char *dname_decompress (u_char *buf, i
+
+ next = NULL;
+ written_len = token_len = 0;
++
++ if (!m_head)
++ m_head = dname;
++ if (!m_tail)
++ m_tail = dname + buflen;
++
+ for (cp = dname; *cp; cp += token_len) {
+ iter = 0;
+ top:
diff --git a/package/xf86-input-keyboard/Makefile b/package/xf86-input-keyboard/Makefile
index a8cd0c262..5d3589206 100644
--- a/package/xf86-input-keyboard/Makefile
+++ b/package/xf86-input-keyboard/Makefile
@@ -13,6 +13,8 @@ PKG_DEPENDS:= xorg-server
PKG_BUILDDEP:= xorg-server
PKG_SITES:= ${MASTER_SITE_XORG}
+PKG_CFLINE_XF86_INPUT_KEYBOARD:= depends on ADK_TARGET_WITH_INPUT
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,XF86_INPUT_KEYBOARD,${PKG_NAME},$(PKG_VERSION)-$(PKG_RELEASE),${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/xf86-input-mouse/Makefile b/package/xf86-input-mouse/Makefile
index fd9f37065..4d33399d7 100644
--- a/package/xf86-input-mouse/Makefile
+++ b/package/xf86-input-mouse/Makefile
@@ -13,6 +13,8 @@ PKG_DEPENDS:= xorg-server
PKG_BUILDDEP:= xorg-server
PKG_SITES:= ${MASTER_SITE_XORG}
+PKG_CFLINE_XF86_INPUT_MOUSE:= depends on ADK_TARGET_WITH_INPUT
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,XF86_INPUT_MOUSE,${PKG_NAME},$(PKG_VERSION)-$(PKG_RELEASE),${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/xf86-video-cirrus/Makefile b/package/xf86-video-cirrus/Makefile
index 1d389f954..cd2ead404 100644
--- a/package/xf86-video-cirrus/Makefile
+++ b/package/xf86-video-cirrus/Makefile
@@ -13,6 +13,8 @@ PKG_DEPENDS:= xorg-server
PKG_BUILDDEP:= xorg-server
PKG_SITES:= ${MASTER_SITE_XORG}
+PKG_CFLINE_XF86_VIDEO_CIRRUS:=depends on ADK_TARGET_WITH_VGA
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,XF86_VIDEO_CIRRUS,${PKG_NAME},$(PKG_VERSION)-$(PKG_RELEASE),${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/xf86-video-intel/Makefile b/package/xf86-video-intel/Makefile
index 96a8fb784..24add28ac 100644
--- a/package/xf86-video-intel/Makefile
+++ b/package/xf86-video-intel/Makefile
@@ -13,7 +13,7 @@ PKG_DEPENDS:= xorg-server libdrm
PKG_BUILDDEP:= xorg-server libdrm
PKG_SITES:= ${MASTER_SITE_XORG}
-PKG_CFLINE:= y if (ADK_PKG_LAPTOP && ADK_TARGET_SYSTEM_IBM_X40)
+PKG_CFLINE_XF86_VIDEO_INTEL:=depends on ADK_TARGET_WITH_VGA
include $(TOPDIR)/mk/package.mk
diff --git a/package/xf86-video-siliconmotion/Makefile b/package/xf86-video-siliconmotion/Makefile
index 85768c2ac..88619fd67 100644
--- a/package/xf86-video-siliconmotion/Makefile
+++ b/package/xf86-video-siliconmotion/Makefile
@@ -13,6 +13,8 @@ PKG_DEPENDS:= xorg-server
PKG_BUILDDEP:= xorg-server
PKG_SITES:= ${MASTER_SITE_XORG}
+PKG_CFLINE_XF86_VIDEO_SILICONMOTION:=depends on ADK_TARGET_WITH_VGA
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,XF86_VIDEO_SILICONMOTION,${PKG_NAME},$(PKG_VERSION)-$(PKG_RELEASE),${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
diff --git a/package/xorg-server/Makefile b/package/xorg-server/Makefile
index 28abb1d5d..505a5d9d5 100644
--- a/package/xorg-server/Makefile
+++ b/package/xorg-server/Makefile
@@ -23,6 +23,7 @@ PKG_SITES:= ${MASTER_SITE_XORG}
PKG_SUBPKGS:= XORG_SERVER XORG_SERVER_DEV
PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA
+PKG_ARCH_DEPENDS:= !cris
PKG_FLAVOURS_XORG_SERVER:= WITH_DRI
PKGFS_WITH_DRI:= mesalib