blob: e540ee957de77ea28bb6c54f13a98277e4e38189 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
PORTNAME= ocp
PORTVERSION= 0.2.90
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= https://github.com/mywave82/opencubicplayer/releases/download/v${PORTVERSION}/
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Legendary Open Cubic Player
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 powerpc64le
BUILD_DEPENDS= xa65:devel/xa65
LIB_DEPENDS= libid3tag.so:audio/libid3tag \
libmad.so:audio/libmad \
libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis
USES= compiler:c11 dos2unix gmake gnome iconv localbase:ldflags \
makeinfo ncurses pkgconfig tar:bz2
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/lib \
--with-dir-suffix="" \
--without-sdl
CONFIGURE_ENV= SHARED_FLAGS="${LDFLAGS} -shared" \
XA=${PREFIX}/bin/xa65
MAKE_JOBS_UNSAFE= yes
LDFLAGS_i386= -Wl,-z,notext
INFO= ocp
OPTIONS_DEFINE= ADPLUG ALSA DOCS FLAC MIDI OSS SDL X11
OPTIONS_DEFAULT= ADPLUG ALSA FLAC MIDI OSS SDL X11
OPTIONS_SUB= yes
ADPLUG_DESC= adplug support
MIDI_DESC= timidity support
ADPLUG_LIB_DEPENDS= libadplug.so:audio/libadplug \
libbinio.so:devel/libbinio
ADPLUG_CONFIGURE_WITH= adplug
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CONFIGURE_WITH= alsa
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
FLAC_CONFIGURE_WITH= flac
MIDI_RUN_DEPENDS= eawpats>0:audio/eawpats
OSS_CONFIGURE_WITH= oss
SDL_IMPLIES= X11
SDL_BUILD_DEPENDS= ${LOCALBASE}/share/fonts/gnu-unifont-ttf/unifont.ttf:x11-fonts/gnu-unifont-ttf
SDL_LIB_DEPENDS= libfreetype.so:print/freetype2 \
libpng.so:graphics/png
SDL_RUN_DEPENDS= ${LOCALBASE}/share/fonts/gnu-unifont-ttf/unifont.ttf:x11-fonts/gnu-unifont-ttf
SDL_USES= desktop-file-utils jpeg sdl
SDL_USE= SDL=sdl2
SDL_CONFIGURE_WITH= sdl2 \
unifontdir=${LOCALBASE}/share/fonts/gnu-unifont-ttf
SDL_PLIST_SUB= DESKTOP=''
SDL_PLIST_SUB_OFF= DESKTOP='@comment '
X11_BUILD_DEPENDS= ${LOCALBASE}/share/fonts/gnu-unifont-ttf/unifont.ttf:x11-fonts/gnu-unifont-ttf
X11_LIB_DEPENDS= libfreetype.so:print/freetype2 \
libpng.so:graphics/png
X11_RUN_DEPENDS= ${LOCALBASE}/share/fonts/gnu-unifont-ttf/unifont.ttf:x11-fonts/gnu-unifont-ttf
X11_USES= desktop-file-utils jpeg xorg
X11_USE= XORG=x11,xext,xpm,xxf86dga,xxf86vm
X11_CONFIGURE_WITH= unifontdir=${LOCALBASE}/share/fonts/gnu-unifont-ttf x11
X11_PLIST_SUB= DESKTOP='' \
XORG=''
X11_PLIST_SUB_OFF= DESKTOP='@comment ' \
XORG='@comment '
TIMIDITY_CFG= ${LOCALBASE}/share/timidity/timidity.cfg
post-patch-SDL-off:
@${REINPLACE_CMD} -E '/(LIBJPEG|LIBPNG_LIBS)/d' ${WRKSRC}/Rules.make.in
post-patch-X11-off:
@${REINPLACE_CMD} -E '/(LIBJPEG|LIBPNG_LIBS)/d' ${WRKSRC}/Rules.make.in
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ocp
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocp/*.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocp/autoload/*.so
.include <bsd.port.mk>
|