Skip to content

Commit

Permalink
sysutils/bacula*-server: Clean up some USES=readline:port cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Kortkamp authored and Tobias Kortkamp committed May 15, 2021
1 parent ab83f2b commit c0cb001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions sysutils/bacula11-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PLIST_SUB+= LIB_VERSION=${PORTVERSION}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes

CPPFLAGS+= -I/usr/include/readline -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib

OPTIONS_DEFINE?= MTX NLS IPV6
Expand Down Expand Up @@ -127,18 +127,12 @@ MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:misc/mtx

.include <bsd.port.pre.mk>

.if ${readline_ARGS} == "port"
readline_CONFIGURE= ${LOCALBASE}
.else
readline_CONFIGURE= yes
.endif

# if IPv6 is not in the kernel, it generates many errors
.if ! ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --disable-ipv6
.endif

CONFIGURE_ARGS+= --with-readline=${readline_CONFIGURE}
CONFIGURE_ARGS+= --with-readline=${LOCALBASE}

.if defined(WITH_CLIENT_ONLY)
MP8+= bacula.8 bacula-fd.8 bconsole.8
Expand Down
10 changes: 2 additions & 8 deletions sysutils/bacula9-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PLIST_SUB+= LIB_VERSION=${PORTVERSION}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes

CPPFLAGS+= -I/usr/include/readline -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib

OPTIONS_DEFINE?= MTX NLS IPV6
Expand Down Expand Up @@ -127,18 +127,12 @@ MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:misc/mtx

.include <bsd.port.pre.mk>

.if ${readline_ARGS} == "port"
readline_CONFIGURE= ${LOCALBASE}
.else
readline_CONFIGURE= yes
.endif

# if IPv6 is not in the kernel, it generates many errors
.if ! ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --disable-ipv6
.endif

CONFIGURE_ARGS+= --with-readline=${readline_CONFIGURE}
CONFIGURE_ARGS+= --with-readline=${LOCALBASE}

.if defined(WITH_CLIENT_ONLY)
MP8+= bacula.8 bacula-fd.8 bconsole.8
Expand Down

0 comments on commit c0cb001

Please sign in to comment.