[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / unixodbc-ODBCConfig

File: [cvs.NetBSD.org] / pkgsrc / databases / unixodbc-ODBCConfig / Attic / Makefile (download)

Revision 1.14, Mon Dec 5 23:55:05 2005 UTC (17 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.13: +4 -4 lines

Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.

# $NetBSD: Makefile,v 1.14 2005/12/05 23:55:05 rillig Exp $

PKGNAME=		unixodbc-ODBCConfig-${ODBC_BASE_VERS}
PKGREVISION=		4
COMMENT=		GUI tool for unixODBC driver configuration

.include "../../databases/unixodbc/Makefile.common"

CONFIGURE_ARGS+=	--enable-gui
CONFIGURE_ARGS+=	--with-qt-dir=${QTDIR:Q}
CONFIGURE_ARGS+=	--with-extra-includes=${_EXTRA_INCLUDES:Q}
CONFIGURE_ARGS+=	--with-extra-libs=${_EXTRA_LIBS:Q}
CONFIGURE_ARGS+=	--disable-rpath

CONFIGURE_ENV+=		UIC="${QTDIR}/bin/uic"
CONFIGURE_ENV+=		USER_LDFLAGS=${LDFLAGS:M*:Q}
CONFIGURE_ENV+=		ac_cv_have_x=${_AC_CV_HAVE_X:Q}
CONFIGURE_ENV+=		ac_cv_have_qt=${_AC_CV_HAVE_QT:Q}

MAKE_FLAGS+=		ODBCConfig_DEPENDENCIES=""

_EXTRA_INCLUDES?=	${LOCALBASE}/include:${X11BASE}/include
_EXTRA_LIBS?=		${LOCALBASE}/lib:${X11BASE}/lib
_AC_CV_HAVE_X?=		have_x=yes					\
			kde_x_includes=${LOCALBASE}/include		\
			ac_x_libraries=${LOCALBASE}/lib
_AC_CV_HAVE_QT?=	have_qt=yes					\
			ac_qt_includes=${QTDIR}/include			\
			ac_qt_libraries=${QTDIR}/lib

INSTALLATION_DIRS=	bin

post-patch: fix-driver-installation

do-build:
	cd ${WRKSRC}/ODBCConfig; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}	\
		${MAKE_FLAGS} -f ${MAKEFILE} ${BUILD_TARGET}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ODBCConfig/ODBCConfig ${PREFIX}/bin

.include "../../databases/unixodbc/buildlink3.mk"
.include "../../x11/qt2-libs/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"