freebsd-ports/multimedia/dvdstyler/Makefile
William Grzybowski e4cc3bf60d multimedia/dvdstyler: link against ffmpeg
- Link against ffmpeg
- Allow staging
- USES desktop-file-utils gmake
- Convert lib depends to new format
2013-10-21 17:30:54 +00:00

93 lines
2.5 KiB
Makefile

# Created by: Michael Johnson <ahze@ahze.net>
# $FreeBSD$
PORTNAME= dvdstyler
PORTVERSION= 2.4.3
PORTREVISION= 3
PORTEPOCH= 2
CATEGORIES= multimedia
MASTER_SITES= SF
DISTNAME= DVDStyler-${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= WxWidgets frontend to dvd recoding and authoring programs
LICENSE= GPLv2
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
wxsvg>=1.1.14:${PORTSDIR}/graphics/wxsvg \
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
mplex:${PORTSDIR}/multimedia/mjpegtools \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
docbook-sk>=4.1.2:${PORTSDIR}/textproc/docbook-sk \
xmlto:${PORTSDIR}/textproc/xmlto
LIB_DEPENDS= libexif.so:${PORTSDIR}/graphics/libexif \
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS= zip:${PORTSDIR}/archivers/zip \
wxsvg>=1.1.14:${PORTSDIR}/graphics/wxsvg \
dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
mplex:${PORTSDIR}/multimedia/mjpegtools \
mkisofs:${PORTSDIR}/sysutils/cdrtools \
growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
OPTIONS_DEFINE= GNOME DOCS
USE_BZIP2= yes
USES= desktop-file-utils gettext gmake pkgconfig
USE_WX= 2.8
WX_COMPS= wx svg
WX_CONF_ARGS= absolute
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNOME}
USE_GNOME+= libgnomeui
GNOMEUI_PC= libgnomeui-2.0
.else
GNOMEUI_PC= _libgnomeui-2.0_
.endif
.if defined(WITH_DVD_DEVICE)
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
.else
DEFAULT_DVD_DEVICE=/dev/cd0
.endif
pre-everything::
.if !defined(WITH_DVD_DEVICE)
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
.endif
post-extract:
.for i in configure install-sh
@${CHMOD} ${BINMODE} ${WRKSRC}/${i}
.endfor
post-patch:
@${REINPLACE_CMD} -e '/GNOMEUI2/s|"libgnomeui-2.0"|"${GNOMEUI_PC}"|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e '/^install-data-am:/s|install-docDATA||g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|"sg\*"|"cd*"|g' \
${WRKSRC}/src/BurnDlg.cpp
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|g' \
${WRKSRC}/src/Config.h
@${REINPLACE_CMD} -e 's|CodecID|AVCodecID|g' \
${WRKSRC}/src/mediaenc_ffmpeg.cpp
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog INSTALL README
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.endif
.include <bsd.port.mk>