9b7d382ebc
vamps and dvdauthor
103 lines
2.8 KiB
Makefile
103 lines
2.8 KiB
Makefile
# New ports collection makefile for: qvamps
|
|
# Date created: Thu Jan 5 20:49:59 UTC 2006
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qvamps
|
|
PORTVERSION= 0.20
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
|
MASTER_SITE_SUBDIR= vamps
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
COMMENT= Dvd rip gui written in qt that uses vamps and dvdauthor
|
|
|
|
BUILD_DEPENDS= puic:${PORTSDIR}/x11-toolkits/p5-qt \
|
|
swig:${PORTSDIR}/devel/swig13
|
|
LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread
|
|
RUN_DEPENDS= puic:${PORTSDIR}/x11-toolkits/p5-qt \
|
|
vamps:${PORTSDIR}/multimedia/vamps
|
|
|
|
USE_GMAKE= yes
|
|
USE_PERL5= yes
|
|
USE_REINPLACE= yes
|
|
MAKE_ENV= \
|
|
CC="${CC}" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PLIST_FILES= bin/qvamps \
|
|
lib/qvamps/LibDvdRead.so \
|
|
%%DATADIR%%/lib/DesignerMimeSourceFactory_qvamps.pm \
|
|
%%DATADIR%%/lib/DvdIfoRead.pm \
|
|
%%DATADIR%%/lib/DvdMaker.pm \
|
|
%%DATADIR%%/lib/FpcMgr.pm \
|
|
%%DATADIR%%/lib/Iso639.pm \
|
|
%%DATADIR%%/lib/LibDvdRead.pm \
|
|
%%DATADIR%%/lib/MainWindow.pm \
|
|
%%DATADIR%%/lib/MenuDisplay.pm \
|
|
%%DATADIR%%/lib/MenuPreview.pm \
|
|
%%DATADIR%%/lib/MenuTableItems.pm \
|
|
%%DATADIR%%/lib/MenuWriter.pm \
|
|
%%DATADIR%%/lib/QVamps.pm \
|
|
%%DATADIR%%/lib/TitleListItems.pm \
|
|
%%DATADIR%%/lib/VTSList.pm \
|
|
%%DATADIR%%/lib/VTSListItems.pm \
|
|
%%DATADIR%%/lib/XmlWriter.pm \
|
|
%%DATADIR%%/lib/mainwindow.ui.pm \
|
|
%%DATADIR%%/lib/menupreview.ui.pm \
|
|
%%DATADIR%%/lib/vtslist.ui.pm \
|
|
%%DATADIR%%/penguin.jpg \
|
|
%%DATADIR%%/penguin_ntsc.mpg \
|
|
%%DATADIR%%/penguin_pal.mpg \
|
|
%%DATADIR%%/silence.mpa \
|
|
%%DATADIR%%/translations/xx.qm
|
|
PLIST_DIRS= %%DATADIR%%/translations \
|
|
%%DATADIR%%/lib \
|
|
%%DATADIR%% \
|
|
lib/qvamps
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|puic|${LOCALBASE}/bin/puic|' \
|
|
-e 's|swig|${LOCALBASE}/bin/swig|' \
|
|
-e 's|\$$\(PREFIX\)/share/qvamps|%%DATADIR%%|' \
|
|
-e 's|[[:space:]]perl[[:space:]]| ${PERL} |' \
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
|
.for file in fakelupd.pl qvamps
|
|
${REINPLACE_CMD} -E \
|
|
-e 's|/usr/bin/perl|${PERL}|' \
|
|
${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
do-install:
|
|
# application
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
# shared multimedia files
|
|
.for extension in jpg mpa mpg
|
|
@${MKDIR} ${DATADIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/*.${extension} ${DATADIR}
|
|
.endfor
|
|
# shared perl modules
|
|
@${MKDIR} ${DATADIR}/lib
|
|
@${INSTALL_DATA} ${WRKSRC}/*pm ${DATADIR}/lib
|
|
# shared library
|
|
@${MKDIR} ${PREFIX}/lib/${PORTNAME}
|
|
@${INSTALL_DATA} ${WRKSRC}/LibDvdRead.so ${PREFIX}/lib/${PORTNAME}
|
|
# translations
|
|
@${MKDIR} ${DATADIR}/translations
|
|
@${INSTALL_DATA} ${WRKSRC}/xx.qm ${DATADIR}/translations
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(STRIP) && ${STRIP} != ""
|
|
MAKE_ENV+= STRIP="${STRIP_CMD}"
|
|
.else
|
|
MAKE_ENV+= STRIP="${TRUE}"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|