1999-09-29 03:48:58 +00:00
|
|
|
# New ports collection makefile for: wmtune
|
|
|
|
# Version required: 1.0
|
|
|
|
# Date created: 28 September 1999
|
|
|
|
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= wmtune-1.0
|
|
|
|
CATEGORIES= audio windowmaker
|
2000-03-04 12:59:01 +00:00
|
|
|
MASTER_SITES= http://www.fxp.org/~jedgar/distfiles/ \
|
|
|
|
http://www.soren.org/linux/wmtune/dl/ \
|
|
|
|
http://www.rostock.zgdv.de/~runge/radio/
|
1999-09-29 03:48:58 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2000-02-05 00:16:58 +00:00
|
|
|
${WMTUNE_DIFF}
|
1999-09-29 03:48:58 +00:00
|
|
|
|
2000-01-21 00:46:23 +00:00
|
|
|
MAINTAINER= jedgar@FreeBSD.org
|
1999-09-29 03:48:58 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
|
|
|
|
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
|
|
|
|
PATCH_ARGS =-p0 -d ${WRKDIR}
|
|
|
|
|
2000-02-05 00:16:58 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(USE_RADIOTRACK)
|
|
|
|
WMTUNE_DIFF= wmtune.diff.gz
|
2000-03-04 12:59:01 +00:00
|
|
|
pre-fetch:
|
2000-02-05 00:16:58 +00:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "To enable support for RadioTrack radio cards,"
|
|
|
|
@${ECHO} "define USE_RADIOTRACK (make USE_RADIOTRACK=yes)."
|
|
|
|
@${ECHO}
|
|
|
|
@sleep 3
|
|
|
|
.else
|
|
|
|
WMTUNE_DIFF= wmtune.radiotrack.diff.gz
|
|
|
|
.endif
|
|
|
|
|
1999-09-29 03:48:58 +00:00
|
|
|
post-patch:
|
2000-02-05 00:16:58 +00:00
|
|
|
@${GUNZIP_CMD} -c ${DISTDIR}/${WMTUNE_DIFF} | ${PATCH} ${PATCH_ARGS}
|
2000-02-25 00:14:16 +00:00
|
|
|
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
|
|
|
|
@${SED} -e 's|-O2|${CFLAGS}|' -e 's|cc|${CC}|' \
|
|
|
|
< ${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
|
2000-02-05 00:16:58 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@${PERL} -pi.orig -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/src/wmtune.c
|
1999-09-29 03:48:58 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/wmtune ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.wmtunerc ${PREFIX}/etc
|
|
|
|
|
2000-02-05 00:16:58 +00:00
|
|
|
.include <bsd.port.post.mk>
|