summaryrefslogtreecommitdiff
path: root/misc/asbutton/Makefile
blob: 1416cc962af1a1b49aa7541c470f2f1af591b82c (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
# New ports collection makefile for:	asbutton
# Version required:		0.3
# Date created:			10 May 1999
# Whom:				Jim Mock <jim@FreeBSD.org>
#
# $Id: Makefile,v 1.2 1999/08/01 01:59:40 cpiazza Exp $
#

DISTNAME=	asbutton-0.3
CATEGORIES=	misc windowmaker afterstep
MASTER_SITES=	http://www.tigr.net/afterstep/as-apps/download/asbutton/ \
		ftp://ftp.afterstep.org/apps/asbutton/

MAINTAINER=	jim@FreeBSD.org

LIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm

USE_X_PREFIX=	yes

do-build:
	(cd ${WRKSRC} && make)

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/asbutton ${PREFIX}/bin
	@${ECHO} "===>   Installing icons in ${PREFIX}/share/asbutton"
	@${MKDIR} ${PREFIX}/share/asbutton && chmod a+rx ${PREFIX}/share/asbutton
	@${INSTALL_DATA} ${WRKSRC}/icons/*.xpm ${PREFIX}/share/asbutton

post-install:
	@${ECHO} "===>   Installing sample asbuttonrc in ${PREFIX}/share/examples/asbutton"
	@${ECHO} "===>   Copy to ~/.asbuttonrc and modify to desired config."
	@${MKDIR} ${PREFIX}/share/examples/asbutton && chmod a+rx ${PREFIX}/share/examples/asbutton
	@${INSTALL_DATA} ${WRKSRC}/.asbuttonrc ${PREFIX}/share/examples/asbutton/asbuttonrc && chmod u+rw ${PREFIX}/share/examples/asbutton/asbuttonrc
	@${ECHO} "===>   Use 'asbutton -h' for help."

.include <bsd.port.mk>