summaryrefslogtreecommitdiffstats
path: root/x11/wmappl/Makefile
blob: 49176be0d52ae7a0641468c215a732e3eeacf42e (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
# New ports collection makefile for:	wmappl
# Date created:				3 March 2002
# Whom:					od <od@iclub.nsu.ru>
#
# $FreeBSD$
#

PORTNAME=	wmappl
PORTVERSION=	0.6
CATEGORIES=	x11 windowmaker
MASTER_SITES=	http://www.upl.cs.wisc.edu/~charkins/wmappl/
.ifndef(NOICONS)
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${ICONSDIST}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
.endif

MAINTAINER=	od@iclub.nsu.ru

LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt

USE_X_PREFIX=	yes
USE_XPM=	yes
MAKE_ENV=	DATADIR="${DATADIR}"
ICONSDIST=	16x16xpms.tar.gz icons_16x16.tar.gz smallicons.tar.gz
.ifndef(NOICONS)
PLIST_SUB=	ICONS=""
.else
PLIST_SUB=	ICONS="@comment "
.endif

.ifndef(NOICONS)
post-extract:
	@${ECHO_MSG} "===>   Extracting icons ..."
.for icons in ${ICONSDIST}
	@${ECHO_MSG} "===>   ${icons} ..."
	@${TAR} -C ${WRKSRC}/icons -xzf ${DISTDIR}/${icons}
.endfor
	@${MV} ${WRKSRC}/icons/smallicons/* ${WRKSRC}/icons
.endif

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/wmappl ${PREFIX}/bin

post-install:
	@${MKDIR} ${EXAMPLESDIR}
	@${INSTALL_DATA} ${WRKSRC}/sample.wmapplrc ${EXAMPLESDIR}
.ifndef(NOICONS)
	@${ECHO_CMD} ""
	@${ECHO_CMD} "===>   Installing icons to ${DATADIR} directory"
	@${MKDIR} ${DATADIR}
	@${INSTALL_DATA} ${WRKSRC}/icons/*.xpm ${DATADIR}
.endif
.ifndef(NOPORTDOCS)
	@${ECHO_CMD} "===>   Installing README as ${DOCSDIR}/README"
	@${ECHO_CMD} "===>   Please read for configuration information"
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
	@${SED} -E 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|' ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud