summaryrefslogtreecommitdiffstats
path: root/databases/mdbtools/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-04-15 16:26:37 +0000
committermarcus <marcus@FreeBSD.org>2003-04-15 16:26:37 +0000
commitdc3a8662214b45e5d2044aaa7d810bee863776b9 (patch)
tree1b0402b933513aca59e364d18b6c1b13c2f44ef4 /databases/mdbtools/Makefile
parentdbefda9789b67ff0b4420bdd8c3f68129ff4e45e (diff)
downloadFreeBSD-ports-dc3a8662214b45e5d2044aaa7d810bee863776b9.zip
FreeBSD-ports-dc3a8662214b45e5d2044aaa7d810bee863776b9.tar.gz
Really fix this port. Make it depend on libgnomeui if present, and
conditionalize the plist accordingly. According to the mdbtools homepage, this port requires bison, so set things accordingly. Also, correct some gcc-3.x-isms that prevented proper GNOME compilation on -STABLE.
Diffstat (limited to 'databases/mdbtools/Makefile')
-rw-r--r--databases/mdbtools/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/databases/mdbtools/Makefile b/databases/mdbtools/Makefile
index 4fd2f16..e416995 100644
--- a/databases/mdbtools/Makefile
+++ b/databases/mdbtools/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mdbtools
PORTVERSION= 0.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -26,8 +26,19 @@ INSTALLS_SHLIB= yes
DOCS= AUTHORS ChangeLog HACKING NEWS README TODO
MAN1= mdb-ver.1 mdb-tables.1 mdb-schema.1 mdb-sql.1 mdb-export.1
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GNOME) || exists(${X11BASE}/libdata/pkgconfig/libgnomeui-2.0.pc)
+USE_X_PREFIX= yes
+USE_GNOME+= gnomeprefix gnomehack libgnomeui
+PLIST_SUB+= GNOME:=""
+PKGNAMESUFFIX= -gnome
+.else
+PLIST_SUB+= GNOME:="@comment "
+.endif
+
post-patch:
- ${REINPLACE_CMD} -e 's|$$(srcdir)/$$<|$$(srcdir)/$$>|g' ${WRKSRC}/doc/Makefile.in
+ @${REINPLACE_CMD} -e 's|$$(srcdir)/$$<|$$(srcdir)/$$>|g' ${WRKSRC}/doc/Makefile.in
.if !defined(NOPORTDOCS)
post-install:
@@ -37,4 +48,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud