Skip to content

Commit

Permalink
Framework: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Jun 26, 2016
1 parent 71166ca commit ccf8c23
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ in the release notes and/or placed into UPDATING.

All ports committers are allowed to commit to this file.

20160625:
AUTHOR: [email protected]

A new ${opt}_CMAKE_BOOL OPTIONS helper has been added. Instead of:

FOO_CMAKE_ON= -DWITH_FOO:BOOL=YES -DWITH_BAR:BOOL=YES
FOO_CMAKE_OFF= -DWITH_FOO:BOOL=NO -DWITH_BAR:BOOL=NO

you can use this shortcut:

SOMEOPT_CMAKE_BOOL= WITH_FOO WITH_BAR

20160525:
AUTHOR: [email protected]

Expand Down
1 change: 1 addition & 0 deletions GIDs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ _bbstored:*:505:
radmind:*:506:
skkserv:*:507:
pwhois:*:512:
davmail:*:521:
nullmail:*:522:
freevo:*:523:
dkimproxy:*:525:
Expand Down
7 changes: 6 additions & 1 deletion Mk/Uses/python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,13 @@ PYTHON_REL= ${PYTHON_PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/:C/\.([0-9]+)$

# Might be overridden by calling ports
PYTHON_CMD?= ${_PYTHON_BASECMD}${_PYTHON_VERSION}
.if exists(${PYTHON_CMD}-config) && ${PYTHON_VER} != 2.7
.if ${PYTHON_VER} != 2.7
.if exists(${PYTHON_CMD}-config)
PYTHON_ABIVER!= ${PYTHON_CMD}-config --abiflags
.else
# Default ABI flags for lang/python3x ports
PYTHON_ABIVER= m
.endif
.endif

.if !defined(PYTHONBASE)
Expand Down
10 changes: 10 additions & 0 deletions Mk/bsd.options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
# ${opt}_CMAKE_OFF When option is disabled, it will add its content to
# the CMAKE_ARGS.
#
# ${opt}_CMAKE_BOOL Will add to CMAKE_ARGS:
# Option enabled -D${content}:BOOL=true
# Option disabled -D${content}:BOOL=false
#
# ${opt}_QMAKE_ON When option is enabled, it will add its content to
# the QMAKE_ARGS.
# ${opt}_QMAKE_OFF When option is disabled, it will add its content to
Expand Down Expand Up @@ -515,6 +519,9 @@ CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ENABLE:S/^/--enable-/}
. if defined(${opt}_CONFIGURE_WITH)
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--with-/}
. endif
. if defined(${opt}_CMAKE_BOOL)
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=true/}
. endif
. for configure in CONFIGURE CMAKE QMAKE
. if defined(${opt}_${configure}_ON)
${configure}_ARGS+= ${${opt}_${configure}_ON}
Expand Down Expand Up @@ -559,6 +566,9 @@ CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ENABLE:S/^/--disable-/:C/=.*//}
. if defined(${opt}_CONFIGURE_WITH)
CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--without-/:C/=.*//}
. endif
. if defined(${opt}_CMAKE_BOOL)
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=false/}
. endif
. for configure in CONFIGURE CMAKE QMAKE
. if defined(${opt}_${configure}_OFF)
${configure}_ARGS+= ${${opt}_${configure}_OFF}
Expand Down
1 change: 1 addition & 0 deletions UIDs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ _bbstored:*:505:505::0:0:Box Backup Store Daemon:/nonexistent:/usr/sbin/nologin
radmind:*:506:506::0:0:radmind User:/var/radmind:/usr/sbin/nologin
skkserv:*:507:507::0:0:skkserv User:/nonexistent:/usr/sbin/nologin
pwhois:*:512:512::0:0:pwhoisd User:/nonexistent:/usr/sbin/nologin
davmail:*:521:521::0:0:Davmail Exchange Gateway:/nonexistent:/usr/sbin/nologin
nullmail:*:522:522::0:0:Nullmailer Mail System:/var/spool/nullmailer:/bin/sh
freevo:*:523:523::0:0:Freevo User:/var/db/freevo:/bin/sh
dkimproxy:*:525:525::0:0:DKIM Proxy Owner:/nonexistent:/usr/sbin/nologin
Expand Down

0 comments on commit ccf8c23

Please sign in to comment.