freebsd-ports/multimedia/qmmp-plugin-pack/Makefile
Guido Falsi 0fed221fdf - Update to 0.6.2
- Add build dependency on pkgconfig
- Add option controlling asm optimizations (only for i386 and amd64,
  defaults to on)
- While here fix usage of ${ARCH}

PR:		ports/170668
Submitted by:	RyoTa SimaMoto <liangtai.s4@gmail.com> (maintainer)
Approved by:	crees, tabthorpe (mentors, implicit)
2012-08-19 12:47:12 +00:00

89 lines
2.3 KiB
Makefile

# New ports collection Makefile for: qmmp-plugin-pack
# Date created: Fri Jul 01 02:59:13 JST 2012
# Whom: SimaMoto,RyoTa <liangtai.s4@gmail.com>
#
# $FreeBSD$
#
PORTNAME= qmmp-plugin-pack
PORTVERSION= 0.6.2
CATEGORIES= multimedia
MASTER_SITES= http://qmmp.ylsoftware.com/files/plugins/ \
http://qmmp.googlecode.com/files/
MAINTAINER= liangtai.s4@gmail.com
COMMENT= Additional plug-ins for QMMP
LICENSE= GPLv2
LIB_DEPENDS= qmmpui:${PORTSDIR}/multimedia/qmmp
BUILD_DEPENDS= qmmp>=0.6.0:${PORTSDIR}/multimedia/qmmp
USE_BZIP2= yes
USE_CMAKE= yes
USE_QT4= corelib gui qmake_build rcc_build moc_build linguist_build
USE_LDCONFIG= yes
USE_PKGCONFIG= build
OPTIONS_DEFINE= FFAP MPG123 QSUI
OPTIONS_DEFAULT= FFAP MPG123 QSUI
FFAP_DESC= Support APE sound file
MPG123_DESC= Support libmpg123 (MPEG v1/2 layer1/2/3)
QSUI_DESC= Simple UI based on standard widgets set
OPTIONS_DEFINE_i386= FFAPASM
OPTIONS_DEFAULT_i386= FFAPASM
OPTIONS_DEFINE_amd64= FFAPASM
OPTIONS_DEFAULT_amd64= FFAPASM
FFAPASM_DESC= Optimize FFap decoder using devel/yasm
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MQSUI}
USE_QT4+= network
PLIST_SUB+= QSUI=""
PLUGIN_OPTIONS_CMAKE+= -DUSE_QSUI:BOOL=TRUE
.else
PLIST_SUB+= QSUI="@comment "
PLUGIN_OPTIONS_CMAKE+= -DUSE_QSUI:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MMPG123}
PLIST_SUB+= MPG123=""
LIB_DEPENDS+= mpg123:${PORTSDIR}/audio/mpg123
PLUGIN_OPTIONS_CMAKE+= -DUSE_MPG123:BOOL=TRUE
.else
PLIST_SUB+= MPG123="@comment "
PLUGIN_OPTIONS_CMAKE+= -DUSE_MPG123:BOOL=FALSE
.endif
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MFFAP}
PLIST_SUB+= FFAP=""
. if (${ARCH} == i386 || ${ARCH} == amd64) && ${PORT_OPTIONS:MFFAPASM}
BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
PLUGIN_OPTIONS_CMAKE+= -DUSE_ASM:BOOL=TRUE
. else
PLUGIN_OPTIONS_CMAKE+= -DUSE_ASM:BOOL=FALSE
. endif
LIB_DEPENDS+= tag:${PORTSDIR}/audio/taglib
PLUGIN_OPTIONS_CMAKE+= -DUSE_FFAP:BOOL=TRUE
.else
PLIST_SUB+= FFAP="@comment "
PLUGIN_OPTIONS_CMAKE+= -DUSE_FFAP:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MQSUI} || ${PORT_OPTIONS:MMPG123}
USE_QT4+= uic_build
.endif
CMAKE_ARGS+= ${PLUGIN_OPTIONS_CMAKE} \
-DCMAKE_REQUIRED_INCLUDES:PATH=${LOCALBASE}/include
CMAKE_OUTSOURCE=yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
pre-configure:
${RM} -f ${BUILD_WRKSRC}/CMakeCache.txt
.include <bsd.port.post.mk>