- Fix LIB_DEPENDS
- Fix build when WITHOUT_X11 is defined PR: 44963 Submitted by: Ports Fury
This commit is contained in:
parent
487aef8666
commit
6ef0919abb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69596
5 changed files with 18 additions and 24 deletions
|
@ -6,37 +6,39 @@
|
|||
|
||||
PORTNAME= sqsh
|
||||
PORTVERSION= 2.1
|
||||
PORTREVISION= 1
|
||||
PORTCOMMENT= Interactive tool for querying Sybase database servers
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://www.sqsh.org/
|
||||
EXTRACT_SUFX= -src.tar.gz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= tds.0:${PORTSDIR}/databases/freetds
|
||||
|
||||
.ifndef WITHOUT_X11
|
||||
WITH_MOTIF= yes
|
||||
CONFIGURE_ARGS+=--with-motif
|
||||
USE_XLIB= yes
|
||||
.else
|
||||
PKGNAMESUFFIX+= -nox11
|
||||
.endif
|
||||
LIB_DEPENDS= tds.0:${PORTSDIR}/databases/freetds \
|
||||
intl.4:${PORTSDIR}/devel/gettext
|
||||
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV+= SYBASE="${LOCALBASE}"
|
||||
CONFIGURE_ARGS+=--with-readline
|
||||
CONFIGURE_ENV= SYBASE="${LOCALBASE}"
|
||||
CONFIGURE_ARGS= --with-readline
|
||||
ALL_TARGET= build
|
||||
|
||||
MAN1= sqsh.1
|
||||
|
||||
ALL_TARGET= build
|
||||
.if defined(WITHOUT_X11)
|
||||
PKGNAMESUFFIX= -nox11
|
||||
.else
|
||||
USE_MOTIF= yes
|
||||
CONFIGURE_ARGS+= --with-motif
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${MV} ${WRKSRC}/doc/global.sqshrc ${WRKSRC}/doc/global.sqshrc.in
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/doc/global.sqshrc
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/sqsh ${PREFIX}/bin
|
||||
cd ${WRKSRC}/doc && \
|
||||
${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/sqsh.1 ${MANPREFIX}/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/global.sqshrc ${PREFIX}/etc/sqshrc.default
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -26,10 +26,3 @@
|
|||
+ sunos*|*bsd*)
|
||||
SYBASE_OS="-lm";;
|
||||
solaris*)
|
||||
@@ -2691,5 +2690,5 @@
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
-CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile scripts/install.sh scripts/make_wrapper.sh"}
|
||||
+CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile scripts/install.sh scripts/make_wrapper.sh doc/global.sqshrc"}
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
|
@ -6,7 +6,7 @@
|
|||
+
|
||||
+# DO NOT EDIT -- the changes will be lost if you reinstall
|
||||
+# or upgrade sqsh port/package. Instead, create your own
|
||||
+# @prefix@/etc/sqshrc
|
||||
+# %%LOCALBASE%%/etc/sqshrc
|
||||
+# if you wish to make system-wide customizations.
|
||||
+# User-specific customizations can be made in ~/.sqshrc files.
|
||||
|
|
@ -1 +0,0 @@
|
|||
Interactive tool for querying Sybase database servers
|
Loading…
Reference in a new issue