Changeset View
Changeset View
Standalone View
Standalone View
head/textproc/sigil/Makefile
# Created by: Jonathan Chen <jonc@chen.org.nz> | # Created by: Jonathan Chen <jonc@chen.org.nz> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= sigil | PORTNAME= sigil | ||||
PORTVERSION= 0.9.7 | PORTVERSION= 0.9.7 | ||||
PORTREVISION= 2 | PORTREVISION= 3 | ||||
CATEGORIES= textproc | CATEGORIES= textproc | ||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= ports@FreeBSD.org | ||||
COMMENT= WYSIWYG ePub editor | COMMENT= WYSIWYG ePub editor | ||||
LICENSE= GPLv3+ | LICENSE= GPLv3+ | ||||
LIB_DEPENDS= libminizip.so:archivers/minizip \ | LIB_DEPENDS= libminizip.so:archivers/minizip \ | ||||
libpcre.so:devel/pcre \ | libpcre.so:devel/pcre \ | ||||
libhunspell-1.5.so:textproc/hunspell | libhunspell-1.6.so:textproc/hunspell | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py3-lxml | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py3-lxml | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= Sigil-Ebook | GH_ACCOUNT= Sigil-Ebook | ||||
GH_PROJECT= Sigil | GH_PROJECT= Sigil | ||||
USES= cmake:outsource compiler:c++11-lib desktop-file-utils \ | USES= cmake:outsource compiler:c++11-lib desktop-file-utils \ | ||||
pkgconfig python:3 shebangfix | pkgconfig python:3 shebangfix | ||||
SHEBANG_FILES= src/Resource_Files/plugin_launchers/python/*.py \ | SHEBANG_FILES= src/Resource_Files/plugin_launchers/python/*.py \ | ||||
src/Resource_Files/python3lib/*.py | src/Resource_Files/python3lib/*.py | ||||
USE_QT5= concurrent core gui network printsupport svg webkit \ | USE_QT5= concurrent core gui network printsupport svg webkit \ | ||||
widgets xml xmlpatterns \ | widgets xml xmlpatterns \ | ||||
buildtools_build linguisttools_build qmake_build \ | buildtools_build linguisttools_build qmake_build \ | ||||
imageformats_run | imageformats_run | ||||
CMAKE_ARGS= -DUSE_SYSTEM_LIBS:BOOL=1 \ | CMAKE_ARGS= -DUSE_SYSTEM_LIBS:BOOL=1 \ | ||||
-DINSTALL_BUNDLED_DICTS:BOOL=0 | -DINSTALL_BUNDLED_DICTS:BOOL=0 | ||||
USE_LDCONFIG= ${PREFIX}/lib/sigil | USE_LDCONFIG= ${PREFIX}/lib/sigil | ||||
# Upstream uses pkg-config output to pass libhunspell-1.5.so and | # Upstream uses pkg-config output to pass libhunspell-1.6.so and | ||||
# libpcre16.so to the linker. pkg-config output does not include full | # libpcre16.so to the linker. pkg-config output does not include full | ||||
# paths, so add a workaround to keep the port linking for now. | # paths, so add a workaround to keep the port linking for now. | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
post-install: | post-install: | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sigil/*.so | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sigil/*.so | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |