summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/libcarddav/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/dependencies/libcarddav/Makefile')
-rw-r--r--freebsd/dependencies/libcarddav/Makefile29
1 files changed, 12 insertions, 17 deletions
diff --git a/freebsd/dependencies/libcarddav/Makefile b/freebsd/dependencies/libcarddav/Makefile
index c77d7ca65..caed929ac 100644
--- a/freebsd/dependencies/libcarddav/Makefile
+++ b/freebsd/dependencies/libcarddav/Makefile
@@ -16,22 +16,17 @@ DIST_SUBDIR= TDE/dependencies
PREFIX= ${LOCALBASE}
-do-configure:
- cd "${WRKSRC}" && \
- autoreconf -vi && \
- rm -fr .build && mkdir .build && cd .build && \
- ${WRKSRC}/configure \
- --prefix=${PREFIX} \
- --mandir=${PREFIX}/share/man
-
-post-configure:
- @${FIND} ${WRKSRC} -name "Makefile" -type f | ${XARGS} ${REINPLACE_CMD} -e \
- 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
-
-do-build:
- ${MAKE_CMD} -C "${WRKSRC}/.build"
-
-do-install:
- ${MAKE_CMD} -C "${WRKSRC}/.build" DESTDIR=${STAGEDIR} install
+post-patch: tde-pathfix
+
+do-configure: tde-cmake-prepare
+ ${TDE_CMAKE_CONFIGURE} \
+ -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
+ -DPKGCONFIG_INSTALL_DIR="${PREFIX}/libdata/pkgconfig"
+ -DBUILD_ALL="ON" \
+ -DWITH_ALL_OPTIONS="ON"
+
+do-build: tde-cmake-build
+
+do-install: tde-cmake-install
.include <bsd.port.mk>