2012-11-03 19:01:22 +01:00
|
|
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
|
2005-04-24 16:11:31 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ocp
|
2010-05-17 13:33:50 +02:00
|
|
|
PORTVERSION= 0.1.20
|
2014-12-08 17:48:38 +01:00
|
|
|
PORTREVISION= 9
|
2008-06-23 13:33:24 +02:00
|
|
|
PORTEPOCH= 1
|
2005-04-24 16:11:31 +02:00
|
|
|
CATEGORIES= audio
|
2009-12-26 22:02:37 +01:00
|
|
|
MASTER_SITES= http://stian.cubic.org/ocp/ \
|
2015-01-06 10:36:21 +01:00
|
|
|
LOCAL/ehaupt
|
2005-04-24 16:11:31 +02:00
|
|
|
|
2008-06-23 13:33:24 +02:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2005-04-24 16:11:31 +02:00
|
|
|
COMMENT= The legendary Open Cubic Player
|
|
|
|
|
2011-12-27 16:14:23 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libid3tag.so:${PORTSDIR}/audio/libid3tag \
|
|
|
|
libmad.so:${PORTSDIR}/audio/libmad \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
|
|
libsidplay.so:${PORTSDIR}/audio/libsidplay
|
2005-04-24 16:11:31 +02:00
|
|
|
|
2009-12-29 17:26:20 +01:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2005-04-24 16:11:31 +02:00
|
|
|
|
2008-05-16 16:10:36 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-06-25 19:00:47 +02:00
|
|
|
USES= ncurses gmake pkgconfig desktop-file-utils compiler:nestedfct makeinfo
|
2008-05-16 16:10:36 +02:00
|
|
|
USE_LDCONFIG= yes
|
2009-09-20 15:00:08 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2009-09-18 22:09:45 +02:00
|
|
|
|
2014-02-05 11:10:01 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2008-05-16 16:10:36 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-09-24 00:26:39 +02:00
|
|
|
CFLAGS+= -L${LOCALBASE}/lib ${CPPFLAGS}
|
|
|
|
CXXFLAGS+= -L${LOCALBASE}/lib ${CPPFLAGS}
|
2008-06-23 13:33:24 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-dir-suffix="" \
|
2010-05-17 13:33:50 +02:00
|
|
|
--without-alsa \
|
2011-04-11 10:34:17 +02:00
|
|
|
--libdir=${PREFIX}/lib
|
2008-06-23 13:33:24 +02:00
|
|
|
|
2010-05-17 13:33:50 +02:00
|
|
|
INFO= ocp
|
|
|
|
|
2005-04-25 02:01:17 +02:00
|
|
|
TIMIDITY_CFG= ${LOCALBASE}/share/timidity/timidity.cfg
|
|
|
|
|
2007-04-24 14:17:57 +02:00
|
|
|
PFILES= configure cpiface/cpianal.c cpiface/cpidots.c \
|
|
|
|
cpiface/cpiface.c cpiface/cpigraph.c cpiface/cpiinst.c \
|
2008-06-23 13:33:24 +02:00
|
|
|
cpiface/cpikube.c cpiface/cpilinks.c cpiface/cpimsg.c \
|
|
|
|
cpiface/cpiphase.c cpiface/cpiscope.c cpiface/cpitrack.c \
|
|
|
|
cpiface/mcpedit.c cpiface/volctrl.c filesel/cphlpfs.c \
|
|
|
|
filesel/pfilesel.c filesel/pfilesel.c.bak help/cphelper.c \
|
|
|
|
medialib/medialib.c playcda/cdapplay.c stuff/poutput-curses.c \
|
|
|
|
stuff/poutput-dga.c stuff/poutput-keyboard.c \
|
2007-04-24 14:17:57 +02:00
|
|
|
stuff/poutput-vcsa.c stuff/poutput-x11.c
|
|
|
|
|
2013-01-15 14:40:28 +01:00
|
|
|
OPTIONS_DEFINE= ADPLUG FLAC MIDI X11 SDL DOCS
|
2009-09-20 15:00:08 +02:00
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
ADPLUG_DESC= adplug support
|
|
|
|
MIDI_DESC= timidity support
|
2005-04-25 02:01:17 +02:00
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
OPTIONS_DEFAULT=ADPLUG FLAC MIDI X11 SDL
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if exists(${TIMIDITY_CFG}) || ${PORT_OPTIONS:MMIDI}
|
2015-01-25 23:32:52 +01:00
|
|
|
RUN_DEPENDS+= eawpats>0:${PORTSDIR}/audio/eawpats
|
2005-04-25 02:01:17 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2010-05-17 13:33:50 +02:00
|
|
|
USE_XORG= xxf86dga xxf86vm xpm
|
2005-05-02 11:36:28 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x11=yes
|
2009-09-20 15:00:08 +02:00
|
|
|
PLIST_SUB+= XORG=""
|
2012-09-10 12:49:30 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x11
|
|
|
|
PLIST_SUB+= XORG="@comment "
|
2005-05-02 11:36:28 +02:00
|
|
|
.endif
|
2009-09-20 15:00:08 +02:00
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
.if ${PORT_OPTIONS:MADPLUG}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libadplug.so:${PORTSDIR}/audio/libadplug
|
2009-09-20 15:00:08 +02:00
|
|
|
CONFIGURE_ARGS+= --with-adplug
|
2005-06-12 15:30:07 +02:00
|
|
|
PLIST_SUB+= ADPLUG=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ADPLUG="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-adplug
|
|
|
|
.endif
|
2005-05-02 11:36:28 +02:00
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2014-05-02 21:26:44 +02:00
|
|
|
USE_SDL= sdl
|
2009-12-26 22:02:37 +01:00
|
|
|
CONFIGURE_ARGS+= --with-sdl=yes
|
|
|
|
PLIST_SUB+= SDL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-sdl=no
|
|
|
|
PLIST_SUB+= SDL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
.if ${PORT_OPTIONS:MSDL} || ${PORT_OPTIONS:MX11}
|
2010-05-17 13:33:50 +02:00
|
|
|
PLIST_SUB+= DESKTOP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DESKTOP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
.if ${PORT_OPTIONS:MFLAC}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac
|
2009-09-20 15:00:08 +02:00
|
|
|
CONFIGURE_ARGS+= --with-flac
|
|
|
|
PLIST_SUB+= FLAC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= FLAC="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-flac
|
2007-04-25 14:24:55 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-15 14:40:28 +01:00
|
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
2009-09-20 15:00:08 +02:00
|
|
|
MAKE_ENV+= DOCS="\#"
|
2005-05-02 11:36:28 +02:00
|
|
|
.endif
|
2005-04-25 02:01:17 +02:00
|
|
|
|
2005-04-24 16:11:31 +02:00
|
|
|
post-patch:
|
2008-06-23 13:33:24 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/.*\.cfg|${TIMIDITY_CFG}|' \
|
|
|
|
${WRKSRC}/playgmi/gmitimidity.c
|
|
|
|
# conflicts with fnmatch.h from security/heimdal
|
|
|
|
@${REINPLACE_CMD} -e 's|<\(fnmatch.h\)>|"/usr/include/\1"|' \
|
|
|
|
${WRKSRC}/filesel/adb.c \
|
|
|
|
${WRKSRC}/filesel/pfilesel.c
|
2014-02-05 11:10:01 +01:00
|
|
|
@${REINPLACE_CMD} -e '1s|bash|sh|' ${WRKSRC}/ultrafix.sh
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ocp
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocp/*.so
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocp/autoload/*.so
|
2005-04-24 16:11:31 +02:00
|
|
|
|
2012-09-10 12:49:30 +02:00
|
|
|
.include <bsd.port.mk>
|