43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.18 2007/09/15 20:34:03 simon Exp $
|
|
|
|
DISTNAME= sqsh-2.1
|
|
PKGNAME= ${DISTNAME}p1
|
|
CATEGORIES= databases shells
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c curses m readline
|
|
|
|
COMMENT= SQL shell
|
|
HOMEPAGE= http://www.sqsh.org/
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sqsh/} ${HOMEPAGE}
|
|
EXTRACT_SUFX= -src.tar.gz
|
|
|
|
MODULES= devel/gettext
|
|
LIB_DEPENDS= tds.>=3,ct.>=2::databases/freetds
|
|
|
|
CONFIGURE_STYLE= gnu old
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autoconf
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
SYBASE="${LOCALBASE}"
|
|
CONFIGURE_ARGS= --with-readline --sysconfdir='${SYSCONFDIR}'
|
|
|
|
ALL_TARGET=
|
|
NO_REGRESS= Yes
|
|
|
|
pre-configure:
|
|
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," ${WRKSRC}/Makefile.in \
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/sqsh ${PREFIX}/bin/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sqsh
|
|
${INSTALL_DATA} ${WRKSRC}/doc/global.sqshrc \
|
|
${PREFIX}/share/examples/sqsh/
|
|
${INSTALL_MAN} ${WRKSRC}/doc/sqsh.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|