blob: f7d3a4c463a295b54b071bc7da53bc19b2b0adb4 (
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
|
PORTNAME= undead
DISTVERSIONPREFIX=v
DISTVERSION= 1.1.8
CATEGORIES= devel
MAINTAINER= romain@FreeBSD.org
COMMENT= Obsolete Phobos modules upgraded to work with the latest D
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ldmd2:lang/ldc \
dub:devel/dub
USE_GITHUB= yes
GH_ACCOUNT= dlang
GH_PROJECT= undeaD
DUB_CMD= ${LOCALBASE}/bin/dub build --build=release
D_INCLUDE_DIR= ${PREFIX}/include/d
D_LIB_DIR= ${PREFIX}/lib/d
DC= ${PREFIX}/bin/ldmd2
SUB_FILES= undead.pc
SUB_LIST= DISTVERSION=${DISTVERSION}
do-build:
@cd ${WRKSRC} && DC=${DC} ${DUB_CMD}
do-install:
@${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR}
@${MKDIR} ${STAGEDIR}${D_LIB_DIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig
${INSTALL_DATA} ${WRKSRC}/bin/libundead.a ${STAGEDIR}${D_LIB_DIR}
cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d"
cd ${WRKDIR} && ${COPYTREE_SHARE} undead.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
.include <bsd.port.mk>
|