473,378 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

FreeBSD ports config and makefiles

Hi

I am trying out FreeBSD and don't know much scripting - I am trying to build some programs from the ports. Now in linux I could do something like

./configure --abcdef --ghijkl

then "make install", and the docs for various programs also tell me how to config in this way. What is the equivalent for FreeBSD ports? I have tried something like "make config" or "make showconfig" but it doesn't give the equivalent functionality or sometimes it just says "no options" evne though the program's site says there are.

Well I noticed that there is no configure script in the ports directories which is why ./configure doesn't work, but when building stuff I can see that it has extracted the script elsewhere and is running it. So how do I pass the options to that script?

I have also ventured into the makefile, for example this one

Expand|Select|Wrap|Line Numbers
  1. .if !defined(WITHOUT_NLS)
  2. USE_ICONV=        yes
  3. CONFIGURE_ENV=        CPPFLAGS="-I${LOCALBASE}/include" \
  4.             LIBS="-L${LOCALBASE}/lib -liconv"
  5. CONFIGURE_ARGS+=    --enable-nls
  6. PLIST_SUB+=        NLS:=""
  7. .else
  8. CONFIGURE_ENV=        CPPFLAGS="-I${LOCALBASE}/include" \
  9.             LIBS="-L${LOCALBASE}/lib"
  10. CONFIGURE_ARGS+=    --disable-nls
  11. PLIST_SUB+=        NLS:="@comment "
  12. .endif
  13.  
  14. .if !defined(WITHOUT_REMEMBER)
  15. CONFIGURE_ARGS+=    --enable-remember
  16. .else
  17. CONFIGURE_ARGS+=    --disable-remember
  18. .endif
  19.  
  20. .if !defined(WITHOUT_SLIT)
  21. CONFIGURE_ARGS+=    --enable-slit
  22. .else
  23. CONFIGURE_ARGS+=    --disable-slit
  24. .endif
  25.  
could someone please explain - how do I define the things like WITHOUT_SLIT and where is CONFIGURE_ARGS passed to, what is the best way to do what I want to do?

Thanks for all help.
Sep 30 '08 #1
1 4572
drhowarddrfine
7,435 Expert 4TB
It's not necessary to run ./configure because ports already has that in the Makefile by the maintainer. To add options, you just do make --OPTION install
Oct 8 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Razvan Cojocaru | last post by:
Hello. I'm running FreeBSD 5.4, and using the gcc 3.3.6 from /usr/ports/lang/gcc33: $ gcc33 -v Reading specs from...
4
by: Ksenia Marasanova | last post by:
Hi, I have python2.3, installed from port /lang/python long time ago. The current version is 2.4, but I'd rather have two python versions, instead of upgrading. Is there maybe a way to somehow...
8
by: bill.postgresql-users | last post by:
I installed 7.4 from the FreeBSD ports collection (I'm running 4.9-RELEASE). Did nothing special, just make && make install and all was well. I now have updated my ports collection via cvsup and...
9
by: David Bear | last post by:
I need python 2.3. I have freebsd 4.10-releng. when configuring python I received the following: ../configure --prefix=/home/webenv > config-results configure: WARNING: curses.h: present but...
2
by: Dorian Mcfarland | last post by:
Hi there, I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the ports collection and I seem to have an underlying problem with the thread module. Pysqlite is calling 'import...
1
by: gp | last post by:
I'm running FreeBSD 6.1....Apache 2.2 and im working on upgrading to php5.2.0....with ports... my issue is the extensions like JSON and PDO which were supposed be wrapped up in 5.2....i've...
1
by: Gilles Ganault | last post by:
Hello I'd like to play with MemcacheD and see how it improves read access to data, but I'm a bit lost at how to get from a working Apache2 + PHP5 + MySQL5 server on FreeBSD 6.3. I've never...
5
by: ajd335 | last post by:
Hi all, I am trying to install Apache 2.2 on FreeBSD 7.1. I have installed the OS and the basic ports needed. when I tried to install apache 2.2 using, portmaster www/apache22 it gave me an...
0
by: ajd335 | last post by:
Hi all, I am trying to install Apache 2.2 on FreeBSD 7.1. I have installed the OS and the basic ports needed. when I tried to install apache 2.2 using, portmaster www/apache22 it gave me an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.