blob: 9091c97d6a661a7fadd3cbd436892b8d7d087b3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# 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
COMMENT= An ODBC 3.x driver manager, for universal data source access
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>
|