9e5632dd66
the libtoolX ports instead of the one included with each port. Ports that set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of the included version. To restore previous behavior, use the new macro, USE_INC_LIBTOOL_VER. Both macros accept the same argument: a libtool version. For example, to use the ports version of libtool-1.5, add the following to your Makefile: USE_LIBTOOL_VER= 15 To use the included version of libtool with extra hacks provided by libtool-1.5, add the following to your Makefile: USE_INC_LIBTOOL_VER= 15 With this change, ports that had to add additional libtool hacks to prevent .la files from being installed or to fix certain threading issues can now delete those hacks (after appropriate testing, of course). PR: 63944 Based on work by:eik and marcus Approved by: ade (autotools maintainer) Tested by: kris on pointyhat Bound to be hidden problems: You bet
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# 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= 2
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}.pkg/${PORTVERSION:S/.p/-pre/}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-pre/}
|
|
|
|
MAINTAINER= stefan@fafoe.narf.at
|
|
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.*//}
|
|
INSTALLS_SHLIB= yes
|
|
USE_GMAKE= yes
|
|
USE_INC_LIBTOOL_VER=13
|
|
USE_PYTHON= yes
|
|
USE_REINPLACE= yes
|
|
USE_SDL= image ttf
|
|
CONFIGURE_ARGS+= --disable-gtk-gui
|
|
CONFIGURE_ENV+= LDFLAGS="-lstdc++"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
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>
|