blob: 131b0e438d69dce7361af3bee10c6f99ffe00a9c (
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
|
# Created by: trevor
# $FreeBSD$
PORTNAME= xmixer
PORTVERSION= 0.9.4
PORTREVISION= 6
CATEGORIES= audio
MASTER_SITES= http://mpx.freeshell.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= Audio mixer (gtk and Xlib) for X11R6
WRKSRC= ${WRKDIR}/${PORTNAME}
WANT_GNOME= yes
GNU_CONFIGURE= yes
ALL_TARGET= ${PROGRAMS}
PLIST_FILES= bin/xmixer \
man/man1/xmixer.1.gz
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME+= gtk12
PROGRAMS= xmixer xgmixer
MLINKS+= xmixer.1 xgmixer.1
PLIST_FILES+= bin/xgmixer
.else
USE_XORG= x11 xt ice xaw
PROGRAMS= xmixer
LDFLAGS+= -L${LOCALBASE}/lib -lX11
.endif
post-patch:
@${GREP} -lR "rxvt -e" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|rxvt -e|xterm -e|g'
@${REINPLACE_CMD} -e 's|-O -Wall||g ; \
s|^%\.o:.*$$|.c.o:|g ; \
s|gtk-config|pkg-config gtk+|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|<getopt\.h>|<unistd.h>|g' ${WRKSRC}/main.c
do-install:
.for file in ${PROGRAMS}
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin/${file}
.endfor
${INSTALL_MAN} ${WRKSRC}/xmixer.man ${STAGEDIR}${MAN1PREFIX}/man/man1/xmixer.1
.include <bsd.port.post.mk>
|