aboutsummaryrefslogblamecommitdiff
path: root/audio/xmixer/Makefile
blob: 1c2804fe74bf36c60076b2798e9c55251c64b523 (plain) (tree)
1
2
3
4
5
6
7
8
9
                    
 
                      
                     
                 
                     
                                         
 
                                 
                                                    
 


                                 
                                     
 
                   
                      
 
                            
                                          
 
                    
                                     
                                        
 








                                                                          
                                                                    
                                                                                        
 
                      
# Created by: trevor

PORTNAME=	xmixer
PORTVERSION=	0.9.4
PORTREVISION=	8
CATEGORIES=	audio
MASTER_SITES=	http://mpx.freeshell.net/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Audio mixer (gtk and Xlib) for X11R6

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

WRKSRC=		${WRKDIR}/${PORTNAME}

GNU_CONFIGURE=	yes
ALL_TARGET=	xmixer

PLIST_FILES=	bin/xmixer \
		share/man/man1/xmixer.1.gz

USES=		xorg
USE_XORG=	x11 xt ice xaw xmu sm
LDFLAGS+=	-L${LOCALBASE}/lib -lX11

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:
	${INSTALL_PROGRAM} ${WRKSRC}/xmixer ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/xmixer.man ${STAGEDIR}${PREFIX}/share/man/man1/xmixer.1

.include <bsd.port.mk>