Browse Source

infrastructure and demo for one(!) free-format config line per subpackage

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 15 years ago
parent
commit
54d9c42f67
2 changed files with 5 additions and 0 deletions
  1. 3 0
      package/linux-atm/Makefile
  2. 2 0
      package/pkgmaker

+ 3 - 0
package/linux-atm/Makefile

@@ -18,6 +18,9 @@ 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/pkgmaker

@@ -72,6 +72,8 @@ for sd in */Makefile; do
 			}
 		done
 		print \\tselect ADK_COMPILE_$dnu
+		dep=$($GMAKE show=CFLINE_$xu)	# one free-format line
+		[[ -n $dep ]] && print "\t$dep"
 		if [[ -n $pd$ph ]]; then
 			print \\thelp
 			[[ -n $pd ]] && print "\t  $pd"