aboutsummaryrefslogtreecommitdiff
path: root/deskutils/libopensync-plugin-python-devel
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-06-08 22:30:55 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-06-08 22:30:55 +0000
commit81100672d4de2795c4284cf568383d48955cbdcb (patch)
tree47e3d403298c2fd50b0ec056f62df5c31925decb /deskutils/libopensync-plugin-python-devel
parent6d138c2d46f8ea88c939a76298099dbcf07491af (diff)
downloadports-81100672d4de2795c4284cf568383d48955cbdcb.tar.gz
ports-81100672d4de2795c4284cf568383d48955cbdcb.zip
Notes
Diffstat (limited to 'deskutils/libopensync-plugin-python-devel')
-rw-r--r--deskutils/libopensync-plugin-python-devel/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/deskutils/libopensync-plugin-python-devel/Makefile b/deskutils/libopensync-plugin-python-devel/Makefile
index 54a2817cd1de..9aa66f56ef27 100644
--- a/deskutils/libopensync-plugin-python-devel/Makefile
+++ b/deskutils/libopensync-plugin-python-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libopensync-plugin-python
PORTVERSION= 0.36
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= deskutils
MASTER_SITES= http://www.opensync.org/download/releases/${PORTVERSION}/
PKGNAMESUFFIX= -devel
@@ -21,10 +21,24 @@ CONFLICTS= libopensync-plugin-python-0.2*
USE_BZIP2= yes
USE_CMAKE= yes
-CMAKE_ARGS+= -Wno-dev
+USE_PYTHON= yes
+USE_GNOME= pkgconfig
+CMAKE_ARGS+= -Wno-dev \
+ -DPYTHON_INCLUDE_PATH:PATH=${PYTHON_INCLUDEDIR} \
+ -DPYTHON_LIBRARY:PATH=${PYTHON_LIBDIR}/config/lib${PYTHON_VERSION}.so
+
+# This hack is meant to respect PREFIX, and should be
+# enhanced to use pkg-config or cmake.
+OS_PLUGIN_DIR= ${PREFIX}/lib/opensync-1.0/plugins
+OS_PYPLUGIN_DIR=${PREFIX}/lib/opensync-1.0/python-plugins
pre-patch:
@${REINPLACE_CMD} -e "s|MESSAGE|# MESSAGE|" \
${WRKSRC}/cmake/modules/MacroEnsureOutOfSourceBuild.cmake
+do-install:
+ ${MKDIR} -p ${OS_PLUGIN_DIR} ${OS_PYPLUGIN_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/python-module.so ${OS_PLUGIN_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/sample.py ${OS_PYPLUGIN_DIR}
+
.include <bsd.port.mk>