Changeset View
Changeset View
Standalone View
Standalone View
devel/brotli/Makefile
# Created by: Markus Kohlmeyer <rootservice@gmail.com> | |||||
# $FreeBSD: $ | |||||
PORTNAME= brotli | |||||
PORTVERSION= 0.6.0 | |||||
PORTREVISION?= 0 | |||||
mat: Remove. | |||||
CATEGORIES= devel archivers | |||||
matUnsubmitted Not Done Inline ActionsShould probably be in archivers first. mat: Should probably be in archivers first. | |||||
MAINTAINER= rootservice@gmail.com | |||||
COMMENT= Brotli lossless compression algorithm libraries and command-line tool | |||||
LICENSE= MIT | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= google | |||||
GH_PROJECT= brotli | |||||
matUnsubmitted Not Done Inline ActionsThis is the default, remove. mat: This is the default, remove. | |||||
GH_TAGNAME= v${PORTVERSION} | |||||
matUnsubmitted Not Done Inline ActionsThis should be DISTVERSIONPREFIX=v in the top block. mat: This should be DISTVERSIONPREFIX=v in the top block. | |||||
USES= cmake:outsource compiler:c++0x localbase pathfix pkgconfig | |||||
CONFLICTS_INSTALL= libbrotli-* | |||||
BUILD_DEPENDS= bash:shells/bash | |||||
matUnsubmitted Not Done Inline ActionsThis should appear earlier. See here mat: This should appear earlier. See [[ https://www.freebsd.org/doc/en/books/porters… | |||||
OPTIONS_DEFINE= STATIC | |||||
OPTIONS_DEFAULT= | |||||
matUnsubmitted Not Done Inline ActionsRemove. mat: Remove. | |||||
STATIC_DESC= Build static libs and commandline tool | |||||
.include <bsd.port.options.mk> | |||||
.if ${PORT_OPTIONS:MSTATIC} | |||||
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON | |||||
PLIST_SUB+= NO_STATIC="@comment " STATIC="" | |||||
.else | |||||
PLIST_SUB+= STATIC="@comment " NO_STATIC="" | |||||
.endif | |||||
.if !${PORT_OPTIONS:MSTATIC} | |||||
post-install: | |||||
@${LN} -s libbrotlicommon.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libbrotlicommon.so.0 | |||||
@${LN} -s libbrotlidec.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libbrotlidec.so.0 | |||||
@${LN} -s libbrotlienc.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libbrotlienc.so.0 | |||||
matUnsubmitted Not Done Inline ActionsUse options helpers. mat: Use [[ https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html | options… | |||||
.endif | |||||
.include <bsd.port.mk> |
Remove.