blob: 64f1b1a348c4a01c21324a71f62ae34ee881653e (
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
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
75
76
77
78
79
80
|
# $FreeBSD$
PORTNAME= coedit
PORTVERSION= 3.6.15
DISTVERSIONPREFIX=v
CATEGORIES= editors
PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX}
MAINTAINER= acm@FreeBSD.org
COMMENT= IDE for the D programming language
LICENSE= BSL
BUILD_DEPENDS= ldmd2:lang/ldc \
${LOCALBASE}/lib/d/libiz.a:devel/iz \
${LOCALBASE}/lib/d/libdparse.a:devel/libdparse \
${LOCALBASE}/lib/d/libstdx-allocator.a:devel/stdx-allocator
RUN_DEPENDS= ldmd2:lang/ldc \
dscanner:devel/d-scanner \
dcd-client:devel/dcd-client \
dcd-server:devel/dcd-server \
dfmt:devel/dfmt \
ddemangle:lang/dlang-tools
USE_GITHUB= yes
GH_ACCOUNT= BBasile
GH_PROJECT= Coedit
USES= fpc lazarus:flavors
USE_FPC= chm fcl-base fcl-db fcl-image fcl-json fcl-net fcl-registry \
fcl-stl fcl-web fcl-xml numlib openssl pasjpeg rtl-objpas \
regexpr rtl-extra x11
USE_XORG= x11
DESKTOP_ENTRIES="Coedit" \
"IDE for the D programming language" \
"${PREFIX}/share/pixmaps/${PORTNAME}.png" \
"${PREFIX}/bin/${PORTNAME}" \
"Application;IDE;Development;" \
${TRUE}
D_LIB_DIR= ${LOCALBASE}/lib/d
D_INCLUDE_DIR= ${LOCALBASE}/include/d
LAZARUS_PROJECT_FILES= anchordocking/anchordocking.lpk lazproj/coedit.lpi
LAZBUILD_ARGS= -d
LDMD2_CMD= ${LOCALBASE}/bin/ldmd2
gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt4 ${PORTNAME}-qt5
qt4_CONFLICTS_INSTALL= ${PORTNAME}-gtk2 ${PORTNAME}-qt5
qt5_CONFLICTS_INSTALL= ${PORTNAME}-gtk2 ${PORTNAME}-qt4
.if ${FLAVOR:Ugtk2:Mgtk2}
USE_FPC+= cairo
USE_GNOME+= cairo
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%LDMD2_CMD%%|${LDMD2_CMD}|g' \
-e 's|%%D_LIB_DIR%%|${D_LIB_DIR}|g' \
-e 's|%%D_INCLUDE_DIR%%|${D_INCLUDE_DIR}|g' \
${WRKSRC}/dastworx/build.sh
${REINPLACE_CMD} -e 's|LINUX|UNIX|g' ${WRKSRC}/src/ce_common.pas ${WRKSRC}/src/ce_dcd.pas
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/src/ce_compilers.pas
post-configure:
@${MKDIR} ${WRKSRC}/tmppcp
${CP} -a ${LAZARUS_DIR}/components/anchordocking ${WRKSRC}
pre-build:
@cd ${WRKSRC}/dastworx && ${SH} build.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/coedit ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/bin/dastworx ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/logo/coedit.png ${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>
|