[
https://issues.apache.org/jira/browse/COUCHDB-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Randall Leeds updated COUCHDB-1012:
-----------------------------------
Attachment: 0001-support-pkg-config-for-plugins-COUCHDB-1012.patch
Patch. I'm not super comfortable with autotools or conventions that may apply
here, so please enlighten if you have feedback.
`pkg-config --libs couchdb` - the flags to pass to erl in order to add all the
couchdb apps to your erlang code path (e.g. "/usr/local/lib/couchdb/erlang/lib")
`pkg-config --variable=libdir couchdb` - the raw directory, useful for
installing your plugin where couch can find it. same as above but without the
"-pa" switch.
`pkg-config --cflags couchdb` a -I/path/to/couchdb-1.x/include` - passed to
erlc to find couch_db.hrl
> Utility to help plugin developers manage paths
> ----------------------------------------------
>
> Key: COUCHDB-1012
> URL: https://issues.apache.org/jira/browse/COUCHDB-1012
> Project: CouchDB
> Issue Type: New Feature
> Components: Build System
> Reporter: Randall Leeds
> Attachments: 0001-support-pkg-config-for-plugins-COUCHDB-1012.patch
>
>
> Developers may want to write plugins (like GeoCouch) for CouchDB. Many hooks
> in the configuration system allow loading arbitrary Erlang modules to handle
> various internal tasks, but currently there is no straightforward and
> portable way for developers of these plugins to discover the location of the
> CouchDB library files.
> Two options that have been proposed are to use pkg-config or install a
> separate script that could be invoked (e.g. as couch-config --erl-libs) to
> discover important CouchDB installation paths.
> As far as I know the loudest argument against pkg-config is lack of support
> for Windows.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.