1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00
freebsd-ports/databases/libiodbc/Makefile
Ying-Chieh Liao 944f5449af - Enable --with-pthreads option.
- Add WITH_GUI support(not default).

PR:		36129
Submitted by:	Hidekazu Kuroki <hidekazu@pc88.gr.jp>
Approved by:	maintainer timeout
2002-10-10 07:20:24 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: libiodbc
# Date created: 24 Mar 2000
# Whom: erikhb@bgnett.no
#
# $FreeBSD$
#
# Note: The location of ${INIDIR} and the installed name of the "odbctest"
# binary were chosen such that this port does not conflict with
# databases/unixODBC.
PORTNAME= libiodbc
PORTVERSION= 3.0.5
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.iodbc.org/dist/
MAINTAINER= ebakke@trolltech.com
USE_LIBTOOL= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
INIDIR= ${PREFIX}/etc/${PORTNAME}
CONFIGURE_ENV= LDFLAGS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --with-iodbc-inidir=${INIDIR} --with-pthread
.if !defined(WITHOUT_GUI)
USE_GNOMENG= yes
USE_GNOME= gtk12
PLIST_SUB+= GUI=""
.else
CONFIGURE_ARGS+= --disable-gui
PLIST_SUB+= GUI="@comment "
.endif
post-install:
@ ${MKDIR} ${PREFIX}/bin && ${INSTALL_PROGRAM} \
${WRKSRC}/samples/odbctest ${PREFIX}/bin/iodbc-odbctest
@ ${MKDIR} ${INIDIR} && \
${INSTALL_DATA} ${WRKSRC}/etc/odbc*.ini.sample ${INIDIR}
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
.for docfile in AUTHORS COPYING ChangeLog NEWS README
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>