Page MenuHomeFreeBSD

Switch to <opt>_CMAKE_BOOL
ClosedPublic

Authored by adridg on Nov 4 2017, 9:50 PM.
Tags
None
Referenced Files
F82966898: D12957.id37510.diff
Sat, May 4, 2:48 PM
F82966894: D12957.id35155.diff
Sat, May 4, 2:48 PM
F82966890: D12957.id34800.diff
Sat, May 4, 2:48 PM
F82966887: D12957.id37509.diff
Sat, May 4, 2:48 PM
F82966877: D12957.id.diff
Sat, May 4, 2:47 PM
F82966874: D12957.id35371.diff
Sat, May 4, 2:47 PM
F82963099: D12957.diff
Sat, May 4, 1:54 PM
Unknown Object (File)
Tue, Apr 30, 1:43 AM
Subscribers

Details

Summary

Options which translate to CMake arguments -D<content>:BOOL=<ON|OFF>
can be simplified through the use of <opt>_CMAKE_BOOL.

This does remind me that this mechanism isn't documented in the
Porter's handbook.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 12475
Build 12750: arc lint + arc unit

Event Timeline

databases/soci/Makefile
49

You could use it here to and fix the cmake file to use the proper path probably

adridg marked an inline comment as done.
adridg added inline comments.
databases/soci/Makefile
49

This strikes me as a less invasive approach: we prefer libodbc over libiodbc which CMake will find, but that's just a packaging preference. Patching the CMakeLists (or more likely cmake/modules/FindODBC.cmake) is a larger change, and less likely to apply cleanly to future releases.

adridg marked an inline comment as done.

Minor updates

  • bump PORTREVISION
  • massage COMMENT

MAINTAINER should be a reviewer, not just subscribed.

databases/soci/Makefile
49

Ah. Thanks.

But shouldn't

ODBC_CMAKE_BOOL=WITH_ODBC
ODBC_CMAKE_ON= -DODBC_LIBRARY:FILE_PATH=${LOCALBASE}/lib/libodbc.so

work, so that all toggles are CMAKE_BOOL's

Simplify ODBC options as well. You can combine _BOOL with _ON.

This revision is now accepted and ready to land.Jan 4 2018, 7:55 AM

lgtm, but the PORTREVISION bump can be dropped, as this change is just cosmetic.

No need to bump PORTREVISION, cosmetic change in Makefile only.

This revision now requires review to proceed.Jan 4 2018, 12:40 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 4 2018, 12:46 PM
This revision was automatically updated to reflect the committed changes.