2002-09-20 23:32:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2002/09/20 21:36:11 jlam Exp $
|
2001-11-06 05:09:25 +01:00
|
|
|
|
2001-12-03 09:09:05 +01:00
|
|
|
PKGNAME= unixodbc-ODBCConfig-${ODBC_BASE_VERS}
|
2002-03-13 18:36:35 +01:00
|
|
|
PKGREVISION= 1
|
2001-11-06 05:09:25 +01:00
|
|
|
COMMENT= GUI tool for unixODBC driver configuration
|
|
|
|
|
2002-09-20 23:32:05 +02:00
|
|
|
USE_BUILDLINK2= YES
|
|
|
|
USE_X11= YES
|
2001-11-06 05:09:25 +01:00
|
|
|
|
|
|
|
.include "../../databases/unixodbc/Makefile.common"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-gui
|
2002-09-20 23:32:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-qt-dir="${QTDIR}"
|
2001-11-06 05:09:25 +01:00
|
|
|
CONFIGURE_ARGS+= --with-extra-includes="${_EXTRA_INCLUDES}"
|
|
|
|
CONFIGURE_ARGS+= --with-extra-libs="${_EXTRA_LIBS}"
|
|
|
|
CONFIGURE_ARGS+= --disable-rpath
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= UIC="${QTDIR}/bin/uic"
|
|
|
|
CONFIGURE_ENV+= USER_LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ENV+= ac_cv_have_x="${_AC_CV_HAVE_X}"
|
|
|
|
CONFIGURE_ENV+= ac_cv_have_qt="${_AC_CV_HAVE_QT}"
|
|
|
|
|
|
|
|
MAKE_FLAGS+= ODBCConfig_DEPENDENCIES=""
|
|
|
|
|
2002-09-20 23:32:05 +02:00
|
|
|
_EXTRA_INCLUDES?= ${LOCALBASE}/include:${X11BASE}/include
|
|
|
|
_EXTRA_LIBS?= ${LOCALBASE}/lib:${X11BASE}/lib
|
2001-11-06 05:09:25 +01:00
|
|
|
_AC_CV_HAVE_X?= have_x=yes \
|
2002-09-20 23:32:05 +02:00
|
|
|
kde_x_includes=${LOCALBASE}/include \
|
|
|
|
ac_x_libraries=${LOCALBASE}/lib
|
2001-11-06 05:09:25 +01:00
|
|
|
_AC_CV_HAVE_QT?= have_qt=yes \
|
2002-09-20 23:32:05 +02:00
|
|
|
ac_qt_includes=${QTDIR}/include \
|
|
|
|
ac_qt_libraries=${QTDIR}/lib
|
2001-11-06 05:09:25 +01:00
|
|
|
|
|
|
|
post-patch: fix-driver-installation
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/ODBCConfig; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
|
|
${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ODBCConfig/ODBCConfig ${PREFIX}/bin
|
|
|
|
|
2002-09-20 23:32:05 +02:00
|
|
|
.include "../../databases/unixodbc/buildlink2.mk"
|
|
|
|
.include "../../x11/qt2-libs/buildlink2.mk"
|
|
|
|
|
2001-11-06 05:09:25 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|