# global port routines
# the 'main' target is provided by this package
# main is a magic target and should not be replaced
package provide portmain 1.0
package require portutil

register_target main portmain::main
namespace eval portmain {
	variable options
	variable targets
}

# define globals: portname portversion categories maintainers
globals portmain::options portname portversion portrevision categories maintainers workdir worksrc

# define options: portname, portversion, categories, maintainers
options portmain::options portname portversion portrevision categories maintainers workdir worksrc

proc portmain::main {args} {
	global portname
	# puts "Building port: $portname"
	# do nothing
	return 0
}

# global port routines
# the 'main' target is provided by this package
# main is a magic target and should not be replaced
package provide portmain 1.0
package require portutil

register_target main portmain::main
namespace eval portmain {
	variable options
	variable targets
}

# define globals: portname portversion categories maintainers
globals portmain::options portname portversion portrevision categories maintainers workdir worksrc no_worksubdir

# define options: portname, portversion, categories, maintainers
options portmain::options portname portversion portrevision categories maintainers workdir worksrc no_worksubdir

proc portmain::main {args} {
	global portname
	default portmain::options workdir work
	return 0
}

Add default value for workdir
Add default value for workdir

git-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@26 d073be05-634f-4543-b044-5fe20cf6d1d6
