Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a patch for proj4 pkg-config support #3

Closed
proj4-bot opened this issue May 22, 2015 · 7 comments
Closed

a patch for proj4 pkg-config support #3

proj4-bot opened this issue May 22, 2015 · 7 comments

Comments

@proj4-bot
Copy link

Reported by 183 on 26 May 2008 08:58 UTC
Hello,
this is a small patch that could be useful to use pkg-config facility.

--- configure.in.orig   2008-05-16 18:42:04.000000000 +0200
+++ configure.in    2008-05-16 18:43:00.000000000 +0200
@@ -80,3 +80,4 @@
 AC_OUTPUT(Makefile src/Makefile man/Makefile man/man1/Makefile \
    man/man3/Makefile nad/Makefile \
    jniwrap/Makefile jniwrap/org/Makefile jniwrap/org/proj4/Makefile)
+AC_OUTPUT(proj.pc)
--- Makefile.am.orig    2008-05-16 18:57:12.000000000 +0200
+++ Makefile.am 2008-05-16 18:57:24.000000000 +0200
@@ -1,6 +1,3 @@
 SUBDIRS    =   src man nad jniwrap

-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = proj.pc
-
 AUTOMAKE_OPTIONS = dist-zip
--- /dev/null   2008-05-05 11:09:07.000000000 +0200
+++ proj.pc.in  2008-05-16 18:51:33.000000000 +0200
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: proj
+Description: Cartographic Projections Library.
+Requires: 
+Version: @VERSION@
+Libs: -L${libdir} -lproj
+Cflags: -I${includedir}

Last Modified by warmerdam on 21 Aug 2008 19:55 UTC

Migrated-From: https://trac.osgeo.org/proj/ticket/3

@proj4-bot
Copy link
Author

Comment by warmerdam on 21 Aug 2008 19:55 UTC
I'm afraid I don't understand what pkg-config is exactly, nor what the above changes do. Generally I have found it is not good to include packaging stuff for particular system (ie. rpm, deb) in the distribution because it is not kept up to date properly.

@proj4-bot
Copy link
Author

Comment by frankie on 3 Jun 2009 09:22 UTC
Replying to warmerdam:

I'm afraid I don't understand what pkg-config is exactly, nor what the above changes do. Generally I have found it is not good to include packaging stuff for particular system (ie. rpm, deb) in the distribution because it is not kept up to date properly.

Just for note, a pkg-config file would allow using the pkg-config to provide information a la gdal-config with a simplified/standard interfaces for programs without the need to write a shell/python what-else script for that.

@proj4-bot
Copy link
Author

Comment by des on 1 Dec 2009 15:47 UTC
Replying to warmerdam:

I'm afraid I don't understand what pkg-config is exactly, nor what the above changes do. Generally I have found it is not good to include packaging stuff for particular system (ie. rpm, deb) in the distribution because it is not kept up to date properly.

pkg-config is an OS-independent tool used to register a library and record important information about it, such as the installed version and the correct compiler and linker flags to use when compiling code that uses it. It is widely used in the GNU world and well integrated with the GNU autotools, and requires minimal effort on the part of the library author.

See [http://pkg-config.freedesktop.org/wiki/] for more information.

183's patch is fine, except that the second hunk (Makefile.am) is reversed.

@proj4-bot
Copy link
Author

Comment by booo on 23 Jul 2011 09:49 UTC
I fixed the patch and tested it a bit. Would be nice if you could apply this patch as it makes life easier ;)

Thx for you work!

Regards
Philipp

@proj4-bot proj4-bot added enhancement and removed bug labels May 22, 2015
@proj4-bot
Copy link
Author

Comment by warmerdam on 23 Jul 2011 17:23 UTC
Well, I'm still a bit vague on the utility of this, but I have applied it in trunk (2f0f94d (SVN rev2072)). Let me know if I botched it.

@proj4-bot proj4-bot added this to the 4.8.0 milestone May 22, 2015
@proj4-bot
Copy link
Author

Attachment added by 183 on 26 May 2008 08:58 UTC
https://trac.osgeo.org/proj/attachment/ticket/3/support-for-pkg-config.patch

@proj4-bot
Copy link
Author

Attachment added by booo on 23 Jul 2011 09:46 UTC
https://trac.osgeo.org/proj/attachment/ticket/3/pkg-config.patch

busstoptaktik added a commit that referenced this issue May 19, 2016
Projections starting with the letter c refactored
ccrook pushed a commit to ccrook/PROJ that referenced this issue Apr 23, 2020
jkrasting added a commit to jkrasting/PROJ that referenced this issue May 16, 2020
- Updates based on Goode, JP, 1925. (DOI: 10.1080/00045602509356949)
- High-latitudes "lobes" added for projections #1 and OSGeo#3
- Central longitude changed to -160
- Added fill reference to docstrings for igh.cpp and igh_o.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant