aboutsummaryrefslogtreecommitdiff
path: root/audio/asmix/Makefile
blob: 232a595ab09abfd02b65d93af4ba78d0fb12af55 (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
# Created by: mtm@identd.net

PORTNAME=	asmix
PORTVERSION=	1.5
PORTREVISION=	3
CATEGORIES=	audio afterstep
MASTER_SITES=	http://tigr.net/afterstep/download/asmix/ \
		http://www.sourcefiles.org/Utilities/Console/A-B/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Volume control dock-app for the AfterStep Window Manager

LICENSE=	GPLv2

USES=		xorg
USE_XORG=	xpm x11
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-xpm \
		--with-xpm-includes=${LOCALBASE}/include \
		--with-xpm-library=${LOCALBASE}/lib

PLIST_FILES=	bin/asmix man/man1/asmix.1.gz

post-patch:
.for i in asmix.c configure autoconf/config.h.in
	@${REINPLACE_CMD} -e 's|machine/soundcard|sys/soundcard|g ; \
		 s|MACHINE_SOUNDCARD|SYS_SOUNDCARD|g' ${WRKSRC}/${i}
.endfor

post-build:
	@${LN} -sf asmix.man ${WRKSRC}/asmix.1

do-install:
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} asmix \
		${STAGEDIR}${PREFIX}/bin)
	(cd ${WRKSRC} && ${INSTALL_MAN} asmix.1 \
		${STAGEDIR}${MANPREFIX}/man/man1)

.include <bsd.port.mk>