summaryrefslogtreecommitdiff
path: root/audio/wsoundserver/Makefile
blob: 2eb2ec2e51c5b5d92242b82337680f3c5dee9d3e (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
62
63
64
65
# $NetBSD: Makefile,v 1.42 2011/04/22 13:42:42 obache Exp $
#

DISTNAME=	WSoundServer-0.4.0
PKGNAME=	wsoundserver-0.4.0
PKGREVISION=	14
CATEGORIES=	audio wm windowmaker
MASTER_SITES=	# ftp://shadowmere.student.utwente.nl/pub/WindowMaker/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://shadowmere.student.utwente.nl/
COMMENT=	Sound server for windowmaker

PKG_DESTDIR_SUPPORT=	user-destdir

USE_X11BASE=		YES
GNU_CONFIGURE=		YES
USE_LIBTOOL=		YES

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}	# not really needed
PKG_SYSCONFSUBDIR=	WindowMaker
EGDIR=			${PREFIX}/share/examples/wsoundserver
CONF_FILES=		${EGDIR:Q}/WMSound ${PKG_SYSCONFDIR:Q}/WMSound

SUBST_CLASSES+=		1x
SUBST_STAGE.1x=		post-patch
SUBST_MESSAGE.1x=	Changing the man page category from 1x to 1.
SUBST_FILES.1x=		doc/*
SUBST_SED.1x=		-e s,1x,1,g

INSTALLATION_DIRS+=	${EGDIR}

post-patch:
	set -e;								\
	cd ${WRKSRC:Q}/doc;						\
	for f in get-wsound-flags getsoundset setsoundset wsoundplay	\
		wsoundserver; do					\
		g=`${ECHO} $$f | ${SED} "s/x$$//"`;			\
		${MV} "$$f".1x "$$f".1;					\
	done
	${SED} -e "s|@PREFIX@|${PREFIX}|g"				\
		${FILESDIR:Q}/WMSound > ${WRKSRC:Q}/WMSound

post-install:
	${INSTALL_DATA} ${WRKSRC:Q}/WMSound ${DESTDIR}${EGDIR}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Interix"
.  include "../../audio/esound/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-esound
.else
.  include "../../mk/oss.buildlink3.mk"
.endif

BUILDLINK_DEPMETHOD.libXt?=	build

.include "../../audio/libaudiofile/buildlink3.mk"
.include "../../devel/libdockapp/buildlink3.mk"
.include "../../devel/libproplist/buildlink3.mk"
.include "../../wm/windowmaker/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"