summaryrefslogtreecommitdiff
path: root/audio/xamp/Makefile
blob: 5021557c956a5cf1a3beda40c748c101ea73edbf (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
# $NetBSD: Makefile,v 1.23 2006/01/16 13:44:53 rxg Exp $

DISTNAME=	xamp-0.8-10
PKGNAME=	xamp-0.8.10
PKGREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	http://andrej.co.ru/~andrej/programs/xamp/ \
		http://andrej.co.ru/~andrej/programs/xamp/backs/
EXTRACT_SUFX=	.tgz
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${SKIN_DATA}

MAINTAINER=	rxg@NetBSD.org
HOMEPAGE=	http://andrej.co.ru/~andrej/programs/xamp/
COMMENT=	Version of amp (stands for `Audio Mpeg Player') plus a Qt GUI

WRKSRC=		${WRKDIR}/xamp-0.8/xamp-0.8g
DIST_SUBDIR=	xamp
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	CXXFLAGS=${CFLAGS:M*:Q}
USE_TOOLS+=	gmake
USE_LANGUAGES=	c c++

CONFIGURE_ARGS+=	--with-qt-dir=${BUILDLINK_PREFIX.qt1:Q}/qt1

CONFIGURE_ENV+=	QTDIR=${QT1DIR:Q}
MAKE_ENV+=	QT1DIR=${QT1DIR:Q}

SKIN_DATA=	bfamp.tar.gz chrome.tar.gz mmxamp.tar.gz
SKIN_DIR=	${PREFIX}/lib/X11/xamp

INSTALLATION_DIRS=	bin man/man1

post-patch:
	for f in about.cpp aboutData.cpp readmex.h; do \
		${MV} ${WRKSRC}/$$f ${WRKSRC}/$$f.tmp; \
		${SED} -e 's:/usr/X11R6:'${PREFIX}':g' < ${WRKSRC}/$$f.tmp > \
			${WRKSRC}/$$f; \
	done

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xamp ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/xamp.1 ${PREFIX}/man/man1
	@${INSTALL_DATA_DIR} ${SKIN_DIR}/bfamp-xamp
	${INSTALL_DATA} ${WRKDIR}/bfamp-xamp/*.bmp ${SKIN_DIR}/bfamp-xamp
	@${INSTALL_DATA_DIR} ${SKIN_DIR}/chrome-xamp
	${INSTALL_DATA} ${WRKDIR}/chrome-xamp/*.bmp ${SKIN_DIR}/chrome-xamp
	@${INSTALL_DATA_DIR} ${SKIN_DIR}/mmxxamp-xamp
	${INSTALL_DATA} ${WRKDIR}/mmxxamp-xamp/*.bmp ${SKIN_DIR}/mmxxamp-xamp

.include "../../x11/qt1/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"