diff options
author | makc <makc@FreeBSD.org> | 2011-03-13 22:54:28 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2011-03-13 22:54:28 +0800 |
commit | 473e259f3c914b05b6ae2f6477faab31f88e3da9 (patch) | |
tree | 7edf4b0dbb46bd5fa675691d023550d81fc1b682 /graphics/povray31 | |
parent | b7c433aa97c234553f7009bd1a3e271b80e8e097 (diff) | |
download | freebsd-ports-gnome-473e259f3c914b05b6ae2f6477faab31f88e3da9.tar.gz freebsd-ports-gnome-473e259f3c914b05b6ae2f6477faab31f88e3da9.tar.zst freebsd-ports-gnome-473e259f3c914b05b6ae2f6477faab31f88e3da9.zip |
Clean up in preparation for POV-Ray 3.7:
- rename binary and manpage to avoid conflicts
- make X Window support optional
- remove dead mirror servers
Pass maintainership to submitter.
PR: ports/155483
Submitted by: Bjoern Koenig <bkoenig at alpha-tierchen.de>
Approved by: Oliver Fromme (previous maintainer)
Diffstat (limited to 'graphics/povray31')
-rw-r--r-- | graphics/povray31/Makefile | 36 | ||||
-rw-r--r-- | graphics/povray31/distinfo | 2 | ||||
-rw-r--r-- | graphics/povray31/pkg-plist | 2 |
3 files changed, 24 insertions, 16 deletions
diff --git a/graphics/povray31/Makefile b/graphics/povray31/Makefile index f46f683dfc99..e5df5ca1a88e 100644 --- a/graphics/povray31/Makefile +++ b/graphics/povray31/Makefile @@ -7,24 +7,24 @@ PORTNAME= povray PORTVERSION= 3.1g -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= ftp://ftp.povray.org/pub/povray/%SUBDIR%/ \ - ftp://ftp.gigabell.net/pub/unix/apps/graphics/povray/%SUBDIR%/ \ ftp://ftp.mirrorservice.org/sites/ftp.povray.org/pub/povray/%SUBDIR%/ \ - ftp://ftp.fh-aachen.de/pub/mirror/ftp.povray.org/povray/%SUBDIR%/ \ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/povray/%SUBDIR%,} MASTER_SITE_SUBDIR= Old-Versions/Official-3.1g/Unix DISTNAME= povray31 DISTFILES= povuni_s.tgz povuni_d.tgz -MAINTAINER= olli@fromme.com +MAINTAINER= bkoenig@alpha-tierchen.de COMMENT= Persistence of Vision Ray Tracer -#BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png +OPTIONS= X11 "X Window support" On + DIST_SUBDIR= povray31 +LATEST_LINK= povray31 # # I think all of this needs some explanation. @@ -34,18 +34,28 @@ DIST_SUBDIR= povray31 # no UNIX source files for POV-Ray 3.1. # +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_X11) USE_XORG= x11 -MAN1= povray.1 +ALL_TARGET= newxwin +POVBIN= ${BUILD_WRKSRC}/x-povray +.else +ALL_TARGET= newunix +POVBIN= ${BUILD_WRKSRC}/povray +.endif + +MAN1= ${LATEST_LINK}.1 -POVLIB= ${PREFIX}/lib/povray31 +POVLIB= ${PREFIX}/lib/${LATEST_LINK} -do-build: - @(cd ${WRKSRC}/source/unix; ${SETENV} ${MAKE_ENV} ${MAKE} newxwin) +BUILD_WRKSRC= ${WRKSRC}/source/unix +MAKEFILE= makefile do-install: @${MKDIR} ${POVLIB}/allscene @${TOUCH} ${POVLIB}/allscene/.bla - @${INSTALL_PROGRAM} ${WRKSRC}/source/unix/x-povray ${PREFIX}/bin/povray + @${INSTALL_PROGRAM} ${POVBIN} ${PREFIX}/bin/${LATEST_LINK} @(cd ${WRKSRC}; ${TAR} cpf - include scenes) | \ (cd ${POVLIB}; ${TAR} xpf -) @${INSTALL_DATA} ${WRKSRC}/*.ini ${POVLIB}/ @@ -53,11 +63,11 @@ do-install: @${INSTALL_DATA} ${WRKSRC}/*.txt ${POVLIB}/ @${INSTALL_DATA} ${WRKSRC}/*.gif ${WRKSRC}/*.xpm ${POVLIB}/ @${INSTALL_SCRIPT} ${WRKSRC}/allscene.sh ${POVLIB}/ - @${RM} -f ${PREFIX}/man/man1/povray.1* - @${INSTALL_MAN} ${WRKSRC}/povray.1 ${PREFIX}/man/man1 + @${MV} ${WRKSRC}/${PORTNAME}.1 ${WRKSRC}/${LATEST_LINK}.1 + @${INSTALL_MAN} ${WRKSRC}/${LATEST_LINK}.1 ${PREFIX}/man/man1 @${CHMOD} -R a+rX,og-w ${POVLIB} post-install: @${SH} ${FILESDIR}/script -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/graphics/povray31/distinfo b/graphics/povray31/distinfo index 9c07fd5feb09..95478acb5fe4 100644 --- a/graphics/povray31/distinfo +++ b/graphics/povray31/distinfo @@ -1,6 +1,4 @@ -MD5 (povray31/povuni_s.tgz) = 6da91fb1d3d48cd44f46b831760d233f SHA256 (povray31/povuni_s.tgz) = 8170af7dd96e497c1bd2b7cd5af17b3edba75c0de87949c410faf9dc677ff609 SIZE (povray31/povuni_s.tgz) = 946513 -MD5 (povray31/povuni_d.tgz) = dff3b8f3bc2a6dd131a9d008d0f46295 SHA256 (povray31/povuni_d.tgz) = be7ad6c7f1ec53c3b2a790cc428cacdccf6c874f638f8d8c6fe906cd0b9a13ad SIZE (povray31/povuni_d.tgz) = 913748 diff --git a/graphics/povray31/pkg-plist b/graphics/povray31/pkg-plist index 6a7f7df1675b..13ddf5f3140b 100644 --- a/graphics/povray31/pkg-plist +++ b/graphics/povray31/pkg-plist @@ -1,4 +1,4 @@ -bin/povray +bin/povray31 lib/povray31/CMPL_Unix.doc lib/povray31/allscene.ini lib/povray31/allscene.sh |