forked from Lainports/freebsd-ports
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libopensync
|
|
PORTVERSION= 0.39
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.opensync.org/download/releases/${PORTVERSION}/ \
|
|
LOCAL/danilo
|
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
|
COMMENT= PIM data synchronization framework
|
|
|
|
BUILD_DEPENDS= swig1.3:${PORTSDIR}/devel/swig13
|
|
LIB_DEPENDS= libexslt.so:${PORTSDIR}/textproc/libxslt
|
|
|
|
CONFLICTS= libopensync-0.22*
|
|
|
|
USE_SQLITE= 3
|
|
USES= cmake pkgconfig python tar:bzip2
|
|
CMAKE_ARGS+= -Wno-dev
|
|
USE_GNOME= glib20 libxml2
|
|
USE_LDCONFIG= yes
|
|
CMAKE_ARGS+= -DPYTHON_INCLUDE_PATH:PATH=${PYTHON_INCLUDEDIR}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
SWIG_VER= $$(cd ${PORTSDIR}/devel/swig13 && ${MAKE} -V PORTVERSION)
|
|
SWIG_DATADIR= $$(cd ${PORTSDIR}/devel/swig13 && ${MAKE} -V DATADIR)
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|\$${LIBDATA_INSTALL_DIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|" \
|
|
-e "s|FIND_PACKAGE( SWIG|FIND_PACKAGE( SWIG REQUIRED|" \
|
|
-e "/FIND_PACKAGE( Check )/d" ${WRKSRC}/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e "s|/usr/local/share/swig1.3|${SWIG_DATADIR}/${SWIG_VER}|g" \
|
|
${WRKSRC}/cmake/modules/FindSWIG.cmake
|
|
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
|
|
${WRKSRC}/opensync/common/opensync_list.c
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/docs/OpenSync-WhitePaper.pdf ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|