1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/databases/sqsh/Makefile
Antoine Brodin 7047a19e51 - Stage support
- Use OPTIONS helpers
2013-12-31 12:59:50 +00:00

40 lines
991 B
Makefile

# Created by: Domas Mituzas <midom@dammit.lt>
# $FreeBSD$
PORTNAME= sqsh
PORTVERSION= 2.1.8
CATEGORIES= databases
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Interactive tool for querying Sybase database servers
LICENSE= GPLv2 # (or later)
LIB_DEPENDS= libct.so:${PORTSDIR}/databases/freetds
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT=X11
USES= readline
GNU_CONFIGURE= yes
CONFIGURE_ENV= SYBASE="${LOCALBASE}"
CONFIGURE_ARGS= --with-readline
ALL_TARGET= build
PLIST_FILES= bin/sqsh etc/sqshrc.default man/man1/sqsh.1.gz
X11_USES= motif
X11_CONFIGURE_ON= --with-motif --with-x
post-patch:
@${REINPLACE_CMD} -e \
's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/doc/global.sqshrc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/sqsh ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/sqsh.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/doc/global.sqshrc ${STAGEDIR}${PREFIX}/etc/sqshrc.default
.include <bsd.port.mk>