freebsd-ports/audio/xmms-faad/Makefile.inc
Tijl Coosemans 2ffbea1568 Convert multimedia/xmms to USES=libtool. Bump PORTREVISION on all
dependent ports and convert them to USES=libtool too.

audio/scrobbler:
- USES=tar:bzip2.
- Don't link with libstdc++.

audio/xmms-bonk:
- Don't link with libstdc++.

audio/xmms-flac:
- Remove unneeded dependencies.
- Remove $FreeBSD$ from patches.

audio/xmms-scrobbler:
- Use OPTIONS_SLAVE.

audio/xmms-timidity:
- USES=tar:bzip2.
- Install the library instead of the source code file.

audio/xmms-volnorm:
- Remove do-install.
2014-05-04 18:48:54 +00:00

39 lines
965 B
Makefile

# $FreeBSD$
PORTNAME= faad2
PORTVERSION= 2.7
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= SFE/faac
BUILD_DEPENDS= faad2>=2.7:${PORTSDIR}/audio/faad
RUN_DEPENDS= faad2>=2.7:${PORTSDIR}/audio/faad
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/plugins/xmms/src
USES+= pkgconfig tar:bzip2
WANT_GNOME= yes
DESCR= ${PORTSDIR}/audio/faad/pkg-descr
PLIST_FILES= ${PLUGINS_DIR:S,^${PREFIX}/,,}/libmp4.so
.if ${PKGNAMEPREFIX} == "xmms-"
LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms
USE_GNOME+= gtk12
PLUGINS_DIR= ${PREFIX}/lib/xmms/Input
EXTRA_CFLAGS= `xmms-config --cflags`
EXTRA_LDFLAGS+= `xmms-config --libs`
.endif
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>