mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
0c2c04b55b
Patches removed: patch-git_c3abbdda, patch-gcc5-support (Integrated upstream) patch-scripts__CMakeLists.txt (Builds without it) While here, set LICENSE and simplify BUILD_DEPENDS. Changes: https://github.com/openbabel/openbabel/releases PR: 219382 Submitted by: Yuri Victorovich <yuri@rawbw.com> Approved by: garga (mentor) Differential Revision: https://reviews.freebsd.org/D10837
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openbabel
|
|
PORTVERSION= 2.4.1
|
|
CATEGORIES= science
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Chemistry file translation program
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= eigen>=0:math/eigen3
|
|
|
|
BROKEN_powerpc64= Does not build: relocation truncated to fit: R_PPC64_TOC16_DS
|
|
|
|
CONFLICTS_INSTALL= babel-*
|
|
|
|
USE_CXXSTD= gnu++98
|
|
USE_GNOME= libxml2
|
|
USES= cmake:outsource
|
|
CMAKE_ARGS= -DBUILD_GUI=off
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
OPTIONS_DEFINE= CAIRO PYTHON
|
|
OPTIONS_DEFAULT= PYTHON
|
|
OPTIONS_SUB= yes
|
|
|
|
CAIRO_DESC= PNG support via cairo library
|
|
CAIRO_LIB_DEPENDS= libcairo.so:graphics/cairo
|
|
CAIRO_USES= pkgconfig
|
|
|
|
PYTHON_USES= python
|
|
PYTHON_CMAKE_ON= -DPYTHON_BINDINGS=on
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '/pkgconfig/s,$${LIB_INSTALL_DIR},libdata,' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
${REINPLACE_CMD} -e 's,man/man1,../man/man1,' \
|
|
${WRKSRC}/doc/CMakeLists.txt
|
|
|
|
post-patch-CAIRO-off:
|
|
${REINPLACE_CMD} -e '/find_package(Cairo)/d' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|