mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Add slideshow, a tool to write slides in python or XML
PR: 45832 Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
This commit is contained in:
parent
c3bfb150a9
commit
f7fdddf901
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72759
@ -34,6 +34,7 @@
|
||||
SUBDIR += openquicktime
|
||||
SUBDIR += oqtencoder
|
||||
SUBDIR += oqtplayer
|
||||
SUBDIR += slideshow
|
||||
SUBDIR += tosvcd
|
||||
SUBDIR += vcdgear
|
||||
SUBDIR += vcdimager
|
||||
|
66
multimedia/slideshow/Makefile
Normal file
66
multimedia/slideshow/Makefile
Normal file
@ -0,0 +1,66 @@
|
||||
# New ports collection makefile for: slideshow
|
||||
# Date created: 26 November 2002
|
||||
# Whom: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= slideshow
|
||||
PORTVERSION= 0.8.0.p4
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= http://savannah.nongnu.org/download/${PORTNAME}/${PORTNAME}.pkg/${PORTVERSION:S/.p/-pre/}/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-pre/}
|
||||
|
||||
MAINTAINER= e0026813@stud3.tuwien.ac.at
|
||||
|
||||
LIB_DEPENDS= SDL_ttf.3:${PORTSDIR}/graphics/sdl_ttf \
|
||||
SDL_image.10:${PORTSDIR}/graphics/sdl_image \
|
||||
xml2.5:${PORTSDIR}/textproc/libxml2 \
|
||||
smpeg.1:${PORTSDIR}/graphics/smpeg
|
||||
|
||||
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_LIBTOOL= yes
|
||||
USE_PYTHON= yes
|
||||
USE_REINPLACE= yes
|
||||
CONFIGURE_ARGS+= --disable-gtk-gui
|
||||
CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}" LDFLAGS="-lstdc++"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# The default resolution is 640x480
|
||||
.if defined(WITH_RES_1024)
|
||||
CONFIGURE_ARGS+= --with-res=1024
|
||||
.elif defined(WITH_RES_800)
|
||||
CONFIGURE_ARGS+= --with-res=800
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e '/SUBDIRS =/s/doc//' ${WRKSRC}/Makefile.in
|
||||
.if defined(NOPORTDOCS)
|
||||
@${REINPLACE_CMD} -e '/SUBDIRS =/s/examples//' ${WRKSRC}/Makefile.in
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
@${REINPLACE_CMD} -e "/^pythondir/s|= .*|= ${PYTHONPREFIX_SITELIBDIR}|"\
|
||||
${WRKSRC}/src/Makefile
|
||||
|
||||
do-install:
|
||||
@(cd ${WRKSRC}/src; ${MAKE} install)
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
|
||||
# Don't install Simple.py, it is broken
|
||||
.for file in AutoSlide.py Backgrounds.py Simple.xml Stages.py Text.py Video.py \
|
||||
Xml.py slideshow.dtd speedfull.jpg standard.ttf
|
||||
${INSTALL_MAN} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${PREFIX}/lib/libslideshow.so.0
|
||||
# @${STRIP_CMD} ${PYTHONPREFIX_SITELIBDIR}/_slideshow.so
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
multimedia/slideshow/distinfo
Normal file
1
multimedia/slideshow/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (slideshow-0.8.0-pre4.tar.gz) = b17746903b43c62ae7f667de774c5a97
|
13
multimedia/slideshow/files/patch-src::EffectDarkness.cpp
Normal file
13
multimedia/slideshow/files/patch-src::EffectDarkness.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
--- src/EffectDarkness.cpp.orig Fri Nov 29 01:06:50 2002
|
||||
+++ src/EffectDarkness.cpp Fri Nov 29 01:07:20 2002
|
||||
@@ -52,8 +52,8 @@
|
||||
int dt = screen->format->BytesPerPixel;
|
||||
|
||||
// Sorry, work to do
|
||||
- assert (ds == 4 || ds == 3);
|
||||
- assert (dt == 4 || ds == 3);
|
||||
+ if (ds != 4 && ds != 3) return;
|
||||
+ if (dt != 4 && ds != 3) return;
|
||||
|
||||
|
||||
for (int i=0; i< parent_surface->w * parent_surface->h; i++) {
|
11
multimedia/slideshow/files/patch-src::FontVault.h
Normal file
11
multimedia/slideshow/files/patch-src::FontVault.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/FontVault.h.orig Fri Nov 22 00:07:06 2002
|
||||
+++ src/FontVault.h Thu Nov 28 23:41:37 2002
|
||||
@@ -34,7 +34,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
-#if (HASHMAP_NAMESPACE == __gnu_cxx)
|
||||
+#if defined(HAVE_GNU_CXX_HASHMAP)
|
||||
typedef __gnu_cxx::hash_map<std::string, TTF_Font*, ures_hasher, ures_eqstr> Fonts_HashMap;
|
||||
#else
|
||||
typedef std::hash_map<std::string, TTF_Font*, ures_hasher, ures_eqstr> Fonts_HashMap;
|
11
multimedia/slideshow/files/patch-src::Makefile.in
Normal file
11
multimedia/slideshow/files/patch-src::Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/Makefile.in.orig Wed Nov 27 01:32:38 2002
|
||||
+++ src/Makefile.in Wed Nov 27 01:32:48 2002
|
||||
@@ -790,8 +790,6 @@
|
||||
uninstall-recursive
|
||||
|
||||
|
||||
-MgpLoaderLex.cpp: MgpLoader.ll
|
||||
- flex++ -i -oMgpLoaderLex.cpp MgpLoader.ll
|
||||
|
||||
#
|
||||
# Python wrapper
|
1
multimedia/slideshow/pkg-comment
Normal file
1
multimedia/slideshow/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A slideshow presentation tool to write slides in Python or XML
|
19
multimedia/slideshow/pkg-descr
Normal file
19
multimedia/slideshow/pkg-descr
Normal file
@ -0,0 +1,19 @@
|
||||
Slideshow allows you to write slides in Python or XML. Some features it has to
|
||||
offer:
|
||||
|
||||
- Use of TrueType fonts
|
||||
- Showing stages in a slide
|
||||
- Progressive show of text and images
|
||||
- Scrolling of text and images
|
||||
- Special effects:
|
||||
* Spinner
|
||||
* Fires
|
||||
* Stars
|
||||
* Plasma
|
||||
* Darkness
|
||||
- MPEG videos support
|
||||
|
||||
WWW: http://www.alobbs.com/slideshow
|
||||
|
||||
-- Stefan Farfeleder
|
||||
e0026813@stud3.tuwien.ac.at
|
2
multimedia/slideshow/pkg-message
Normal file
2
multimedia/slideshow/pkg-message
Normal file
@ -0,0 +1,2 @@
|
||||
This port still has some bugs when used with a colour depth less than 24 bits.
|
||||
For now, your have to use this depth for full functionality.
|
24
multimedia/slideshow/pkg-plist
Normal file
24
multimedia/slideshow/pkg-plist
Normal file
@ -0,0 +1,24 @@
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/AutoSlide.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Backgrounds.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Simple.xml
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Stages.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Text.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Video.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Xml.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/slideshow.dtd
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/speedfull.jpg
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/standard.ttf
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
||||
%%PYTHON_SITELIBDIR%%/_slideshow.a
|
||||
%%PYTHON_SITELIBDIR%%/_slideshow.la
|
||||
%%PYTHON_SITELIBDIR%%/_slideshow.so
|
||||
%%PYTHON_SITELIBDIR%%/slideshow.py
|
||||
%%PYTHON_SITELIBDIR%%/slideshow.pyc
|
||||
%%PYTHON_SITELIBDIR%%/slideshow.pyo
|
||||
bin/slideshow
|
||||
lib/libslideshow.a
|
||||
lib/libslideshow.la
|
||||
lib/libslideshow.so
|
||||
lib/libslideshow.so.0
|
Loading…
Reference in New Issue
Block a user