aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2003-10-29 11:10:58 +0800
committerbland <bland@FreeBSD.org>2003-10-29 11:10:58 +0800
commit1beaea08ea236a92774d29ddf4144f693d4d612a (patch)
treea12a1586b6b916fc88426bf3e97a38de23894344 /deskutils
parente8b566b79987f77374d4eb0f6935cd1d95ebca38 (diff)
downloadfreebsd-ports-gnome-1beaea08ea236a92774d29ddf4144f693d4d612a.tar.gz
freebsd-ports-gnome-1beaea08ea236a92774d29ddf4144f693d4d612a.tar.zst
freebsd-ports-gnome-1beaea08ea236a92774d29ddf4144f693d4d612a.zip
- Make Python bindings build optional.
- Make PostgreSQL plugin build optional (off by default).
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/libmrproject/Makefile27
-rw-r--r--deskutils/libmrproject/pkg-plist6
2 files changed, 25 insertions, 8 deletions
diff --git a/deskutils/libmrproject/Makefile b/deskutils/libmrproject/Makefile
index bf27e0c5d31d..5b44abc8b1c6 100644
--- a/deskutils/libmrproject/Makefile
+++ b/deskutils/libmrproject/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libmrproject
PORTVERSION= 0.10
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= deskutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.10
@@ -16,12 +16,8 @@ DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Library backend for MrProject project management application
-BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
-
USE_BZIP2= yes
USE_X_PREFIX= yes
-USE_PYTHON= yes
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack gnometarget libgsf libxslt
INSTALLS_SHLIB= yes
@@ -30,4 +26,25 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --enable-static
+.if !defined(WITHOUT_PYTHON)
+USE_PYTHON= yes
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
+CONFIGURE_ARGS+= --enable-python
+PLIST_SUB+= PYTHON:=""
+.else
+CONFIGURE_ARGS+= --disable-python
+PLIST_SUB+= PYTHON:="@comment "
+.endif
+
+.if defined(WITH_POSTGRESQL)
+POSTGRESQL_PORT?= databases/postgresql7
+LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
+CONFIGURE_ARGS+= --enable-postgres
+PLIST_SUB+= POSTGRESQL:=""
+.else
+CONFIGURE_ARGS+= --disable-postgres
+PLIST_SUB+= POSTGRESQL:="@comment "
+.endif
+
.include <bsd.port.mk>
diff --git a/deskutils/libmrproject/pkg-plist b/deskutils/libmrproject/pkg-plist
index ba33011c68ac..00bfe91c04e5 100644
--- a/deskutils/libmrproject/pkg-plist
+++ b/deskutils/libmrproject/pkg-plist
@@ -20,7 +20,7 @@ lib/libmrproject.so.0
lib/mrproject/file-modules/libmrp-xml.so
lib/mrproject/file-modules/libmrp-xsl.so
lib/mrproject/storage-modules/libstorage-mrproject-1.so
-lib/mrproject/storage-modules/libstorage-sql.so
+%%POSTGRESQL:%%lib/mrproject/storage-modules/libstorage-sql.so
libdata/pkgconfig/libmrproject.pc
%%DOCSDIR%%/MrpAssignment.html
%%DOCSDIR%%/MrpCalendar.html
@@ -90,5 +90,5 @@ share/locale/zh_CN/LC_MESSAGES/libmrproject.mo
@dirrm lib/mrproject
@dirrm include/mrproject-1.0/mrproject
@dirrm include/mrproject-1.0
-@cwd %%LOCALBASE%%
-%%PYTHON_SITELIBDIR%%/mrprojectmodule.so
+%%PYTHON:%%@cwd %%LOCALBASE%%
+%%PYTHON:%%%%PYTHON_SITELIBDIR%%/mrprojectmodule.so