a23f910c16
Restore some PLIST content state from prior to the 23.2.4 update, which mistakenly moved some hipe-related files that get built universally to the PLIST.hipe list. The "--disable-hipe" option does not impact everything. Build tested with the hipe option both enabled and disabled. This should fix build breakages, e.g., NetBSD/aarch64. (Separately, it's kind of unfortunate that this package uses both PLIST variables and separate PLIST files to segment content driven by options. It should really use one approach or the other consistently, but I haven't touched that here.)
79 lines
2.2 KiB
Makefile
79 lines
2.2 KiB
Makefile
# $NetBSD: options.mk,v 1.13 2021/02/20 01:02:29 gutteridge Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.erlang
|
|
PKG_SUPPORTED_OPTIONS= java erlang-hipe
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= odbc
|
|
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
|
|
|
|
PKG_SUGGESTED_OPTIONS= # empty
|
|
###
|
|
### Activate HiPE by default on some systems or if the user has
|
|
### defined the erlang-hipe option in mk.conf
|
|
###
|
|
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
|
|
(${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || \
|
|
${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "SunOS")
|
|
PKG_SUGGESTED_OPTIONS+= erlang-hipe
|
|
.endif
|
|
|
|
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" || \
|
|
${OPSYS} == "Linux"
|
|
PKG_SUPPORTED_OPTIONS+= dtrace
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_SRC= ${PLIST_SRC_DFLT}
|
|
PLIST_VARS+= odbc dtrace
|
|
|
|
.if !empty(PKG_OPTIONS:Mjava)
|
|
USE_JAVA= yes
|
|
USE_JAVA2= yes
|
|
.include "../../mk/java-vm.mk"
|
|
PLIST_SRC+= PLIST.java
|
|
.else
|
|
CONFIGURE_ARGS+= --without-javac
|
|
.endif
|
|
|
|
# Some hipe-related files are still installed even when --disable-hipe
|
|
# is supplied, and these should remain in the general PLIST.
|
|
.if !empty(PKG_OPTIONS:Merlang-hipe)
|
|
CONFIGURE_ARGS+= --enable-hipe
|
|
PLIST_SRC+= PLIST.hipe
|
|
USE_TOOLS+= gm4 # needs -P
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-hipe
|
|
.endif
|
|
|
|
###
|
|
### Provide iodbc/unixodbc option support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Miodbc)
|
|
. include "../../databases/iodbc/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.iodbc}
|
|
PLIST.odbc= yes
|
|
.elif !empty(PKG_OPTIONS:Munixodbc)
|
|
. include "../../databases/unixodbc/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-odbc=${BUILDLINK_PREFIX.unixodbc}
|
|
PLIST.odbc= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --without-odbc
|
|
.endif
|
|
|
|
###
|
|
### DTrace support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mdtrace)
|
|
. if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
|
|
CONFIGURE_ARGS+= --with-dynamic-trace=dtrace
|
|
. elif ${OPSYS} == "Linux"
|
|
CONFIGURE_ARGS+= --with-dynamic-trace=systemtap
|
|
. endif
|
|
PLIST.dtrace= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --without-dynamic-trace
|
|
.endif
|
|
|
|
# Help generate optional PLIST parts:
|
|
PRINT_PLIST_AWK+= {if ($$0 ~ /dtrace_user/) {$$0 = "$${PLIST.dtrace}" $$0;}}
|
|
PRINT_PLIST_AWK+= {if ($$0 ~ /\/erlang\/lib\/odbc-${VERSION.odbc}\//) {$$0 = "$${PLIST.odbc}" $$0;}}
|