Fix build with custom LOCALBASE

Submitted by:	Sahil Tandon
Reported by:	QATty
Approved by:	portmgr (itetcu@)
No cookie for:	maintainer
This commit is contained in:
Ion-Mihai Tetcu 2009-06-10 07:59:53 +00:00
parent 2c8f7c21ee
commit 0b7cd1cd84
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235536
2 changed files with 12 additions and 4 deletions

View file

@ -26,12 +26,16 @@ OPTIONS= MYSQL "Enable MySQL support" on \
.if !defined(WITHOUT_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
CONFIGURE_ARGS+=--with-mysql \
--with-mysql-include=${LOCALBASE}/include/mysql \
--with-mysql-lib=${LOCALBASE}/lib/mysql
.endif
.if defined(WITH_POSTGRESQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-pgsql
CONFIGURE_ARGS+=--with-pgsql \
--with-pgsql-include=${LOCALBASE}/include
--with-pgsql-lib=${LOCALBASE}/lib
.endif
.if !defined(NOPORTDOCS)

View file

@ -8,18 +8,22 @@
PORTNAME= dbow
PORTVERSION= 0.7
CATEGORIES= databases devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dbow
MASTER_SITES= SF
MAINTAINER= dtynan@kalopa.com
COMMENT= DBOW is a database object generator for C, Perl, PHP, etc
MAKE_ENV+= MYSQL_INC=${LOCALBASE}/include/mysql \
MYSQL_LIB=${LOCALBASE}/lib/mysql
USE_MYSQL= yes
MAN1= dbow.1
post-patch:
@${REINPLACE_CMD} -e "s|CFLAGS=|CFLAGS+=|g" \
-e "s|^MYSQL_INC=|MYSQL_INC?=|" \
-e "s|^MYSQL_LIB=|MYSQL_LIB?=|" \
${WRKSRC}/example/Makefile ${WRKSRC}/lib/Makefile \
${WRKSRC}/src/Makefile