pkgsrc/devel/ucommon/options.mk
rodent 5ea4e7dab2 Updated to latest release. Add options.mk file to allow the user to select
the static and tests options. PLIST is handled accordingly for the static
option, which switches between static and dynamically linked libraries.
Handle buildlink3.mk appropriately for static build. Comment patch.

From ChangeLog:

from ucommon 6.0.4 to 6.0.5
- additional constructors to pass pre-allocated memory

from ucommon 6.0.3 to 6.0.4
- fix for address list comparison issue
2013-06-27 01:36:25 +00:00

22 lines
488 B
Makefile

# $NetBSD: options.mk,v 1.1 2013/06/27 01:36:25 rodent Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ucommon
PKG_SUPPORTED_OPTIONS= static tests
PKG_SUGGESTED_OPTIONS+= # blank
PLIST_VARS+= dynamic static
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mstatic)
CMAKE_ARGS+= -DBUILD_STATIC=ON
PLIST.static= yes
.else
CMAKE_ARGS+= -DBUILD_STATIC=OFF
PLIST.dynamic= yes
.endif
.if !empty(PKG_OPTIONS:Mtests)
CMAKE_ARGS+= -DBUILD_TESTING=ON
.else
CMAKE_ARGS+= -DBUILD_TESTING=OFF
.endif