freebsd-ports/databases/dbconnect/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

69 lines
1.6 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: dbconnect
# Date created: Jul 23, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= dbconnect
PORTVERSION= 0.3.5
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= sem@FreeBSD.org
COMMENT= Use C++ object API to allow applications to connect to databases
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf:259
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB= yes
CXXFLAGS+= ${PTHREAD_CFLAGS} -fPIC -DFREEBSD
LDFLAG+= ${PTHREAD_LIBS}
OPTIONS= MYSQL "With MySQL driver" on \
PGSQL "With PostgreSQL driver" off
.include <bsd.port.pre.mk>
PLIST_SUB+= PORTVERSION=${PORTVERSION}
.if !defined(WITHOUT_MYSQL)
USE_MYSQL= YES
CONFIGURE_ARGS+= --enable-mysql=yes \
--with-mysql_include=${LOCALBASE}/include/mysql \
--with-mysql_lib=${LOCALBASE}/lib/mysql
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_PGSQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --enable-pgsql=yes \
--with-pgsql_include=${LOCALBASE}/include \
--with-pgsql_lib=${LOCALBASE}/lib
PLIST_SUB+= PGSQL=""
.else
PLIST_SUB+= PGSQL="@comment "
.endif
post-patch:
@${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
.include <bsd.port.post.mk>