blob: e6442dc70067f861d26c8928b245b4e2c624518d (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Created by: lightside <lightside@gmx.com>
# $FreeBSD$
PORTNAME= treesheets
PORTVERSION= 1.0.1
DISTVERSIONPREFIX= v
CATEGORIES= deskutils
MAINTAINER= lightside@gmx.com
COMMENT= Free form data organizer
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/ZLIB_LICENSE.txt
USES= compiler:c++17-lang desktop-file-utils
USE_GITHUB= yes
GH_ACCOUNT= aardappel
USE_WX= 3.0+
INSTALLS_ICONS= yes
BUILD_WRKSRC= ${WRKSRC}/src
PACKAGE_VERSION= \"${PORTVERSION}\"
MAKE_ENV= PACKAGE_VERSION=${PACKAGE_VERSION:Q}
PORTDATA= images scripts translations/*/*.mo
PORTDOCS= docs *.html
PORTEXAMPLES= *
PLIST_FILES= bin/${PORTNAME} \
share/applications/treesheets.desktop \
share/icons/hicolor/scalable/apps/treesheets.svg \
share/pixmaps/treesheets.png
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1100000) || make(makesum)
MASTER_SITES+= http://releases.llvm.org/6.0.1/:llvm
DISTFILES+= libcxx-6.0.1.src.tar.xz:llvm
CXXFLAGS+= -isystem ${WRKDIR}/libcxx-6.0.1.src/include
.endif
post-patch: .SILENT
${REINPLACE_CMD} -e 's|sys->frame->GetPath(L"|(L"${DOCSDIR}/|' \
${BUILD_WRKSRC}/document.h
${REINPLACE_CMD} -e 's|wxFileName(exename).GetPath()|L"${DATADIR}"|' \
${BUILD_WRKSRC}/myframe.h
${REINPLACE_CMD} -e 's|frame->GetPath(L"examples|(L"${EXAMPLESDIR}|' \
${BUILD_WRKSRC}/system.h
${REINPLACE_CMD} -e 's|^\(Icon=\).*|\1${PORTNAME}|' \
${WRKSRC}/TS/treesheets.desktop
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC}/TS && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKSRC}/TS/treesheets.desktop \
${STAGEDIR}${PREFIX}/share/applications
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
${INSTALL_DATA} ${WRKSRC}/TS/images/treesheets.svg \
${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
${INSTALL_DATA} ${WRKSRC}/TS/images/icon32.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
do-install-DOCS-on:
(cd ${WRKSRC}/TS && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
do-install-EXAMPLES-on:
(cd ${WRKSRC}/TS/examples && ${COPYTREE_SHARE} "${PORTEXAMPLES}" \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.post.mk>
|