summaryrefslogtreecommitdiffstats
path: root/misc/asbutton/Makefile
blob: e6d2dd40be0e4e283e780c552f518ae7ba7eb0df (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
# Created by: Jim Mock <jim@FreeBSD.org>
# $FreeBSD$

PORTNAME=	asbutton
PORTVERSION=	0.3
PORTREVISION=	3
CATEGORIES=	misc windowmaker afterstep
MASTER_SITES=	AFTERSTEP/apps/asbutton/ \
		http://tigr.net/afterstep/download/asbutton/

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

LICENSE=	GPLv2

USE_XORG=	x11 xpm
ALL_TARGET=	asbutton
MAKE_ARGS=	INCLUDES="-I${LOCALBASE}/include/X11 -I${LOCALBASE}/include" \
		LIBINC="-L${LOCALBASE}/lib" LIBS="-lm -lX11 -lXpm -lXext" \
		CCFLAGS="${CFLAGS}"

OPTIONS_DEFINE=	EXAMPLES

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

post-build:
	@${LN} -sf .asbuttonrc ${WRKSRC}/asbuttonrc

do-install:
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} asbutton \
		${STAGEDIR}${PREFIX}/bin)
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC}/icons && ${INSTALL_DATA} *.xpm \
		${STAGEDIR}${DATADIR})
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} asbuttonrc \
		${STAGEDIR}${EXAMPLESDIR})

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