aboutsummaryrefslogtreecommitdiffstats
path: root/audio/prokyon3/Makefile
blob: d4d978f6f8145b0ad03989281ec17212092c457f (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
# Created by: Kay Lehmann
# $FreeBSD$

PORTNAME=   prokyon3
PORTVERSION=    0.9.6
PORTREVISION=   11
CATEGORIES= audio
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    Multithreaded music manager and tag editor

BUILD_DEPENDS=  ${LOCALBASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin \
        bash:${PORTSDIR}/shells/bash
LIB_DEPENDS=    FLAC:${PORTSDIR}/audio/flac \
        mad:${PORTSDIR}/audio/libmad \
        vorbis:${PORTSDIR}/audio/libvorbis \
        tag:${PORTSDIR}/audio/taglib
RUN_DEPENDS=    ${LOCALBASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin

DEPRECATED= Depends on Qt3; unmaintained
EXPIRATION_DATE=    2013-07-01

OPTIONS_DEFINE= BURN
BURN_DESC=  CD/DVD burning support

USE_XORG=   x11 xft
USE_QT_VER= 3
USE_MYSQL=  yes
USE_PERL5_BUILD=yes
USES=       gettext
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-other-includes=${LOCALBASE}/include \
        --with-other-libs=${LOCALBASE}/lib \
        --without-mixxx --without-musicextras \
        --without-musicbrainz
MAKE_ARGS=  LIBS="-lqt-mt ${PTHREAD_LIBS}"

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MBURN}
RUN_DEPENDS+=   mpg123:${PORTSDIR}/audio/mpg123 \
        ogg123:${PORTSDIR}/audio/vorbis-tools \
        normalize:${PORTSDIR}/audio/normalize \
        bash:${PORTSDIR}/shells/bash \
        cdrecord:${PORTSDIR}/sysutils/cdrtools
PLIST_SUB+= BURN=""
.else
PLIST_SUB+= BURN="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|^#!.*$$|#!${LOCALBASE}/bin/bash|g ; \
         s|^CXXFLAGS=|#CXXFLAGS=|g ; \
         s|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e \
        's|^#!.*$$|#!${LOCALBASE}/bin/bash|g' ${WRKSRC}/prokburn
    @${REINPLACE_CMD} -e \
        's|: install-binSCRIPTS|:|g' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e \
        's|getopt.$$(OBJEXT)||g' ${WRKSRC}/src/Makefile.in

post-install:
.if ${PORT_OPTIONS:MBURN}
    ${INSTALL_SCRIPT} ${WRKSRC}/prokburn ${PREFIX}/bin
.endif
    @${ECHO_MSG}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_MSG}

.include <bsd.port.mk>