2007-09-15 17:26:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2007/09/15 21:26:03 simon Exp $
|
1997-12-04 21:18:05 -05:00
|
|
|
|
2007-09-15 17:26:00 -04:00
|
|
|
COMMENT= network audio player
|
2001-02-05 20:32:04 -05:00
|
|
|
DISTNAME= rplay-3.3.2
|
2005-12-23 10:07:05 -05:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
1997-12-04 21:18:05 -05:00
|
|
|
CATEGORIES= audio
|
2005-12-23 10:07:05 -05:00
|
|
|
SHARED_LIBS= rplay 0.0
|
1997-12-04 21:18:05 -05:00
|
|
|
|
2000-09-21 03:47:06 -04:00
|
|
|
HOMEPAGE= http://rplay.doit.org/
|
|
|
|
|
2001-02-05 20:32:04 -05:00
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
1997-12-04 21:18:05 -05:00
|
|
|
|
2000-04-08 12:39:14 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB= c m
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2001-04-12 23:23:59 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/dist/
|
2001-02-05 20:32:04 -05:00
|
|
|
|
2006-08-01 08:13:28 -04:00
|
|
|
LIB_DEPENDS= gsm.>=1.0::audio/gsm
|
2001-02-05 20:32:04 -05:00
|
|
|
|
2005-04-17 17:18:29 -04:00
|
|
|
FAKE= lib
|
2000-09-21 03:47:06 -04:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
2001-02-05 20:32:04 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --enable-static
|
2005-04-17 17:18:29 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${DEPBASE}/include" \
|
|
|
|
LDFLAGS="-L${DEPBASE}/lib"
|
2005-12-23 10:07:05 -05:00
|
|
|
MAKE_FLAGS= LIBrplay_VERSION=${LIBrplay_VERSION}
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
1998-12-22 00:24:12 -05:00
|
|
|
|
2000-09-21 04:40:59 -04:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC}/doc && mv rplay.texi rplayd.texi
|
|
|
|
|
2006-11-02 06:07:13 -05:00
|
|
|
pre-patch:
|
|
|
|
chmod -R +w ${WRKSRC}
|
|
|
|
find ${WRKSRC} -name '*.[ch]'|xargs fgrep -l malloc.h| \
|
|
|
|
while read i; do \
|
|
|
|
sed -e 's/malloc.h/stdlib.h/' $$i >$$i.bak && mv $$i.bak $$i; \
|
|
|
|
done
|
|
|
|
|
1998-12-22 00:24:12 -05:00
|
|
|
post-configure:
|
|
|
|
.for ff in rplay.conf.5 rplay.helpers.5 rplay.hosts.5 rplayd.8
|
|
|
|
@cd ${WRKSRC}/doc; \
|
2000-02-10 20:09:59 -05:00
|
|
|
sed -e "s,/usr/local/etc,${SYSCONFDIR},g" ${ff} >${ff}.tmp; \
|
|
|
|
mv ${ff}.tmp ${ff}
|
1998-12-22 00:24:12 -05:00
|
|
|
.endfor
|
1997-12-04 21:18:05 -05:00
|
|
|
|
2004-09-22 06:02:18 -04:00
|
|
|
CONFIG_DIR=${PREFIX}/share/examples/rplay
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${CONFIG_DIR}
|
|
|
|
echo localhost >${CONFIG_DIR}/rplay.hosts
|
|
|
|
touch ${CONFIG_DIR}/rplay.{conf,helpers,servers}
|
|
|
|
chown -R root.wheel ${CONFIG_DIR}
|
|
|
|
chmod 644 ${CONFIG_DIR}/*
|
|
|
|
|
2002-10-24 18:20:03 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1997-12-04 21:18:05 -05:00
|
|
|
.include <bsd.port.mk>
|