mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Fix build with readline from ports
While here use options helpers Remove useless inclusion of pre.mk/post.mk
This commit is contained in:
parent
a2d71f43ca
commit
31c0cafa36
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359987
@ -49,63 +49,20 @@ THREADSAFE_DESC= Enable multiple thread support
|
||||
TRACEJIT_DESC= Enable tracing JIT support
|
||||
UTF8_DESC= Treat strings as UTF8 instead of ISO-8859-1
|
||||
|
||||
DEBUG_CONFIGURE_ENABLE= debug
|
||||
DEBUG_CONFIGURE_ON= --enable-debug-sumbols
|
||||
GCZEAL_CONFIGURE_ENABLE= gczeal
|
||||
JEMALLOC_CONFIGURE_ENABLE= jemalloc
|
||||
METHODJIT_CONFIGURE_ENABLE= methodjit
|
||||
OPTIMIZE_CONFIGURE_ENABLE= optimize
|
||||
READLINE_CONFIGURE_ENABLE= readline
|
||||
READLINE_USES= readline
|
||||
THREADSAFE_CONFIGURE_ENABLE= threadsafe
|
||||
TRACEJIT_CONFIGURE_ENABLE= tracejit
|
||||
UTF8_CFLAGS= -DJS_C_STRINGS_ARE_UTF8
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDEBUG}
|
||||
CONFIGURE_ARGS+= --enable-debug \
|
||||
--enable-debug-symbols
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-debug
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MGCZEAL}
|
||||
CONFIGURE_ARGS+= --enable-gczeal
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-gczeal
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MJEMALLOC}
|
||||
CONFIGURE_ARGS+= --enable-jemalloc
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-jemalloc
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MMETHODJIT}
|
||||
CONFIGURE_ARGS+= --enable-methodjit
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-methodjit
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MOPTIMIZE}
|
||||
CONFIGURE_ARGS+= --enable-optimize
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-optimize
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MREADLINE}
|
||||
CONFIGURE_ARGS+= --enable-readline
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-readline
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MTHREADSAFE}
|
||||
CONFIGURE_ARGS+= --enable-threadsafe
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-threadsafe
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MTRACEJIT}
|
||||
CONFIGURE_ARGS+= --enable-tracejit
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-tracejit
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MUTF8}
|
||||
CFLAGS+= -DJS_C_STRINGS_ARE_UTF8
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == amd64
|
||||
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
||||
.endif
|
||||
@ -169,4 +126,4 @@ post-install:
|
||||
${LN} -sf libmozjs185.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libmozjs185.so.1.0
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmozjs185.so.1.0.0
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user