1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

Add PostgreSQL support. Make MySQL support optional, but on by default.

Specifying WITHOUT_MYSQL removes MySQL support.  WITH_POSTGRESQL speaks
for itself.  Port revision bump.
This commit is contained in:
Sean Chittenden 2003-11-01 00:48:30 +00:00
parent 67b18ab90c
commit ad38f1c6bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92763
2 changed files with 28 additions and 7 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= hk_classes
PORTVERSION= 0.6.1
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hk-classes
@ -15,13 +16,30 @@ COMMENT= "C++ Library for rapid development of database applications"
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
.if !defined(WITHOUT_MYSQL) || defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
-with-mysql-dir=${LOCALBASE} \
--with-mysql-incdir=${LOCALBASE}/include/mysql
CONFIGURE_ARGS+= -with-mysql-dir=${LOCALBASE} \
--with-mysql-incdir=${LOCALBASE}/include/mysql
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql"
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_POSTGRESQL)
POSTGRESQL_PORT?= databases/postgresql7
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
CONFIGURE_ARGS+= --with-postgres-incdir=${LOCALBASE}/include/ \
--with-postgres-libdir=${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
PLIST_SUB+= POSTGRESQL=""
.else
PLIST_SUB+= POSTGRESQL="@comment "
.endif
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes

View File

@ -37,9 +37,12 @@ include/hk_classes/hk_drivermanager.h
include/hk_classes/hk_colour.h
include/hk_classes/hk_font.h
include/hk_classes/hk_interpreter.h
lib/hk_classes/drivers/libhk_mysqldriver.so.3
lib/hk_classes/drivers/libhk_mysqldriver.so
lib/hk_classes/drivers/libhk_mysqldriver.la
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so.3
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.la
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so.0
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.la
lib/hk_classes/libhk_classes.so.5
lib/hk_classes/libhk_classes.la
lib/hk_classes/libhk_classes.so