summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2008-02-07 06:39:02 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2008-02-07 06:39:02 +0800
commitcf365293357796236193264f1992d92ba7397f09 (patch)
tree1872244b6ad68fd66f870c55fbb1cc68fa1594e3
parent913b189b16623e9b5c15da4a01176c08918c4134 (diff)
downloadmarcuscom-ports-cf365293357796236193264f1992d92ba7397f09.tar
marcuscom-ports-cf365293357796236193264f1992d92ba7397f09.tar.gz
marcuscom-ports-cf365293357796236193264f1992d92ba7397f09.tar.bz2
marcuscom-ports-cf365293357796236193264f1992d92ba7397f09.tar.lz
marcuscom-ports-cf365293357796236193264f1992d92ba7397f09.tar.xz
marcuscom-ports-cf365293357796236193264f1992d92ba7397f09.tar.zst
marcuscom-ports-cf365293357796236193264f1992d92ba7397f09.zip
Add option for self hosting the database.
Default is client only mode. While here fix a nit in the plist and sprinkle some %%DATADIR%%'s around. Idea supplied by: marcus. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10366 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--databases/glom/Makefile19
-rw-r--r--databases/glom/pkg-plist26
2 files changed, 27 insertions, 18 deletions
diff --git a/databases/glom/Makefile b/databases/glom/Makefile
index 2c189ac1b..bd0f9f068 100644
--- a/databases/glom/Makefile
+++ b/databases/glom/Makefile
@@ -3,7 +3,7 @@
# Whom: Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
-# $MCom$
+# $MCom: ports/databases/glom/Makefile,v 1.13 2008/02/05 13:36:03 kwm Exp $
#
PORTNAME= glom
@@ -20,11 +20,9 @@ LIB_DEPENDS= bakery-2.4:${PORTSDIR}/x11-toolkits/bakery \
gtksourceviewmm-1.0.1:${PORTSDIR}/x11-toolkits/libgtksourceviewmm \
goocanvas.3:${PORTSDIR}/graphics/goocanvas
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
- ${LOCALBASE}/libdata/pkgconfig/libgda-postgres-3.0.pc:${PORTSDIR}/databases/libgda3-postgresql \
- postmaster:${PORTSDIR}/databases/postgresql81-server
+ ${LOCALBASE}/libdata/pkgconfig/libgda-postgres-3.0.pc:${PORTSDIR}/databases/libgda3-postgresql
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
- ${LOCALBASE}/libdata/pkgconfig/libgda-postgres-3.0.pc:${PORTSDIR}/databases/libgda3-postgresql \
- postmaster:${PORTSDIR}/databases/postgresql81-server
+ ${LOCALBASE}/libdata/pkgconfig/libgda-postgres-3.0.pc:${PORTSDIR}/databases/libgda3-postgresql
USE_BZIP2= yes
USE_PYTHON= yes
@@ -33,14 +31,25 @@ USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gnomedocutils gnomehack gnomeprefix pygnomeextras
USE_LDCONFIG= yes
+USE_PGSQL= yes
INSTALLS_OMF= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-postgres-utils=${LOCALBASE}/bin
INSTALLS_ICONS= yes
+OPTIONS= SELF_HOSTING "Host the database locally" off
+
.include <bsd.port.pre.mk>
+.if defined(WITH_SELF_HOSTING)
+# Note: USE_PGSQL has already been set above.
+BUILD_DEPENDS+= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
+RUN_DEPENDS+= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
+.else
+CONFIGURE_ARGS+=--enable-client-only
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-update-mime-database|true|g' \
${WRKSRC}/Makefile.in
diff --git a/databases/glom/pkg-plist b/databases/glom/pkg-plist
index cc61827e3..1bc0fd6e2 100644
--- a/databases/glom/pkg-plist
+++ b/databases/glom/pkg-plist
@@ -7,14 +7,14 @@ lib/libglom.so.0
%%PYTHON_SITELIBDIR%%/glom.la
%%PYTHON_SITELIBDIR%%/glom.so
share/applications/glom.desktop
-%%DATADIR%%/examples/example_film_manager.glom
-%%DATADIR%%/examples/example_music_collection.glom
-%%DATADIR%%/examples/example_project_manager.glom
-%%DATADIR%%/examples/example_smallbusiness.glom
-share/glom/glade/glom.glade
-share/glom/glom_document.dtd
-share/glom/xslt/print_details_to_html.xsl
-share/glom/xslt/print_report_to_html.xsl
+%%DATADIR%%/doc/examples/example_film_manager.glom
+%%DATADIR%%/doc/examples/example_music_collection.glom
+%%DATADIR%%/doc/examples/example_project_manager.glom
+%%DATADIR%%/doc/examples/example_smallbusiness.glom
+%%DATADIR%%/glade/glom.glade
+%%DATADIR%%/glom_document.dtd
+%%DATADIR%%/xslt/print_details_to_html.xsl
+%%DATADIR%%/xslt/print_report_to_html.xsl
share/gnome/help/glom/C/figures/glom_design_fields.png
share/gnome/help/glom/C/figures/glom_design_fields_dialog_calculated.png
share/gnome/help/glom/C/figures/start.png
@@ -112,11 +112,11 @@ share/omf/glom/glom-sv.omf
@dirrm share/gnome/help/glom/C/figures
@dirrm share/gnome/help/glom/C
@dirrm share/gnome/help/glom
-@dirrm share/glom/xslt
-@dirrm share/glom/glade
-@dirrm share/glom/doc/examples
-@dirrm share/glom/doc
-@dirrm share/glom
+@dirrm %%DATADIR%%/xslt
+@dirrm %%DATADIR%%/glade
+@dirrm %%DATADIR%%/doc/examples
+@dirrm %%DATADIR%%/doc
+@dirrm %%DATADIR%%
@dirrmtry share/locale/rw/LC_MESSAGES
@dirrmtry share/locale/rw
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime