ports/178591: graphics/quat-gui: Update MASTER_SITES
KATO Tsuguru
tkato432 at yahoo.com
Mon May 13 18:10:07 UTC 2013
>Number: 178591
>Category: ports
>Synopsis: graphics/quat-gui: Update MASTER_SITES
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon May 13 18:10:07 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support PLIST_FILES
- Support DESKTOP_ENTRIES
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/graphics/quat-gui/Makefile graphics/quat-gui/Makefile
--- /usr/ports/graphics/quat-gui/Makefile 2012-11-08 09:45:16.000000000 +0900
+++ graphics/quat-gui/Makefile 2013-05-14 00:00:42.000000000 +0900
@@ -1,61 +1,74 @@
-# New ports collection makefile for: quat-gui
-# Date created: 2 May 2002
-# Whom: David Yeske <dyeske at gmail.com>
-#
+# Created by: David Yeske <dyeske at gmail.com>
# $FreeBSD: head/graphics/quat-gui/Makefile 302037 2012-08-04 22:52:02Z kwm $
-#
PORTNAME= quat
PORTVERSION= 1.20
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= graphics
-MASTER_SITES= http://www.physcip.uni-stuttgart.de/phy11733/download/
+#MASTER_SITES= http://www.physcip.uni-stuttgart.de/phy11733/download/
+MASTER_SITES= http://www.sourcefiles.org/Graphics/Fractals/
PKGNAMESUFFIX= -gui
-DISTNAME= quat-${PORTVERSION:S/.p/pre/}
MAINTAINER= ports at FreeBSD.org
-COMMENT= A Three-dimensional fractal creator (X11 GUI)
+COMMENT= Three-dimensional fractal creator (X11 GUI)
-LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
+LICENSE= GPLv2 # (or later)
+
+LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk
+
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
+
+UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX}
USE_XORG= xext
USE_GL= gl glut
GNU_CONFIGURE= yes
-CONFIGURE_ENV= LIBS="-lXext -lGL" FLUID="${LOCALBASE}/bin/fluid"
-CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+CONFIGURE_ENV= FLUID="${LOCALBASE}/bin/fluid"
+CONFIGURE_ARGS= --datadir=${PREFIX}/share/doc
+MAKE_JOBS_SAFE= yes
-.if defined(WITH_OPTIMIZED_CFLAGS)
-CFLAGS+= -O3 -ffast-math
-.endif
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME}
+
+PORTDOCS= *
+PLIST_FILES= bin/quat
-pre-everything::
-.if !defined(WITH_OPTIMIZED_CFLAGS)
- @${ECHO_MSG} "You can enable additional compilation optimizations"
- @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
+DESKTOP_ENTRIES="Quat" "3D Fractal Generator" "" "${PORTNAME}" "" ""
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+CFLAGS+= -O3 -ffast-math
.endif
post-patch:
@${REINPLACE_CMD} -E -e \
- 's|^...CFLAGS=|#CFLAGS=|; \
- s|^...CXXFLAGS=|#CXXFLAGS=|' \
+ 's,-(march=pentium|O3|ffast-math),,g' \
${WRKSRC}/configure
- @${REINPLACE_CMD} -E -e 's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
+ @${REINPLACE_CMD} -E -e \
+ 's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
${WRKSRC}/gui/Makefile.in
- @${REINPLACE_CMD} -e 's|#include <FL/fl_file_chooser.H>|#include <FL/Fl_File_Chooser.H>|' \
+ @${REINPLACE_CMD} -e \
+ 's|<FL/fl_file_chooser.H>|<FL/Fl_File_Chooser.H>| ; \
+ s|/doc/quat/|/doc/${UNIQUENAME}/|' \
${WRKSRC}/gui/MainWindow.cxx
# disable data file installation since distfile does not do
# The Right Thing(TM)
@${REINPLACE_CMD} -E -e \
- 's|^(install-data-am:).*$$|\1|' \
+ 's|^(install-data-am:).*$$|\1| ; \
+ s|^(SUBDIRS.*)doc|\1|' \
${WRKSRC}/Makefile.in
-.ifdef NOPORTDOCS
- @${REINPLACE_CMD} '/install-data-am:/s/install-pkgdataDATA//' \
+ @${REINPLACE_CMD} -e \
+ 's|@PACKAGE@|${UNIQUENAME}|' \
${WRKSRC}/doc/Makefile.in
-.endif
-post-configure:
- @${REINPLACE_CMD} -E -e \
- 's|^(pkgdatadir).*$$|\1=${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}|' \
- ${WRKSRC}/doc/Makefile
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
+ ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+.endif
.include <bsd.port.mk>
diff -urN /usr/ports/graphics/quat-gui/pkg-plist graphics/quat-gui/pkg-plist
--- /usr/ports/graphics/quat-gui/pkg-plist 2012-11-08 09:45:16.000000000 +0900
+++ graphics/quat-gui/pkg-plist 1970-01-01 09:00:00.000000000 +0900
@@ -1,27 +0,0 @@
-bin/quat
-%%PORTDOCS%%share/quat-gui/Dendr_st.jpg
-%%PORTDOCS%%share/quat-gui/ce.png
-%%PORTDOCS%%share/quat-gui/chart_de.png
-%%PORTDOCS%%share/quat-gui/chart_us.png
-%%PORTDOCS%%share/quat-gui/ex_1.jpg
-%%PORTDOCS%%share/quat-gui/ex_2.jpg
-%%PORTDOCS%%share/quat-gui/ex_3.jpg
-%%PORTDOCS%%share/quat-gui/gpl.html
-%%PORTDOCS%%share/quat-gui/ie.png
-%%PORTDOCS%%share/quat-gui/oe.png
-%%PORTDOCS%%share/quat-gui/ote.png
-%%PORTDOCS%%share/quat-gui/quat-de-1.html
-%%PORTDOCS%%share/quat-gui/quat-de-2.html
-%%PORTDOCS%%share/quat-gui/quat-de-3.html
-%%PORTDOCS%%share/quat-gui/quat-de-4.html
-%%PORTDOCS%%share/quat-gui/quat-de-5.html
-%%PORTDOCS%%share/quat-gui/quat-de.html
-%%PORTDOCS%%share/quat-gui/quat-us-1.html
-%%PORTDOCS%%share/quat-gui/quat-us-2.html
-%%PORTDOCS%%share/quat-gui/quat-us-3.html
-%%PORTDOCS%%share/quat-gui/quat-us-4.html
-%%PORTDOCS%%share/quat-gui/quat-us-5.html
-%%PORTDOCS%%share/quat-gui/quat-us.html
-%%PORTDOCS%%share/quat-gui/quat.png
-%%PORTDOCS%%share/quat-gui/ve.png
-%%PORTDOCS%%@dirrm share/quat-gui
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list