2001-07-23 07:51:29 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: dbconnect
|
|
|
|
# Date created: Jul 23, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dbconnect
|
2005-03-01 07:23:07 +00:00
|
|
|
PORTVERSION= 0.3.5
|
2007-09-30 04:47:36 +00:00
|
|
|
PORTREVISION= 1
|
2001-07-23 07:51:29 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2004-07-07 19:20:02 +00:00
|
|
|
MAINTAINER= sem@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= Use C++ object API to allow applications to connect to databases
|
2001-07-23 07:51:29 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2004-03-07 09:05:13 +00:00
|
|
|
USE_GMAKE= yes
|
2008-08-20 00:57:32 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:262
|
- 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 17:56:05 +00:00
|
|
|
USE_LDCONFIG= yes
|
2001-07-23 07:51:29 +00:00
|
|
|
|
2004-03-07 09:05:13 +00:00
|
|
|
CXXFLAGS+= ${PTHREAD_CFLAGS} -fPIC -DFREEBSD
|
|
|
|
LDFLAG+= ${PTHREAD_LIBS}
|
|
|
|
|
|
|
|
OPTIONS= MYSQL "With MySQL driver" on \
|
|
|
|
PGSQL "With PostgreSQL driver" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-01 07:23:07 +00:00
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
|
|
|
2004-03-07 09:05:13 +00:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
2003-08-28 12:57:52 +00:00
|
|
|
USE_MYSQL= YES
|
2004-03-07 09:05:13 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql=yes \
|
|
|
|
--with-mysql_include=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysql_lib=${LOCALBASE}/lib/mysql
|
2001-07-23 07:51:29 +00:00
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-01-02 04:00:22 +00:00
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 00:35:55 +00:00
|
|
|
USE_PGSQL= yes
|
2004-03-07 09:05:13 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-pgsql=yes \
|
|
|
|
--with-pgsql_include=${LOCALBASE}/include \
|
|
|
|
--with-pgsql_lib=${LOCALBASE}/lib
|
2003-01-02 04:00:22 +00:00
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-03-07 09:05:13 +00:00
|
|
|
@${RM} -f ${WRKSRC}/include/dbconn/README
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
${CP} -r include/dbconn ${PREFIX}/include/; \
|
|
|
|
for lib in `find lib -type l -name *.so`; do \
|
|
|
|
libpath=`${DIRNAME} $${lib}`; \
|
|
|
|
libname=`${BASENAME} $${lib}|${SED} -e 's/\.so$$//'`; \
|
|
|
|
${INSTALL_DATA} $${libpath}/$${libname}-${PORTVERSION}.so \
|
|
|
|
${PREFIX}/lib; \
|
|
|
|
(cd ${PREFIX}/lib; ${LN} -fs $${libname}-${PORTVERSION}.so \
|
|
|
|
$${libname}.so); \
|
|
|
|
done
|
2003-01-02 04:00:22 +00:00
|
|
|
|
2004-03-07 09:05:13 +00:00
|
|
|
.include <bsd.port.post.mk>
|