FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us
Blog
Twitter

I am looking for an LTO tape library. Do you have one to spare?
Help with ports
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 How to install port with extra option?
Author: CJN 
Date:   28-09-06 09:36

How to install port with extra options? I mean the options which exist in original tarball but not in port's Makefile.

For example,
I want to build PHP 4.4.4 with --enable-experimental-zts. How to do it with port?

CJN

Reply To This Message
 
 Re: How to install port with extra option?
Author: Dan 
Date:   28-09-06 11:24

flz told me the answer:

Use the environment variable CONFIGURE_ARGS. How you set it depends on your shell. It might be one of:

env CONFIGURE_ARGS=--foo
export CONFIGURE_ARGS=--foo

But most of the time, CONFIGURE_ARGS is set with '=' in the port, so you need to modify the Makefile and replace CONFIGURE_ARGS= with CONFIGURE_ARGS+=

--
The Man Behind The Curtain

Reply To This Message
 
 Re: How to install port with extra option?
Author: CJN 
Date:   28-09-06 12:08

Currently I did modified the Makefile to make it works, however it will be
gone when the port is updated.

Also, I would like to know if theres a method to do in pkgtools.conf, so that
the options will be valid when doing portupgrade.

Reply To This Message
 
 Re: How to install port with extra option?
Author: Dan 
Date:   28-09-06 14:00

Cydex said:

Modifying configure arguments isn't really supported by the ports framework. Perhaps you should submit a patch, either to add that feature to OPTIONS, or change CONFIGURE_ARGS to use +=

--
The Man Behind The Curtain

Reply To This Message
 
 Re: How to install port with extra option?
Author: CJN 
Date:   29-09-06 06:04

Are you meaning there is no way to do this by command line?

Reply To This Message
 
 Re: How to install port with extra option?
Author: Dan 
Date:   29-09-06 11:27

CJN wrote:

> Are you meaning there is no way to do this by command line?

AFAIK, if the Makefile does not do CONFIGURE_ARGS +=, there's no day.

--
The Man Behind The Curtain

Reply To This Message
 
 Re: How to install port with extra option?
Author: Dan 
Date:   29-09-06 11:30

To clarify, yes you can use the command line using something like this

env CONFIGURE_ARGS=--foo
export CONFIGURE_ARGS=--foo

BUT ONLY if the Makefile does *not* contain a CONFIGURE_ARGS= statement.

--
The Man Behind The Curtain

Reply To This Message
 
 Re: How to install port with extra option?
Author: CJN 
Date:   29-09-06 12:15

Thats bad.... It does have CONFIGURE_ARGS.

Reply To This Message
 
 Re: How to install port with extra option?
Author: Dan 
Date:   29-09-06 12:30

Submit a patch.

--
The Man Behind The Curtain

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.


Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.