2013-03-21 18:43:46 +01:00
|
|
|
# Created by: ijliao
|
2001-07-23 09:51:29 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dbconnect
|
2005-03-01 08:23:07 +01:00
|
|
|
PORTVERSION= 0.3.5
|
2014-05-08 01:45:37 +02:00
|
|
|
PORTREVISION= 5
|
2001-07-23 09:51:29 +02:00
|
|
|
CATEGORIES= databases
|
2009-08-22 02:18:43 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/DBConnect%20API%200.3%20Source%20Code/DBConnect%20API%20${PORTVERSION}
|
2001-07-23 09:51:29 +02:00
|
|
|
|
2014-01-16 16:43:27 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Use C++ object API to allow applications to connect to databases
|
2001-07-23 09:51:29 +02:00
|
|
|
|
2014-05-08 01:45:37 +02:00
|
|
|
USES= gmake dos2unix
|
|
|
|
|
2001-07-23 09:51:29 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= autoconf
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-07-23 09:51:29 +02:00
|
|
|
|
2004-03-07 10:05:13 +01:00
|
|
|
CXXFLAGS+= ${PTHREAD_CFLAGS} -fPIC -DFREEBSD
|
|
|
|
LDFLAG+= ${PTHREAD_LIBS}
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
2004-03-07 10:05:13 +01:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2004-03-07 10:05:13 +01:00
|
|
|
|
2005-03-01 08:23:07 +01:00
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2003-08-28 14:57:52 +02:00
|
|
|
USE_MYSQL= YES
|
2004-03-07 10:05:13 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql=yes \
|
|
|
|
--with-mysql_include=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysql_lib=${LOCALBASE}/lib/mysql
|
2001-07-23 09:51:29 +02:00
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2014-05-08 01:45:37 +02:00
|
|
|
USES+= pgsql
|
2004-03-07 10:05:13 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-pgsql=yes \
|
|
|
|
--with-pgsql_include=${LOCALBASE}/include \
|
|
|
|
--with-pgsql_lib=${LOCALBASE}/lib
|
2003-01-02 05:00:22 +01:00
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-03-07 10:05:13 +01:00
|
|
|
@${RM} -f ${WRKSRC}/include/dbconn/README
|
2013-12-17 12:07:25 +01:00
|
|
|
@${REINPLACE_CMD} 's/gcc/${CC}/' ${WRKSRC}/src/dbconnect/Makefile.in
|
2013-10-03 14:02:49 +02:00
|
|
|
@${REINPLACE_CMD} 's/gcc/${CC}/' ${WRKSRC}/src/driver_*/Makefile.in
|
2004-03-07 10:05:13 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC}; \
|
2014-05-08 01:45:37 +02:00
|
|
|
${CP} -r include/dbconn ${STAGEDIR}${PREFIX}/include/; \
|
2004-03-07 10:05:13 +01:00
|
|
|
for lib in `find lib -type l -name *.so`; do \
|
|
|
|
libpath=`${DIRNAME} $${lib}`; \
|
|
|
|
libname=`${BASENAME} $${lib}|${SED} -e 's/\.so$$//'`; \
|
2014-05-08 01:45:37 +02:00
|
|
|
${INSTALL_LIB} $${libpath}/$${libname}-${PORTVERSION}.so \
|
|
|
|
${STAGEDIR}${PREFIX}/lib; \
|
|
|
|
${LN} -fs $${libname}-${PORTVERSION}.so \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/$${libname}.so; \
|
2004-03-07 10:05:13 +01:00
|
|
|
done
|
2003-01-02 05:00:22 +01:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.include <bsd.port.mk>
|