mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
bb5196a149
variables deprecation revision WITHOUT_NLS 2013-12-13 r336337 WITH_/WITHOUT_ 2014-02-24 r345870 NOPORT(DOC|EXAMPLE)S 2014-04-19 r351587 WITH_BDB_VER 2016-05-02 r414444 OVERRIDE_LINUX_BASE_PORT 2016-09-05 r421387 WITH_OPENSSL_(BASE|PORT) 2016-06-16 r416965 While there, add an ERROR variable that works like DEV_ERROR, but for user facing errors, and move NOPORTDOCS, NOPORTEXAMPLES and WITHOUT_NLS to it. Cleanup bsd.sanity.mk a bit. Fix fallout. PR: 224613 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D13490
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# Created by: trevor
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmixer
|
|
PORTVERSION= 0.9.4
|
|
PORTREVISION= 7
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://mpx.freeshell.net/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Audio mixer (gtk and Xlib) for X11R6
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
GNU_CONFIGURE= yes
|
|
ALL_TARGET= ${PROGRAMS}
|
|
|
|
PLIST_FILES= bin/xmixer \
|
|
man/man1/xmixer.1.gz
|
|
|
|
OPTIONS_DEFINE= GTK1
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGTK1}
|
|
USE_GNOME+= gtk12
|
|
PROGRAMS= xmixer xgmixer
|
|
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.mk>
|