How to add universal support to a portfile?

Scott Haneda talklists at newgeo.com
Sat Jan 16 19:44:31 PST 2010


I asked this on the users list, either I missed the rely, or my post got missed, but I am genuinely curious..

How do I adjust portfiles to be able to support +universal?

   $port info php5-mcrypt
   Variants:             debug, universal

I do not see anything in that Portfile that has debug or universal.  When I compare that to a simple Portfile of my own, memtester:

   $port info memtester
   memtester @4.1.2 (sysutils)

   Description:          A userspace utility for testing the memory subsystem for 
                         faults.
   Homepage:             http://pyropus.ca/software/memtester/

   Platforms:            darwin
   License:              unknown

I am not sure how you get universal and debug into your Portfile, since there is no explicit code that is offering it.

I would like to allow memtester to be built as universal, I just do not know what to add to the Portfile to make that a variant option.

Thanks.
-- 
Scott * If you contact me off list replace talklists@ with scott@ * 



More information about the macports-dev mailing list