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

MSGPACK-C-CPP recipe #836

Merged
merged 2 commits into from Dec 26, 2016
Merged

MSGPACK-C-CPP recipe #836

merged 2 commits into from Dec 26, 2016

Conversation

@extrowerk
Copy link
Member

extrowerk commented Oct 24, 2016

neovim requires it.

@extrowerk extrowerk force-pushed the extrowerk:msgpack branch from 4a8eed5 to 31af29d Oct 24, 2016
Copy link
Member

fbrosson left a comment

Minor or cosmetic changes.

@@ -0,0 +1,94 @@
SUMMARY="A serialization library"
DESCRIPTION="An efficient binary serialization format, which lets you exchange data \
among multiple languages like JSON, except that it's faster and smaller. \

This comment has been minimized.

Copy link
@fbrosson

fbrosson Oct 24, 2016

Member

Lines 2 and 3 should be:

DESCRIPTION="An efficient binary serialization format, which lets you exchange \
data among multiple languages like JSON, except that it's faster and smaller. \
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:sed
pkgconfig$secondaryArchSuffix

This comment has been minimized.

Copy link
@fbrosson

fbrosson Oct 24, 2016

Member

Should be:

    cmd:pkg_config$secondaryArchSuffix

PATCH()
{
sed -i 's/-pthread/-lroot/g' "example/cpp03/CMakeLists.txt"

This comment has been minimized.

Copy link
@fbrosson

fbrosson Oct 24, 2016

Member

Double quotes are not required here, so you can safely change this to:

    sed -i 's/-pthread/-lroot/g' example/cpp03/CMakeLists.txt

mv $libDir/../libmsgpackc.* $libDir/.
mv $libDir/../pkgconfig $libDir/.
mv $prefix/include/* $includeDir/

This comment has been minimized.

Copy link
@fbrosson

fbrosson Oct 24, 2016

Member

No need to keep trailing «/.» or «/». You can replace these lines by:

    mv $libDir/../libmsgpackc.* $libDir
    mv $libDir/../pkgconfig $libDir
    mv $prefix/include/* $includeDir

That said, if you patch some files and/or pass extra parameters to cmake it might be possible to make «make install» install everything to the correct destinations.

mv $prefix/include/* $includeDir/
rm -rf $prefix/include

rm -rf $libDir/*.la

This comment has been minimized.

Copy link
@fbrosson

fbrosson Oct 24, 2016

Member

No need for «-r» for the line that removes the libtool files. You can use:

    rm -f $libDir/lib*.la
Squashed msgpack recipe

MSGPACK-C-CPP recipe

Boost Licence

Recipe fix

Hash fix

Fixed recipe, thanks for fbrosson
@extrowerk extrowerk force-pushed the extrowerk:msgpack branch from 31af29d to 9acb63e Oct 24, 2016

BUILD()
{
export LDFLAGS="-lroot -lnetwork -lbsd"

This comment has been minimized.

Copy link
@waddlesplash

waddlesplash Dec 25, 2016

Member

-lroot is not needed.

miqlas
@extrowerk
Copy link
Member Author

extrowerk commented Dec 26, 2016

Ready!

@waddlesplash waddlesplash merged commit 4b29b0a into haikuports:master Dec 26, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
dacianf added a commit to dacianf/haikuports that referenced this pull request Jan 9, 2017
* Msgpack recipe

Squashed msgpack recipe

MSGPACK-C-CPP recipe

Boost Licence

Recipe fix

Hash fix

Fixed recipe, thanks for fbrosson

* Update msgpack_c_cpp-2.0.0.recipe
korli added a commit to korli/haikuports that referenced this pull request Jan 26, 2017
* Msgpack recipe

Squashed msgpack recipe

MSGPACK-C-CPP recipe

Boost Licence

Recipe fix

Hash fix

Fixed recipe, thanks for fbrosson

* Update msgpack_c_cpp-2.0.0.recipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.