Lines 2-64
Link Here
|
2 |
# $FreeBSD: head/audio/gogglesmm/Makefile 363436 2014-07-30 03:57:23Z pi $ |
2 |
# $FreeBSD: head/audio/gogglesmm/Makefile 363436 2014-07-30 03:57:23Z pi $ |
3 |
|
3 |
|
4 |
PORTNAME= gogglesmm |
4 |
PORTNAME= gogglesmm |
5 |
PORTVERSION= 0.12.7 |
5 |
PORTVERSION= 0.13.2 |
6 |
PORTREVISION= 8 |
|
|
7 |
CATEGORIES= audio |
6 |
CATEGORIES= audio |
8 |
MASTER_SITES= GOOGLE_CODE |
7 |
MASTER_SITES= GH |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= Music collection manager and player |
10 |
COMMENT= Music collection manager and player |
12 |
|
11 |
|
13 |
LICENSE= GPLv3 |
12 |
LICENSE= GPLv3 |
14 |
|
13 |
|
15 |
LIB_DEPENDS= libxine.so:${PORTSDIR}/multimedia/libxine \ |
14 |
LIB_DEPENDS= libtag.so:${PORTSDIR}/audio/taglib \ |
16 |
libtag.so:${PORTSDIR}/audio/taglib \ |
15 |
libGLEW.so:${PORTSDIR}/graphics/glew \ |
17 |
libsqlite3.so:${PORTSDIR}/databases/sqlite3 |
16 |
libexpat.so:${PORTSDIR}/textproc/expat2 \ |
18 |
|
17 |
libFOX-1.7.so:${PORTSDIR}/x11-toolkits/fox17 |
19 |
OPTIONS_DEFINE= DBUS CURL NLS NEWREMOTE GCRYPT DOCS |
18 |
|
20 |
OPTIONS_SINGLE= FOX |
19 |
USE_GITHUB= yes |
21 |
OPTIONS_SINGLE_FOX= FOX16 FOX17 |
20 |
GH_ACCOUNT= ${PORTNAME} |
22 |
OPTIONS_DEFAULT= DBUS CURL NEWREMOTE FOX16 |
21 |
GH_COMMIT= ea16b55 |
23 |
|
|
|
24 |
FOX16_DESC= Use stable branch of FOX |
25 |
FOX17_DESC= Use development branch of FOX |
26 |
NEWREMOTE_DESC= Use new remote player |
27 |
GCRYPT_DESC= Use libgcrypt for md5 calculation |
28 |
|
29 |
OPTIONS_SUB= yes |
30 |
|
22 |
|
|
|
23 |
USES= compiler:c++0x desktop-file-utils gmake pkgconfig |
24 |
USE_SQLITE= yes |
31 |
HAS_CONFIGURE= yes |
25 |
HAS_CONFIGURE= yes |
32 |
CONFIGURE_ARGS+= --mandir=${PREFIX}/man --prefix=${PREFIX} |
26 |
CONFIGURE_ENV= LINK="${CXX}" \ |
33 |
|
27 |
OPT_CFLAGS="${CXXFLAGS}" \ |
34 |
USES= tar:xz pkgconfig gmake desktop-file-utils |
28 |
OPT_LDFLAGS="${LDFLAGS}" \ |
35 |
MAKE_ARGS= CXX="${CXX}" LINK="${CXX}" |
29 |
RESWRAP="${LOCALBASE}/bin/fox-1.7/reswrap" |
|
|
30 |
CONFIGURE_ARGS= --prefix=${PREFIX} --fox-prefix=${LOCALBASE} \ |
31 |
--without-rsound --without-mpcdec |
36 |
INSTALLS_ICONS= yes |
32 |
INSTALLS_ICONS= yes |
37 |
|
33 |
|
38 |
PORTDOCS= README AUTHORS |
34 |
CFLAGS+= -Wno-error=return-type |
39 |
|
35 |
CFLAGS+= -I${LOCALBASE}/include |
40 |
FOX16_LIB_DEPENDS= libFOX-1.6.so:${PORTSDIR}/x11-toolkits/fox16 |
36 |
LDFLAGS+= -L${LOCALBASE}/lib -pthread |
41 |
FOX17_LIB_DEPENDS= libFOX-1.7.so:${PORTSDIR}/x11-toolkits/fox17 |
37 |
|
42 |
|
38 |
OPTIONS_DEFINE= ALSA CDIO DBUS DOCS FAAD FFMPEG FLAC GCRYPT JACK \ |
|
|
39 |
MAD MMS NLS OPUS PULSEAUDIO SAMPLERATE SMB TREMOR \ |
40 |
VORBIS WAVPACK |
41 |
OPTIONS_DEFAULT= CDIO DBUS FAAD FLAC MAD OPUS SAMPLERATE SMB \ |
42 |
VORBIS WAVPACK |
43 |
OPTIONS_SUB= yes |
44 |
|
45 |
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib |
46 |
ALSA_CONFIGURE_OFF= --without-alsa |
47 |
CDIO_LIB_DEPENDS= libcdio.so:${PORTSDIR}/sysutils/libcdio |
48 |
CDIO_CONFIGURE_OFF= --without-cdda |
49 |
DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus |
50 |
DBUS_CONFIGURE_OFF= --without-dbus |
51 |
FAAD_LIB_DEPENDS= libfaad.so:${PORTSDIR}/audio/faad |
52 |
FAAD_CONFIGURE_ON= --faad-prefix=${LOCALBASE} |
53 |
FAAD_CONFIGURE_OFF= --without-faad |
54 |
FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg |
55 |
FFMPEG_CONFIGURE_ON= --with-avcodec |
56 |
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac |
57 |
FLAC_CONFIGURE_OFF= --without-flac |
58 |
GCRYPT_DESC= Use libgcrypt for md5 calculation |
43 |
GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt |
59 |
GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt |
44 |
GCRYPT_CONFIGURE_ON= --with-md5=gcrypt |
60 |
GCRYPT_CONFIGURE_ON= --with-md5=gcrypt |
45 |
GCRYPT_CONFIGURE_OFF= --with-md5=internal |
61 |
GCRYPT_CONFIGURE_OFF= --with-md5=internal |
46 |
|
62 |
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack |
47 |
DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus |
63 |
JACK_CONFIGURE_OFF= --without-jack |
48 |
DBUS_CONFIGURE_OFF= --with-dbus |
64 |
MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad |
49 |
|
65 |
MAD_CONFIGURE_ON= --mad-prefix=${LOCALBASE} |
50 |
CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl |
66 |
MAD_CONFIGURE_OFF= --without-mad |
51 |
CURL_CONFIGURE_OFF= --without-curl |
67 |
MMS_LIB_DEPENDS= libmms.so:${PORTSDIR}/net/libmms |
52 |
|
68 |
MMS_CONFIGURE_OFF= --without-mms |
53 |
NLS_USES= gettext |
69 |
NLS_USES= gettext |
54 |
NLS_LDFLAGS= -lintl |
70 |
NLS_LIBS= -lintl |
55 |
NLS_CONFIGURE_OFF= --disable-nls |
71 |
NLS_CONFIGURE_OFF= --without-nls |
56 |
|
72 |
OPUS_DESC= Opus decoding with libopus |
57 |
NEWREMOTE_CONFIGURE_OFF= --without-new-remote |
73 |
OPUS_LIB_DEPENDS= libopus.so:${PORTSDIR}/audio/opus |
|
|
74 |
OPUSE_CONFIGURE_OFF= --without-opus |
75 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio |
76 |
PULSEAUDIO_CONFIGURE_OFF= --without-pulse |
77 |
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate |
78 |
SAMPLERATE_CONFIGURE_OFF= --without-samplerate |
79 |
SMB_LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient |
80 |
SMB_CONFIGURE_ON= --smb-prefix=${LOCALBASE} |
81 |
SMB_CONFIGURE_OFF= --without-smb |
82 |
TREMOR_LIB_DEPENDS= libvorbisidec.so:${PORTSDIR}/audio/libtremor |
83 |
TREMOR_CONFIGURE_ON= --with-tremor |
84 |
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis |
85 |
VORBIS_CONFIGURE_OFF= --without-off --without-vorbis |
86 |
WAVPACK_LIB_DEPENDS= libwavpack.so:${PORTSDIR}/audio/wavpack |
87 |
WAVPACK_CONFIGURE_OFF= --without-wavpack |
88 |
|
89 |
post-patch: |
90 |
@${REINPLACE_CMD} -e \ |
91 |
's|share/man|man|' ${WRKSRC}/configure |
92 |
@${REINPLACE_CMD} -e \ |
93 |
's|$$(sharedir)/man|$$(installdir)/man| ; \ |
94 |
/INSTALL/s|-D|-c| ; \ |
95 |
s|@$$(CXX)|$$(CXX)|' ${WRKSRC}/Makefile |
96 |
@${REINPLACE_CMD} -e \ |
97 |
's|@$$(LINK)|$$(LINK)|' ${WRKSRC}/build/*.mk |
98 |
|
99 |
pre-install: |
100 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gogglesmm |
101 |
@${MKDIR} ${STAGEDIR}${DATADIR}/utils |
102 |
.for i in 16 22 24 32 48 |
103 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps |
104 |
.endfor |
105 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps |
58 |
|
106 |
|
59 |
post-install: |
107 |
post-install: |
60 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
108 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
61 |
cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
109 |
.for i in AUTHORS ChangeLog README |
62 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
110 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) |
|
|
111 |
.endfor |
112 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
113 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gogglesmm/libgap_*.so |
63 |
|
114 |
|
64 |
.include <bsd.port.mk> |
115 |
.include <bsd.port.mk> |