blob: 6b9dd502a6a784dfd84edf0346f4d5e1c977b41e (
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
|
PORTNAME= icontheme
PORTVERSION= 1.2.3
PORTREVISION= 3
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= acm@FreeBSD.org
COMMENT= Icon Theme Specification implementation in D programming language
WWW= https://github.com/FreeSlave/icontheme
LICENSE= BSL
BUILD_DEPENDS= ldmd2:lang/ldc \
dub:devel/dub \
${LOCALBASE}/lib/d/libisfreedesktop.a:devel/isfreedesktop \
${LOCALBASE}/lib/d/libinilike.a:devel/inilike \
${LOCALBASE}/lib/d/libxdgpaths.a:devel/xdgpaths
USE_GITHUB= yes
GH_ACCOUNT= FreeSlave
DUB_CMD= ${LOCALBASE}/bin/dub build --build=release
D_INCLUDE_DIR= ${PREFIX}/include/d
D_LIB_DIR= ${PREFIX}/lib/d
DC= ${PREFIX}/bin/ldmd2
do-build:
@cd ${WRKSRC} && DC=${DC} ${DUB_CMD}
do-install:
@${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR}
@${MKDIR} ${STAGEDIR}${D_LIB_DIR}
${INSTALL_DATA} ${WRKSRC}/lib/libicontheme.a ${STAGEDIR}${D_LIB_DIR}
cd ${WRKSRC}/source && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d"
.include <bsd.port.mk>
|