mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
41 lines
967 B
Makefile
41 lines
967 B
Makefile
# Created by: David Yeske <dyeske@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= faad2
|
|
PORTVERSION= 2.8.6
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF/faac/${PORTNAME}-src/${PORTNAME}-${PORTVERSION:R}.0
|
|
PKGNAMEPREFIX= xmms-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= XMMS plugin for MP4/M4A/AAC files
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/../../../COPYING
|
|
|
|
LIB_DEPENDS= libxmms.so:multimedia/xmms \
|
|
libfaad.so:audio/faad
|
|
|
|
WRKSRC_SUBDIR= plugins/xmms/src
|
|
|
|
USES= pkgconfig
|
|
USE_GNOME= gtk12
|
|
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}
|
|
${INSTALL_LIB} ${WRKSRC}/libmp4.so ${STAGEDIR}${PLUGINS_DIR}
|
|
|
|
.include <bsd.port.mk>
|