Page MenuHomeFreeBSD

Switch to <opt>_CMAKE_BOOL
ClosedPublic

Authored by adridg on Nov 4 2017, 9:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 1:43 AM
Unknown Object (File)
Mon, Apr 29, 6:26 PM
Unknown Object (File)
Sun, Apr 21, 12:49 AM
Unknown Object (File)
Fri, Apr 19, 1:17 PM
Unknown Object (File)
Feb 19 2024, 6:11 AM
Unknown Object (File)
Feb 19 2024, 6:11 AM
Unknown Object (File)
Feb 19 2024, 6:11 AM
Unknown Object (File)
Feb 19 2024, 6:11 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 12688
Build 12959: arc lint + arc unit

Event Timeline

databases/soci/Makefile
47–48

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
47–48

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
47–48

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.