blob: 371eae4e77e1b5df5e2eaa6d8ea60dc3a403d99d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# 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.p5
PORTREVISION= 3
CATEGORIES= multimedia
MASTER_SITES= http://ftp.osuosl.org/pub/FreeBSD/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-pre/}
MAINTAINER= ports@FreeBSD.org
COMMENT= A slideshow presentation tool to write slides in Python or XML
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
smpeg.1:${PORTSDIR}/multimedia/smpeg
WRKSRC= ${WRKDIR}/${DISTNAME:C/-pre.*//}
USE_LDCONFIG= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_PYTHON= yes
USE_SDL= image ttf
CONFIGURE_ARGS+= --disable-gtk-gui
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -lstdc++ -lpng"
BROKEN= dead project and doesn't work with recent sdl
DEPRECATED= ${BROKEN}
EXPIRATION_DATE=2006-10-17
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
# 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
.include <bsd.port.post.mk>
|