1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/audio/xmms-faad/Makefile
Christian Weisgerber 9b3c714d67 Clean up historic entanglements with other ports:
* Merge Makefile and Makefile.inc.
* Add our own proper pkg-descr file.
* Remove support for building a BMP plugin.
2015-04-11 19:31:22 +00:00

40 lines
1004 B
Makefile

# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$
PORTNAME= faad2
PORTVERSION= 2.7
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= SF/faac/${PORTNAME}-src/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX= xmms-
MAINTAINER= naddy@FreeBSD.org
COMMENT= XMMS plugin for MP4/M4A/AAC files
LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms \
libfaad.so:${PORTSDIR}/audio/faad
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/plugins/xmms/src
USE_GNOME= gtk12
USES= pkgconfig tar:bzip2
WANT_GNOME= yes
EXTRA_CFLAGS= `xmms-config --cflags`
EXTRA_LDFLAGS= `xmms-config --libs`
PLUGINS_DIR= ${PREFIX}/lib/xmms/Input
PLIST_FILES= ${PLUGINS_DIR:S,^${PREFIX}/,,}/libmp4.so
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC -shared \
-I${LOCALBASE}/include -DHAVE_STDINT_H \
${EXTRA_CFLAGS} *.c -o libmp4.so \
-L${LOCALBASE}/lib -lfaad -lmp4ff \
${EXTRA_LDFLAGS}
do-install:
@${MKDIR} ${STAGEDIR}${PLUGINS_DIR}
cd ${WRKSRC}; ${INSTALL_LIB} libmp4.so ${STAGEDIR}${PLUGINS_DIR}
.include <bsd.port.mk>