Skip to content

FreeBSD has different pkg-config dir: /usr/local/libdata/#110

Merged
ViralBShah merged 1 commit intoJuliaMath:masterfrom
iblislin:master
Feb 23, 2016
Merged

FreeBSD has different pkg-config dir: /usr/local/libdata/#110
ViralBShah merged 1 commit intoJuliaMath:masterfrom
iblislin:master

Conversation

@iblislin
Copy link
Copy Markdown
Contributor

Also, let the prefix be configurable from outside(e.g make prefix=/path) .

Comment thread Make.inc Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't needed AFAIK. All variables can be overridden already.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. ok i will remove it 😄

@nalimilan
Copy link
Copy Markdown
Contributor

Out of curiosity, do you have any references about libdatadir? I've never seen other libraries use this variable in their makefiles, and it's not listed e.g. in the GNU make standard variables. So I wonder how FreeBSD handles all those programs that don't support it.

@iblislin
Copy link
Copy Markdown
Contributor Author

@nalimilan Oh... libdatadir is just my naming, i'm willing to change it if you wish.
Some project use pkgconfigdir or whatever you can image.

We can find an example here: libzmq have pkgconfigdir configurable.
And there is a freebsd ports for it, set it correctly.

For the project which do not support it yet, we are encouraged to report to upstream. Or, we will make a patch for Makefile, uploud to freebsd ports. This patch will be apply during installation via ports.

@nalimilan
Copy link
Copy Markdown
Contributor

OK. pkgconfigdir looks more common (there are autoconf macros about it), and I find it more explicit.

@nalimilan
Copy link
Copy Markdown
Contributor

(But, really, this sounds like a heroic stance from FreeBSD people to decide to patch all upstream projects for a detail like that... :-)

@iblislin
Copy link
Copy Markdown
Contributor Author

(Ha. BTW. There is still lots of project using bash script with #!/bin/bash, and this is not portable for bsd... I always do PR for this: "hey! our bash is here(/usr/local/bin/bash) ... #!/usr/env bash would be portable.")

@iblislin
Copy link
Copy Markdown
Contributor Author

renaming done.

Comment thread Make.inc Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the default as $(libdir)/pkgconfig.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. sorry for that

Comment thread Make.inc Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should move this code above, and use it instead of the unconditional definition. Also, use $(libdir) as I said above, since people may override it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm... you mean merge this if block in to the previous if block ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I mean move this to the first place where you define pkgconfigdir.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, place it after line 15?
and... i try to understand your statement: "use it instead of the unconditional definition".
Would you explain more? I cannot follow your thinking right now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of line 13.

@iblislin iblislin force-pushed the master branch 2 times, most recently from 2483e1d to 4dfdcd0 Compare January 19, 2016 14:44
@nalimilan
Copy link
Copy Markdown
Contributor

Thanks, LGTM.

@ViralBShah Good to go?

@iblislin
Copy link
Copy Markdown
Contributor Author

@nalimilan Thanks for your patient reviewing. :)

@tkelman
Copy link
Copy Markdown
Contributor

tkelman commented Jan 20, 2016

This looks okay to me

ViralBShah added a commit that referenced this pull request Feb 23, 2016
FreeBSD has different pkg-config dir: /usr/local/libdata/
@ViralBShah ViralBShah merged commit 7654216 into JuliaMath:master Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants