1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/audio/ocp/Makefile

71 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ocp
# Date created: 22 April 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= ocp
PORTVERSION= 0.1.5
CATEGORIES= audio
MASTER_SITES= http://labs.nixia.no/
MAINTAINER= ehaupt@critical.ch
COMMENT= The legendary Open Cubic Player
LIB_DEPENDS= sidplay.1:${PORTSDIR}/audio/libsidplay \
id3tag.2:${PORTSDIR}/audio/libid3tag \
mad.2:${PORTSDIR}/audio/libmad \
vorbis.3:${PORTSDIR}/audio/libvorbis
ONLY_FOR_ARCHS= i386
USE_XLIB= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GCC= 3.4+
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
post-patch:
@${REINPLACE_CMD} -e 's|@LIBDIR@|${PREFIX}/lib/ocp|' \
${WRKSRC}/Rules.make.in
@${REINPLACE_CMD} -e 's|stdint\.h|inttypes\.h|' ${WRKSRC}/types.h
@${REINPLACE_CMD} -e 's|ocp-" VERSION|ocp"|' \
${WRKSRC}/boot/kickload.c
@${REINPLACE_CMD} -e 's|\(-shared\)|-L${LOCALBASE}/lib -L${X11BASE}/lib \1|' \
${WRKSRC}/playmp2/Makefile \
${WRKSRC}/playogg/Makefile \
${WRKSRC}/playsid/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ocp ${PREFIX}/bin
${CHMOD} u+s ${PREFIX}/bin/ocp
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/cp.pak ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/ocp.ini ${PREFIX}/etc/ocp.ini.default
.if !exists(${PREFIX}/etc/ocp.ini)
${INSTALL_DATA} ${WRKSRC}/ocp.ini ${PREFIX}/etc
.endif
${MKDIR} ${PREFIX}/lib/ocp
${INSTALL_DATA} ${WRKSRC}/*.so ${PREFIX}/lib/ocp
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in AUTHORS BUGS CREDITS Changelog KEYBOARD_REMAPS SUID TODO
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>