Browse Source

fix all TARGET/HOST dependencies

expand TARGET logic for ! values
Waldemar Brodkorb 15 years ago
parent
commit
b11d3a635a

+ 2 - 0
package/asterisk/Makefile

@@ -21,6 +21,8 @@ PKG_NOPARALLEL:=	1
 PKG_URL:=		http://www.asterisk.org
 PKG_SITES:=		http://downloads.asterisk.org/pub/telephony/asterisk/releases/
 
+PKG_TARGET_DEPENDS:=	!foxboard
+
 PKG_DEPENDS_MAIN:=		asterisk
 PKG_DESCR_CHAN_MGCP:=		Media Gateway Control Protocol implementation
 PKG_DESCR_CHAN_SKINNY:=		Skinny Client Control Protocol implementation

+ 2 - 0
package/cfgfs/Makefile

@@ -13,6 +13,8 @@ PKG_TARGET_DEPENDS:=	alix1c alix2d wrap foxboard ag241 rb532
 WRKDIST=		${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
 NO_DISTFILES:=		1
 
+CFLINE_CFGFS:= 		select BUSYBOX_COMM\\n\\tselect BUSYBOX_MD5SUM
+
 include ${TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,CFGFS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

+ 1 - 0
package/gdb/Makefile

@@ -8,6 +8,7 @@ PKG_DESCR:=		GNU debugger
 PKG_SECTION:=		comp
 PKG_DEPENDS:=		libthread-db libncurses
 PKG_BUILDDEP+=		ncurses readline
+PKG_TARGET_DEPENDS:=	!foxboard
 
 include ${TOPDIR}/mk/package.mk
 

+ 2 - 3
package/linux-atm/Makefile

@@ -12,15 +12,14 @@ PKG_SECTION:=		libs
 PKG_URL:=		http://linux-atm.sourceforge.net
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=linux-atm/}
 
+PKG_HOST_DEPENDS:=	!freebsd
+
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tgz
 
 PKG_DESCR_1:=		br2684ctl
 PKG_DEPENDS_1:=		libatm
 PKG_SECTION_1:=		net
 
-CFLINE_LIBATM:=		depends on !ADK_HOST_FREEBSD
-CFLINE_BR2684CTL:=	depends on !ADK_HOST_FREEBSD
-
 include ${TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,LIBATM,libatm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

+ 2 - 0
package/mplayer/Makefile

@@ -14,6 +14,8 @@ PKG_DEPENDS:=		zlib libncurses libmad alsa-lib libvorbis libogg libfaad2 libpthr
 PKG_URL:=		http://www.mplayerhq.hu
 PKG_SITES:=		http://openadk.org/distfiles/
 
+PKG_TARGET_DEPENDS:=	alix1c x86_qemu x86_64_qemu
+
 include ${TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,MPLAYER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

+ 12 - 2
package/pkgmaker

@@ -57,7 +57,7 @@ for dn in */Makefile; do
 	# PKGDFLT_*: subpackage 'default {:-n}', by subpackage option
 	# CFLINE_*: one free-format Config.in line per subpackage option
 	# PKGFD_*: flavour description, per package flavour option
-	# PKG_{HOST,TARGET}_DEPENDS: wbx@’s weird ideas
+	# PKG_{HOST,TARGET}_DEPENDS: add host or target dependencies
 	eval $($GMAKE dump="PKG_NAME PKG_FLAVOURS PKG_DESCR PKG_URL PKG_CXX \
 	    ALL_PKGOPTS \$(foreach x,\${ALL_PKGOPTS},PKGNAME_\${x} \
 	    PKGDESC_\${x} PKGDEPS_\${x} PKGDFLT_\${x} CFLINE_\${x}) \
@@ -120,7 +120,13 @@ for dn in */Makefile; do
 	if [[ -n $PKG_TARGET_DEPENDS ]]; then
 		ptd='\tdepends on'
 		sp=' '				# local sp: space (or ' || ')
+		if [[ $PKG_TARGET_DEPENDS = *\!* ]]; then
+			sp=' !'
+		else
+			sp=' '
+		fi
 		for x in $PKG_TARGET_DEPENDS; do
+			x=${x#!}
 			#XXX cache this with mksh R40+
 			found=0
 			while read friendlyname sym; do
@@ -133,7 +139,11 @@ for dn in */Makefile; do
 				exit 1
 			fi
 			ptd="$ptd${sp}$sym"
-			sp=' || '
+			if [[ $PKG_TARGET_DEPENDS = *\!* ]]; then
+				sp=' && !'
+			else
+				sp=' || '
+			fi
 		done
 	fi
 

+ 2 - 0
package/swconfig/Makefile

@@ -10,6 +10,8 @@ PKG_BUILDDEP+=		libnl
 PKG_DESCR:=		switch configuration utility
 PKG_SECTION:=		misc
 
+PKG_TARGET_CONFIG:=	rb433
+
 WRKDIST=		${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
 NO_DISTFILES:=		1
 

+ 2 - 0
package/valgrind/Makefile

@@ -12,6 +12,8 @@ PKG_SECTION:=		utils
 PKG_URL:=		http://valgrind.org
 PKG_SITES:=		http://valgrind.org/downloads/
 
+PKG_TARGET_DEPENDS:=	x86 x86_64
+
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2
 
 include $(TOPDIR)/mk/package.mk

+ 2 - 0
package/xf86-video-cirrus/Makefile

@@ -13,6 +13,8 @@ PKG_SECTION:=		x11
 PKG_DEPENDS:=		xorg-server
 PKG_SITES:=		http://xorg.freedesktop.org/releases/individual/driver/
 
+PKG_TARGET_DEPENDS:=	x86_qemu x86_64_qemu
+
 include $(TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,XF86_VIDEO_CIRRUS,${PKG_NAME},$(PKG_VERSION)-$(PKG_RELEASE),${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

+ 2 - 0
package/xf86-video-geode/Makefile

@@ -13,6 +13,8 @@ PKG_SECTION:=		x11
 PKG_DEPENDS:=		xorg-server
 PKG_SITES:=		http://xorg.freedesktop.org/releases/individual/driver/
 
+PKG_TARGET_DEPENDS:=	alix1c
+
 include $(TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,XF86_VIDEO_GEODE,${PKG_NAME},$(PKG_VERSION)-$(PKG_RELEASE),${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

+ 2 - 0
target/target.lst

@@ -27,3 +27,5 @@ rb411		ADK_LINUX_MIPS_RB411
 rb433		ADK_LINUX_MIPS_RB433
 rb532		ADK_LINUX_MIPS_RB532
 routerboard	ADK_LINUX_MIPS_RB411 || ADK_LINUX_MIPS_RB433 || ADK_LINUX_MIPS_RB532
+x86		ADK_LINUX_X86_QEMU || ADK_LINUX_X86_RESCUE || ADK_LINUX_X86_ALIX1C || ADK_LINUX_X86_ALIX2D || ADK_LINUX_X86_WRAP
+x86_64		ADK_LINUX_X86_64_QEMU || ADK_LINUX_X86_64_RESCUE || ADK_LINUX_X86_64_SHUTTLE