blob: 30e1990ee89f51475b7f6c5cc20b269a72b063fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
PORTNAME= highlight
PORTVERSION= 3.36
PORTREVISION= 1
PORTEPOCH= 3
CATEGORIES= textproc
MASTER_SITES= http://www.andre-simon.de/zip/
MAINTAINER= kwm@FreeBSD.org
COMMENT= Customizable syntax highlighter
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
BROKEN_powerpc64= fails to compile: rtfgenerator.cpp:279:37: 'to_string' was not declared in this scope
USES= compiler:c++11-lib gmake lua:52 pkgconfig tar:bzip2
USE_CXXSTD= c++11
MAKEFILE= makefile
MAKE_ARGS= CXX="${CXX}" \
CFLAGS="${CXXFLAGS} ${CPPFLAGS} -DHAVE_DECL_GETOPT" \
LDFLAGS="${LDFLAGS}"
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} \
-e 's|^PREFIX =|PREFIX ?=|' \
-e 's|^conf_dir =.*|conf_dir = $${PREFIX}/etc/highlight/|' \
${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|^CXX=|CXX?=|' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/src/${MAKEFILE}
post-install:
@cd ${STAGEDIR}${PREFIX}/etc/highlight && ${MV} filetypes.conf \
filetypes.conf.sample
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/highlight
.include <bsd.port.mk>
|