1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/multimedia/sabbu/Makefile
William Grzybowski 460d6992fe multimedia/sabbu: link using ffmpeg0
- Link using ffmpeg0

Approved by:	portmgr (bapt, implicit)
2013-10-09 02:14:33 +00:00

59 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= sabbu
PORTVERSION= 0.3.0
PORTREVISION= 14
CATEGORIES= multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Sabbu%20${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Program used to time subtitles
LIB_DEPENDS= libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 \
sndfile:${PORTSDIR}/audio/libsndfile
NO_STAGE= yes
USES= pkgconfig iconv
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gtk20
CFLAGS+= -I${LOCALBASE}/include/ffmpeg0 ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib/ffmpeg0 -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lswscale0
OPTIONS_DEFINE= GTKSPELL
OPTIONS_DEFAULT=GTKSPELL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= WITH_NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= WITH_NLS="@comment "
.endif
.if ${PORT_OPTIONS:MGTKSPELL}
LIB_DEPENDS+= gtkspell:${PORTSDIR}/textproc/gtkspell
.else
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "powerpc"
BROKEN= Does not configure on powerpc
.endif
post-patch:
@${REINPLACE_CMD} \
-e 's,ffmpeg/avformat,libavformat/avformat,g' \
-e 's,lavcodec,lavcodec0,g' \
-e 's,lavformat,lavformat0,g' \
-e 's,lavswscale,lavswscale0,g' \
${WRKSRC}/configure
.include <bsd.port.post.mk>