aboutsummaryrefslogtreecommitdiff
path: root/misc/asbutton/Makefile
blob: fa29fac73c65bc1e46b9e5a0cf3a098d4dd28375 (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
# New ports collection makefile for:	asbutton
# Date created:			10 May 1999
# Whom:				Jim Mock <jim@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	asbutton
PORTVERSION=	0.3
PORTREVISION=	1
CATEGORIES=	misc windowmaker afterstep
MASTER_SITES=	http://www.tigr.net/afterstep/download/asbutton/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A dockapp that displays 4 or 9 buttons to run apps of your choice

USE_X_PREFIX=	yes
USE_XPM=	yes
ALL_TARGET=	asbutton
MAKE_ARGS=	INCLUDES="-I${X11BASE}/include/X11 -I${X11BASE}/include" \
		LIBINC="-L${X11BASE}/lib" LIBS="-lm -lX11 -lXpm -lXext" \
		CCFLAGS="${CFLAGS}"

post-patch:
	@${REINPLACE_CMD} -e 's:gcc :${CC} :' ${WRKSRC}/Makefile

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>