2013-03-08 12:32:11 +01:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
2001-04-27 09:40:58 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mdbtools
|
2013-11-10 20:18:42 +01:00
|
|
|
PORTVERSION= 0.7.1
|
2014-05-06 09:32:18 +02:00
|
|
|
PORTREVISION= 2
|
2001-04-27 09:40:58 +02:00
|
|
|
CATEGORIES= databases
|
2013-11-10 20:18:42 +01:00
|
|
|
MASTER_SITES= https://github.com/brianb/mdbtools/archive/
|
|
|
|
DISTNAME= ${PORTVERSION}
|
2001-04-27 09:40:58 +02:00
|
|
|
|
2013-11-10 20:18:42 +01:00
|
|
|
MAINTAINER= rhurlin@gwdg.de
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Utilities and libraries to export data from MS Access databases (.mdb)
|
2001-04-27 09:40:58 +02:00
|
|
|
|
2013-11-10 20:18:42 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2007-01-08 01:21:57 +01:00
|
|
|
# To build man-pages
|
2013-11-10 20:18:42 +01:00
|
|
|
BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk \
|
|
|
|
txt2man:${PORTSDIR}/textproc/txt2man
|
2014-05-06 09:32:18 +02:00
|
|
|
LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
|
2003-04-08 22:42:50 +02:00
|
|
|
|
2013-11-10 20:18:42 +01:00
|
|
|
USES= bison pkgconfig iconv
|
|
|
|
USE_AUTOTOOLS= libtool autoconf automake
|
|
|
|
USE_LDCONFIG= yes
|
2003-04-15 07:34:55 +02:00
|
|
|
USE_GNOME= glib20
|
2006-10-14 10:54:54 +02:00
|
|
|
WANT_GNOME= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-11-10 20:18:42 +01:00
|
|
|
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
|
2014-05-06 09:32:18 +02:00
|
|
|
--with-unixodbc=${LOCALBASE}
|
2001-04-27 09:40:58 +02:00
|
|
|
|
2003-04-08 22:42:50 +02:00
|
|
|
DOCS= AUTHORS ChangeLog HACKING NEWS README TODO
|
2001-04-27 09:40:58 +02:00
|
|
|
|
2013-11-10 20:18:42 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${HAVE_GNOME:Mlibgnomeui}!=""
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2013-03-08 12:32:11 +01:00
|
|
|
USES+= pathfix
|
2013-11-10 20:18:42 +01:00
|
|
|
USE_GNOME+= gnomeprefix libgnomeui gconf2 intltool
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fpic
|
2003-04-15 18:26:37 +02:00
|
|
|
.endif
|
|
|
|
|
2002-10-22 19:36:56 +02:00
|
|
|
post-patch:
|
2013-11-10 20:18:42 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/Makefile.am
|
2006-10-14 10:54:54 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$(srcdir)/$$<|$$(srcdir)/$$>|g' \
|
2013-11-10 20:18:42 +01:00
|
|
|
${WRKSRC}/doc/Makefile.am
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${AUTORECONF} -if
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|^install-man:.*|install-man: install-man1|' \
|
2006-10-14 10:54:54 +02:00
|
|
|
${WRKSRC}/doc/Makefile.in
|
2002-10-22 19:36:56 +02:00
|
|
|
|
2001-04-27 09:40:58 +02:00
|
|
|
post-install:
|
2013-11-10 20:18:42 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2001-04-27 09:40:58 +02:00
|
|
|
|
2003-04-15 18:26:37 +02:00
|
|
|
.include <bsd.port.post.mk>
|